From: Henrique Date: Fri, 10 May 2013 23:24:59 +0000 (+0200) Subject: ignoring test if node is not present X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4e1ef5becef44951333bd63871673fc52afd81a2;p=common%2Fthrift.git ignoring test if node is not present --- diff --git a/test/nodejs/Makefile.am b/test/nodejs/Makefile.am index 8f74ba86..06e2eeca 100755 --- a/test/nodejs/Makefile.am +++ b/test/nodejs/Makefile.am @@ -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