diff options
| author | manuel <manuel@mausz.at> | 2012-05-21 21:54:04 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-05-21 21:54:04 +0200 |
| commit | daec0a0a7bef72bf0b0ab4462f6fba02727037cd (patch) | |
| tree | 35ed6092936422908159c92350927001831471af | |
| parent | 9c0650ba3f0a664800612661de2060f9ee0d213f (diff) | |
| download | ffp-daec0a0a7bef72bf0b0ab4462f6fba02727037cd.tar.gz ffp-daec0a0a7bef72bf0b0ab4462f6fba02727037cd.tar.bz2 ffp-daec0a0a7bef72bf0b0ab4462f6fba02727037cd.zip | |
adding runtest script for simpler exeuction of tests
| -rwxr-xr-x | runtest | 15 |
1 files changed, 15 insertions, 0 deletions
| @@ -0,0 +1,15 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | testfile="$1" | ||
| 4 | shift | ||
| 5 | |||
| 6 | if [ ! -f "$testfile" ] | ||
| 7 | then | ||
| 8 | echo "Syntax: $0 <testfile>" | ||
| 9 | exit 1 | ||
| 10 | fi | ||
| 11 | |||
| 12 | shebang=$(head -n1 $testfile) | ||
| 13 | cmd=${shebang:2} | ||
| 14 | cmd=${cmd/\/usr\/bin\/runhugs/runhugs} | ||
| 15 | exec $cmd "$@" $testfile | ||
