Browse Source

added new tests

master
Nathan R 3 years ago
parent
commit
736d389e50
2 changed files with 8 additions and 0 deletions
  1. +1
    -0
      Makefile
  2. +7
    -0
      dotest

+ 1
- 0
Makefile View File

@ -13,6 +13,7 @@ test : all .FORCE
debug : all .FORCE
./$(MAIN) < debug.c > debug.out
gcc -o debug debug.c
#diff debug.out debug.c
$(MAIN) : $(MAIN).c object.c buffer.h

+ 7
- 0
dotest View File

@ -26,6 +26,13 @@ for i in tests-gnu/*.c; do
cmp $i $j || die $i $j
done
for i in single-exec/*.c; do
echo $i
j="${i%.c}.out"
$run < $i > $j
cmp $i $j || die $i $j
done
for i in tests-err/*.c; do
echo $i
j="${i%.c}.out"

Loading…
Cancel
Save