diff options
| -rwxr-xr-x | lua/test.sh | 5 | ||||
| -rwxr-xr-x | sam/test.sh | 2 | ||||
| -rwxr-xr-x | vis/test.sh | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/lua/test.sh b/lua/test.sh index 4209f5c..d0e6a1a 100755 --- a/lua/test.sh +++ b/lua/test.sh @@ -18,9 +18,10 @@ for t in $test_files; do TESTS_RUN=$((TESTS_RUN + 1)) t=${t%.in} t=${t#./} - $VIS "$t".in < /dev/null 2> /dev/null - printf "%-30s" "$t" + + $VIS "$t".in < /dev/null > /dev/null 2>&1 + if [ -e "$t".out ]; then if cmp -s "$t".ref "$t".out 2> /dev/null; then printf "PASS\n" diff --git a/sam/test.sh b/sam/test.sh index 0d904ff..3b3a1a5 100755 --- a/sam/test.sh +++ b/sam/test.sh @@ -73,7 +73,7 @@ for t in $TESTS; do printf "Running test %s with vis ... " "$t" - $VIS "+,{ $NL $CMD $NL wq! $VIS_OUT $NL }" "$IN" 2>/dev/null + $VIS "+,{ $NL $CMD $NL wq! $VIS_OUT $NL }" "$IN" >/dev/null 2>&1 if [ $? -ne 0 -o ! -e "$VIS_OUT" ]; then printf "ERROR\n" elif cmp -s "$REF" "$VIS_OUT"; then diff --git a/vis/test.sh b/vis/test.sh index 3b80818..852a975 100755 --- a/vis/test.sh +++ b/vis/test.sh @@ -18,9 +18,10 @@ for t in $test_files; do TESTS_RUN=$((TESTS_RUN + 1)) t=${t%.in} t=${t#./} - $VIS "$t".in < /dev/null 2> /dev/null - printf "%-50s" "$t" + + $VIS "$t".in < /dev/null > /dev/null 2>&1 + if [ -e "$t".out ]; then if cmp -s "$t".ref "$t".out 2> /dev/null; then printf "PASS\n" |
