[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 228/437: Properly check tests output.
From: |
Andy Wingo |
Subject: |
[Guile-commits] 228/437: Properly check tests output. |
Date: |
Mon, 2 Jul 2018 05:14:26 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit ab7d15ddd28ff7dd8e0e39bd8ce1ad7df73f3628
Author: pcpa <address@hidden>
Date: Sun Jul 28 14:01:22 2013 -0300
Properly check tests output.
* 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.
---
ChangeLog | 7 +++++++
check/check.arm.sh | 15 ++++++++++++++-
check/check.sh | 15 ++++++++++++++-
check/check.swf.sh | 15 ++++++++++++++-
check/check.x87.sh | 15 ++++++++++++++-
5 files changed, 63 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 79d4abd..1133d8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2013-07-28 Paulo Andrade <address@hidden>
+ * 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 <address@hidden>
+
* 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
- [Guile-commits] 201/437: Do not start over jit generation if can safely grow buffer size., (continued)
- [Guile-commits] 201/437: Do not start over jit generation if can safely grow buffer size., Andy Wingo, 2018/07/02
- [Guile-commits] 152/437: Remove most type casts and compile test tool silently with -Wall, Andy Wingo, 2018/07/02
- [Guile-commits] 208/437: Implement fpr register arguments and minor extra fixes., Andy Wingo, 2018/07/02
- [Guile-commits] 211/437: Correct the cvt.tst test case on Itanium., Andy Wingo, 2018/07/02
- [Guile-commits] 187/437: Correct regression with float arguments in arm hardp, Andy Wingo, 2018/07/02
- [Guile-commits] 200/437: Add a simple memory management wrapper., Andy Wingo, 2018/07/02
- [Guile-commits] 196/437: Add missing __ppc__ definition., Andy Wingo, 2018/07/02
- [Guile-commits] 159/437: Correct stack.tst test case on ppc. Now all tests pass in all backends., Andy Wingo, 2018/07/02
- [Guile-commits] 172/437: Rework {get, push}arg{, i, r}_{f, d} to a more descriptive name and usage., Andy Wingo, 2018/07/02
- [Guile-commits] 221/437: Correct build and pass all tests on Solaris Sparc., Andy Wingo, 2018/07/02
- [Guile-commits] 228/437: Properly check tests output.,
Andy Wingo <=
- [Guile-commits] 186/437: Add code to release all memory used by the jit state., Andy Wingo, 2018/07/02
- [Guile-commits] 137/437: Make mips backend compile on a qemu image., Andy Wingo, 2018/07/02
- [Guile-commits] 222/437: Correct build and pass all tests on Solaris x86., Andy Wingo, 2018/07/02
- [Guile-commits] 219/437: Remove redundancy in the hppa cache synchronization code., Andy Wingo, 2018/07/02
- [Guile-commits] 245/437: S390X: Correct values of float registers saved on stack., Andy Wingo, 2018/07/02
- [Guile-commits] 224/437: Correct mips o32 abi that was broken when adding n32 abi support., Andy Wingo, 2018/07/02
- [Guile-commits] 230/437: New s390x port built on the hercules emulator and fedora 16 image., Andy Wingo, 2018/07/02
- [Guile-commits] 234/437: GNU lightning 2.0.0 release, Andy Wingo, 2018/07/02
- [Guile-commits] 256/437: X86: %r12 may be used as an index register., Andy Wingo, 2018/07/02
- [Guile-commits] 229/437: Do not assume cast of nan or inf double to float always work., Andy Wingo, 2018/07/02