bootstrap: Add bootstrap build scripts.
[mes.git] / check.sh
1 #! /bin/sh
2
3 export GUILE=${GUILE-guile}
4 export MES=${MES-./mes}
5
6 tests="
7 tests/read.test
8 tests/base.test
9 tests/closure.test
10 tests/quasiquote.test
11 tests/let.test
12 tests/scm.test
13 tests/display.test
14 tests/cwv.test
15 tests/math.test
16 tests/vector.test
17 tests/srfi-1.test
18 tests/srfi-13.test
19 tests/srfi-14.test
20 tests/optargs.test
21 tests/fluids.test
22 tests/catch.test
23 tests/psyntax.test
24 tests/pmatch.test
25 tests/let-syntax.test
26 tests/guile.test
27 tests/record.test
28 "
29
30 slow="
31 tests/match.test
32 tests/peg.test
33 "
34
35 tests=$(for t in $tests; do echo $t-guile; echo $t; done)
36
37 set +e
38 fail=0
39 total=0
40 for t in $tests; do
41     sh "$t" &> $t.log
42     r=$?
43     total=$((total+1))
44     if [ $r = 0 ]; then
45         echo $t: [OK]
46     else
47         echo $t: [FAIL]
48         fail=$((fail+1))
49     fi
50 done
51 if [ $fail != 0 ]; then
52     echo FAILED: $fail/$total
53     exit 1
54 else
55     echo PASS: $total
56 fi
57
58 sh check-mescc.sh