summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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