Skip to content

Commit

Permalink
Don't run UNIX tests by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgriess committed Dec 5, 2010
1 parent 4dcf657 commit b5da99c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile
@@ -1,8 +1,20 @@
# 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` ; do \
for f in `ls -1 test/test-*.js | grep -v unix` ; do \
node $$f ; \
done

test-unix:
if [[ -n "$$TEST_UNIX" ]] ; then \
for f in `ls -1 test/test-*.js | grep unix` ; do \
node $$f ; \
done \
fi

0 comments on commit b5da99c

Please sign in to comment.