diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-10-05 13:31:53 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-10-05 13:33:14 -0700 |
commit | 15ae0717ba51649dd8042cd5ef0be3bc296b8a26 (patch) | |
tree | c26ea2b0ba15152e0746bfbb7c5c11a9a0027c20 /subx/test_apps | |
parent | 9f1d0ef3fb2044f7f9cdb51f72cc9822b023eea0 (diff) | |
download | mu-15ae0717ba51649dd8042cd5ef0be3bc296b8a26.tar.gz |
4664 - subx: reflect test failures in exit status
Diffstat (limited to 'subx/test_apps')
-rwxr-xr-x | subx/test_apps | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/subx/test_apps b/subx/test_apps index 988e81ae..8f00e538 100755 --- a/subx/test_apps +++ b/subx/test_apps @@ -114,33 +114,25 @@ test `uname` = 'Linux' && { echo ex11 CFLAGS=-g ./subx translate examples/ex11.subx -o examples/ex11 test `uname -m` = 'i686' && git diff --quiet examples/ex11 -CFLAGS=-g ./subx run examples/ex11 2>ex11.out || true # exit status for run_tests not yet well-defined -grep -vq 'F' ex11.out # no test failures -test `uname` = 'Linux' && { - examples/ex11 2>ex11.out || true # exit status for run_tests not yet well-defined - grep -vq 'F' ex11.out # no test failures -} +CFLAGS=-g ./subx run examples/ex11 +test `uname` = 'Linux' && examples/ex11 echo ex12 CFLAGS=-g ./subx translate examples/ex12.subx -o examples/ex12 test `uname -m` = 'i686' && git diff --quiet examples/ex12 CFLAGS=-g ./subx run examples/ex12 # final byte of mmap'd address is well-nigh guaranteed to be 0 -test `uname` = 'Linux' && { - examples/ex12 # final byte of mmap'd address is well-nigh guaranteed to be 0 -} +test `uname` = 'Linux' && examples/ex12 echo factorial CFLAGS=-g ./subx translate *.subx apps/factorial.subx -o apps/factorial test `uname -m` = 'i686' && git diff --quiet apps/factorial CFLAGS=-g ./subx run apps/factorial || ret=$? test $ret -eq 120 # factorial(5) -CFLAGS=-g ./subx run apps/factorial test 2>factorial.out || true # exit status for run_tests not yet well-defined -grep -vq 'F' factorial.out # no test failures +CFLAGS=-g ./subx run apps/factorial test test `uname` = 'Linux' && { apps/factorial || ret=$? test $ret -eq 120 # factorial(5) - apps/factorial test 2>factorial.out || true # exit status for run_tests not yet well-defined - grep -vq 'F' factorial.out # no test failures + apps/factorial test } echo crenshaw2-1 |