3 # Mes --- Maxwell Equations of Software
4 # Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
6 # This file is part of Mes.
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.
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.
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/>.
24 DIFF=${DIFF-$(command -v diff)}
25 [ -z "$DIFF" ] && DIFF="sh build-aux/diff.scm"
27 t=${1-scaffold/tests/t}
34 if [ -n "$CC32" ]; then
35 sh build-aux/cc-mlibc.sh "$t"
38 [ -f "$t".exit ] && r=$(cat "$t".exit)
40 "$t".mlibc-out > "$t".mlibc-stdout
46 if [ -f "$t".expect ]; then
47 $DIFF -ub "$t".expect "$t".mlibc-stdout;
52 sh build-aux/cc-mes.sh "$t"
55 [ -f "$t".exit ] && r=$(cat "$t".exit)
57 "$t".mes-out > "$t".mes-stdout
63 if [ -f "$t".expect ]; then
64 $DIFF -ub "$t".expect "$t".mes-stdout;