-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | check/check.arm.sh | 15 | ||||
-rwxr-xr-x | check/check.sh | 15 | ||||
-rwxr-xr-x | check/check.swf.sh | 15 | ||||
-rwxr-xr-x | check/check.x87.sh | 15 |
@@ -1,5 +1,12 @@ 2013年07月28日 Paulo Andrade <pcpa@gnu.org> + * 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. + +2013年07月28日 Paulo Andrade <pcpa@gnu.org> + * lib/jit_aarch64.c: Remove unused macros left from cut&paste of jit_arm.c. diff --git a/check/check.arm.sh b/check/check.arm.sh index 0b1d369..2f576be 100755 --- a/check/check.arm.sh +++ b/check/check.arm.sh @@ -1,2 +1,15 @@ #!/bin/sh -./lightning -mthumb=0 $srcdir/`basename 0ドル | sed -e 's|\.arm$||'`.tst +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 diff --git a/check/check.sh b/check/check.sh index edf1f21..e0267a2 100755 --- a/check/check.sh +++ b/check/check.sh @@ -1,2 +1,15 @@ #!/bin/sh -./lightning $srcdir/`basename 0ドル`.tst +test=`basename 0ドル` +./lightning $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 diff --git a/check/check.swf.sh b/check/check.swf.sh index 24b1741..9494eef 100755 --- a/check/check.swf.sh +++ b/check/check.swf.sh @@ -1,2 +1,15 @@ #!/bin/sh -./lightning -mvfp=0 $srcdir/`basename 0ドル | sed -e 's|\.swf$||'`.tst +test=`basename 0ドル | sed -e 's|\.swf$||'` +./lightning -mvfp=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 diff --git a/check/check.x87.sh b/check/check.x87.sh index 87cab8e..c0245e1 100755 --- a/check/check.x87.sh +++ b/check/check.x87.sh @@ -1,2 +1,15 @@ #!/bin/sh -./lightning -mx87=1 $srcdir/`basename 0ドル | sed -e 's|\.x87$||'`.tst +test=`basename 0ドル | sed -e 's|\.x87$||'` +./lightning -mx87=1 $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 |