-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrunner.sh
58 lines (48 loc) · 1.22 KB
/
runner.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
set -e
function do_trial {
set -e
echo --- build $1
rm example/example-program* || true
rm example/control-c-tester* || true
$@
echo --- run example/example-program $1
if ! [ -f example/example-program ] ; then
echo example/example-program failed to build.
exit 1
fi
example/example-program --help
example/example-program -b
example/example-program
}
function do_trial_both {
set -e
echo --- build $1
rm example/example-program* || true
rm example/control-c-tester* || true
$@
echo --- run example/example-program $1
if ! [ -f example/example-program ] ; then
echo example/example-program failed to build.
exit 1
fi
example/example-program --help
example/example-program -b
example/example-program
echo --- run example/control-c-tester $1
if ! [ -f example/control-c-tester ] ; then
echo example/control-c-tester failed to build.
exit 1
fi
example/control-c-tester &
pid="$!"
sleep 3
kill -INT $pid
wait
echo Terminated
}
do_trial_both sbcl --load runner.lisp
do_trial_both ecl -load runner.lisp
do_trial_both ccl64 --load runner.lisp
do_trial clisp < runner.lisp
do_trial_both cmucl -load runner.lisp