diff test/test.sh @ 147:5d4727387c93

Some test scripts and doc files
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 09 Feb 2017 11:34:24 +0000
parents
children 577e5e55cc21
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/test.sh	Thu Feb 09 11:34:24 2017 +0000
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+set -eu
+
+mydir="$(dirname $0)"
+
+cd "$mydir"
+
+echo
+echo "Running C++ test..."
+echo
+
+( cd ../examples/vamp-example-plugins && make clean linux )
+
+make quick-test
+
+./quick-test > /tmp/$$
+
+if ! cmp /tmp/$$ ./expected.txt ; then
+    echo
+    echo "FAILED: output not as expected: diff follows:"
+    diff -u /tmp/$$ ./expected.txt
+    exit 1
+fi
+
+echo
+echo "Running Emscripten tests..."
+echo
+
+( cd ../examples/vamp-example-plugins && make clean test )
+( cd ../examples/vamp-test-plugin && make clean test )
+
+echo
+echo "Done"
+echo