comparison test/test.sh @ 161:577e5e55cc21

Docs, parameterise node binary, update expected output for static info & category (+overdue update from copyright to rights)
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 15 Jun 2017 15:41:16 +0100
parents 5d4727387c93
children
comparison
equal deleted inserted replaced
160:e4d10a68b933 161:577e5e55cc21
17 ./quick-test > /tmp/$$ 17 ./quick-test > /tmp/$$
18 18
19 if ! cmp /tmp/$$ ./expected.txt ; then 19 if ! cmp /tmp/$$ ./expected.txt ; then
20 echo 20 echo
21 echo "FAILED: output not as expected: diff follows:" 21 echo "FAILED: output not as expected: diff follows:"
22 diff -u /tmp/$$ ./expected.txt 22 cp /tmp/$$ ./obtained.txt
23 diff -u ./obtained.txt ./expected.txt
23 exit 1 24 exit 1
24 fi 25 fi
25 26
26 echo 27 echo
27 echo "Running Emscripten tests..." 28 echo "Running Emscripten tests..."
28 echo 29 echo
29 30
31 NODE=nodejs
32 if ! nodejs -v >/dev/null 2>&1 ; then
33 NODE=node
34 if ! node -v >/dev/null 2>&1 ; then
35 NODE=""
36 fi
37 fi
38 export NODE
39
30 ( cd ../examples/vamp-example-plugins && make clean test ) 40 ( cd ../examples/vamp-example-plugins && make clean test )
31 ( cd ../examples/vamp-test-plugin && make clean test ) 41 ( cd ../examples/vamp-test-plugin && make clean test )
32 42
33 echo 43 echo
34 echo "Done" 44 echo "Done"