scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit c8d38c382b122f8f47b93ab7ed8ef95f971b8787
parent f5319b858eb3e6f18d2983745c90d9b024085b99
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 21 Jun 2016 08:29:02 +0200

[test] Improve chktest.sh

Diffstat:
Mtests/README | 3+--
Mtests/chktest.sh | 19++++++-------------
2 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/tests/README b/tests/README @@ -1,3 +1,2 @@ These tests are taken from https://github.com/andrewchambers/qc. -All the credits for this test suite are for Andrew Chambers -https://github.com/andrewchambers/qc. +All the credits for this test suite are for Andrew Chambers. diff --git a/tests/chktest.sh b/tests/chktest.sh @@ -1,20 +1,13 @@ #!/bin/sh +trap 'tabs -8' 0 1 2 3 15 tabs 40 +ulimit -c 0 + for i in *.c do + printf "%s\t" $i (set -e - rm -f a.out core - scc -m qbe $i - ./a.out - ) 2>/dev/null - - if test $? -eq 0 - then - st=[OK] - else - st=[FAIL] - fi - echo $i "\t" $st + scc -m qbe $i && ./a.out + ) 2>/dev/null && echo [OK] || echo [FAILED] done -tabs -8