summaryrefslogtreecommitdiff
path: root/node_modules/socket.io/support/node-websocket-client/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/socket.io/support/node-websocket-client/Makefile')
-rw-r--r--node_modules/socket.io/support/node-websocket-client/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/node_modules/socket.io/support/node-websocket-client/Makefile b/node_modules/socket.io/support/node-websocket-client/Makefile
new file mode 100644
index 0000000..e7c849a
--- /dev/null
+++ b/node_modules/socket.io/support/node-websocket-client/Makefile
@@ -0,0 +1,22 @@
+# This makefile exists to help run tests.
+#
+# If TEST_UNIX is a non-empty value, runs tests for UNIX sockets. This
+# functionality is not in node-websocket-server at the moment.
+
+.PHONY: test
+
+all: test test-unix
+
+test:
+ for f in `ls -1 test/test-*.js | grep -v unix` ; do \
+ echo $$f ; \
+ node $$f ; \
+ done
+
+test-unix:
+ if [[ -n "$$TEST_UNIX" ]] ; then \
+ for f in `ls -1 test/test-*.js | grep unix` ; do \
+ echo $$f ; \
+ node $$f ; \
+ done \
+ fi