diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2021-09-20 19:00:50 +0200 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2021-09-20 19:00:50 +0200 |
commit | ee73aa4d40ac7b57f54321cdec8a8f70633edc81 (patch) | |
tree | 2a68210f3f097112dc4e3e1361465c1714a9fb70 /test | |
parent | bc0900442d879635ca57bb613fe7644133a63d75 (diff) | |
download | compcert-kvx-ee73aa4d40ac7b57f54321cdec8a8f70633edc81.tar.gz compcert-kvx-ee73aa4d40ac7b57f54321cdec8a8f70633edc81.zip |
better test
Diffstat (limited to 'test')
-rwxr-xr-x | test/monniaux/csmith/reduce/reduce_wrt_host.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/monniaux/csmith/reduce/reduce_wrt_host.sh b/test/monniaux/csmith/reduce/reduce_wrt_host.sh index 7666c31b..c72ffe30 100755 --- a/test/monniaux/csmith/reduce/reduce_wrt_host.sh +++ b/test/monniaux/csmith/reduce/reduce_wrt_host.sh @@ -9,9 +9,14 @@ then if $COMPCERT/ccomp $INCLUDE -fall -fno-cse -fno-cse2 -fno-cse3 source.c -o source.ccomp.target then qemu-aarch64 -L /usr/aarch64-linux-gnu source.ccomp.target >& source.ccomp.target.out - if grep checksum source.ccomp.target.out > source.ccomp.target.check && diff source.ccomp.target.check source.gcc.target.check - then exit 40 - else exit 0 + if grep checksum source.ccomp.target.out > source.ccomp.target.check + then + if diff source.ccomp.target.check source.gcc.target.check + then exit 40 + else exit 0 + fi + else + exit 50 fi else exit 2 |