ignoring test if node is not present

This commit is contained in:
Henrique 2013-05-11 01:24:59 +02:00
parent 2a592b2d2a
commit 4e1ef5bece

View File

@ -22,14 +22,15 @@ stubs: ../ThriftTest.thrift
$(THRIFT) --gen js:node ../ThriftTest.thrift
check: stubs
@if which expresso &> /dev/null ; then \
@if which nodeunit &> /dev/null ; then \
echo " Testing thrift/binary"; \
NODE_PATH=../../lib/nodejs/lib:../../lib/nodejs/lib/thrift:$(NODE_PATH) nodeunit ../../lib/nodejs/test/binary.test.js; \
fi
timeout 2 $(MAKE) server &
@sleep 1
$(MAKE) client
@sleep 1
@if which node &> /dev/null ; then \
echo " Testing Client/Server"; \
timeout 2 $(MAKE) server & \
sleep 1; $(MAKE) client; sleep 1; \
fi
clean-local:
$(RM) -r gen-nodejs