mes: getopt-long: fix multi-opt and unclumping.
[mes.git] / check.sh
1 #! /bin/sh
2
3 # Mes --- Maxwell Equations of Software
4 # Copyright © 2017,2018 Jan Nieuwenhuizen <janneke@gnu.org>
5 #
6 # This file is part of Mes.
7 #
8 # Mes is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or (at
11 # your option) any later version.
12 #
13 # Mes is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with Mes.  If not, see <http://www.gnu.org/licenses/>.
20
21 export GUILE=${GUILE-guile}
22 export MES=${MES-./mes}
23
24 tests="
25 tests/read.test
26 tests/base.test
27 tests/closure.test
28 tests/quasiquote.test
29 tests/let.test
30 tests/scm.test
31 tests/display.test
32 tests/cwv.test
33 tests/math.test
34 tests/vector.test
35 tests/srfi-1.test
36 tests/srfi-13.test
37 tests/srfi-14.test
38 tests/optargs.test
39 tests/fluids.test
40 tests/catch.test
41 tests/record.test
42 tests/syntax.test
43 tests/pmatch.test
44 tests/let-syntax.test
45 tests/guile.test
46 tests/getopt-long.test
47 tests/psyntax.test
48 tests/match.test
49 "
50
51 slow_or_broken="
52 tests/peg.test
53 "
54
55 tests=$(for t in $tests; do echo $t-guile; echo $t; done)
56
57 set +e
58 fail=0
59 total=0
60 for t in $tests; do
61     sh "$t" &> $t.log
62     r=$?
63     total=$((total+1))
64     if [ $r = 0 ]; then
65         echo $t: [OK]
66     else
67         echo $t: [FAIL]
68         fail=$((fail+1))
69     fi
70 done
71 if [ $fail != 0 ]; then
72     echo FAILED: $fail/$total
73     exit 1
74 else
75     echo PASS: $total
76 fi
77
78 sh check-mescc.sh