mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
ignoring test if node is not present
This commit is contained in:
parent
2a592b2d2a
commit
4e1ef5bece
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user