diff options
author | David Robillard <d@drobilla.net> | 2009-06-19 19:44:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-06-19 19:44:30 +0000 |
commit | da6589624965bf151504c79583dbaf86c9d1abc6 (patch) | |
tree | 6a52be003eb655d3f3e6d4c864a82ccd40ca4b79 /test.sh | |
parent | b34e4277c0e3b3c2c7431101dc82161a39e1d361 (diff) | |
download | resp-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-x | test.sh | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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' |