mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-03 13:20:26 +02:00
* check/check.arm.sh, check/check.sh, check/check.swf.sh, check/check.x87.sh: Properly check test programs output, not just rely on the test program self testing the results and not crashing.
15 lines
302 B
Bash
Executable file
15 lines
302 B
Bash
Executable file
#!/bin/sh
|
|
test=`basename $0 | sed -e 's|\.arm$||'`
|
|
./lightning -mthumb=0 $srcdir/$test.tst | tr -d \\r > $test.out
|
|
if test $? != 0; then
|
|
exit $?
|
|
fi
|
|
|
|
cmp -s $srcdir/$test.ok $test.out
|
|
result=$?
|
|
if test $result != 0; then
|
|
diff $srcdir/$test.ok $test.out
|
|
rm $test.out
|
|
exit 1
|
|
fi
|
|
rm $test.out
|