summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-05-21 21:54:04 +0200
committermanuel <manuel@mausz.at>2012-05-21 21:54:04 +0200
commitdaec0a0a7bef72bf0b0ab4462f6fba02727037cd (patch)
tree35ed6092936422908159c92350927001831471af
parent9c0650ba3f0a664800612661de2060f9ee0d213f (diff)
downloadffp-daec0a0a7bef72bf0b0ab4462f6fba02727037cd.tar.gz
ffp-daec0a0a7bef72bf0b0ab4462f6fba02727037cd.tar.bz2
ffp-daec0a0a7bef72bf0b0ab4462f6fba02727037cd.zip
adding runtest script for simpler exeuction of tests
-rwxr-xr-xruntest15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtest b/runtest
new file mode 100755
index 0000000..4ac72e1
--- /dev/null
+++ b/runtest
@@ -0,0 +1,15 @@
1#!/bin/sh
2
3testfile="$1"
4shift
5
6if [ ! -f "$testfile" ]
7then
8 echo "Syntax: $0 <testfile>"
9 exit 1
10fi
11
12shebang=$(head -n1 $testfile)
13cmd=${shebang:2}
14cmd=${cmd/\/usr\/bin\/runhugs/runhugs}
15exec $cmd "$@" $testfile