aboutsummaryrefslogtreecommitdiffstats
path: root/test.sh
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-19 19:44:30 +0000
committerDavid Robillard <d@drobilla.net>2009-06-19 19:44:30 +0000
commitda6589624965bf151504c79583dbaf86c9d1abc6 (patch)
tree6a52be003eb655d3f3e6d4c864a82ccd40ca4b79 /test.sh
parentb34e4277c0e3b3c2c7431101dc82161a39e1d361 (diff)
downloadresp-da6589624965bf151504c79583dbaf86c9d1abc6.tar.gz
resp-da6589624965bf151504c79583dbaf86c9d1abc6.tar.bz2
resp-da6589624965bf151504c79583dbaf86c9d1abc6.zip
Add quick kludgey test suite.
git-svn-id: http://svn.drobilla.net/resp/tuplr@127 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..e41e985
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+run() {
+ prog=$1
+ desired=$2
+ out=`./build/tuplr $prog`
+ if [ "$out" != "$desired" ]; then
+ echo "FAIL: $prog";
+ echo " Expected: \"$desired\"";
+ echo " Output: \"$out\"";
+ else
+ echo "PASS: $prog"
+ fi
+}
+
+run './test/ack.tpr' '8189 : Int'
+run './test/def.tpr' '3 : Int'
+run './test/fac.tpr' '720 : Int'
+run './test/nest.tpr' '6 : Int'