Just like with test[123] add their test[123]b variants. After previous 3 patchs all test pass here on Debian GNU/Linux on i385 with gcc-4.7 with or without memory randomization turned on.
Unified · Split
| @@ -11,8 +11,11 @@ tc1.c · 10 unmodified lines | ||
| 11 | 11 | error.c |
| 12 | 12 | i386-gen1.c |
| 13 | 13 | test.out1 |
| 14 | +test.out1b | |
| 14 | 15 | test.out2 |
| 16 | +test.out2b | |
| 15 | 17 | test.out3 |
| 18 | +test.out3b | |
| 16 | 19 | web.sh |
| 17 | 20 | memdebug.c |
| 18 | 21 | bench |
| @@ -12,6 +12,9 @@ TESTS = libtest \ · 11 unmodified lines | ||
| 12 | 12 | test3 \ |
| 13 | 13 | speedtest \ |
| 14 | 14 | btest \ |
| 15 | + test1b\ | |
| 16 | + test2b\ | |
| 17 | + test3b\ | |
| 15 | 18 | weaktest |
| 16 | 19 | |
| 17 | 20 | # test4 # this test does not seem to work on any platform |
| @@ -20,6 +23,9 @@ TESTS = libtest \ · 2 unmodified lines | ||
| 20 | 23 | # bounds-checking is supported only on i386 |
| 21 | 24 | ifneq ($(ARCH),i386) |
| 22 | 25 | TESTS := $(filter-out btest,$(TESTS)) |
| 26 | + TESTS := $(filter-out test1b,$(TESTS)) | |
| 27 | + TESTS := $(filter-out test2b,$(TESTS)) | |
| 28 | + TESTS := $(filter-out test3b,$(TESTS)) | |
| 23 | 29 | endif |
| 24 | 30 | |
| 25 | 31 | # these should work too |
| @@ -87,18 +93,33 @@ test1: test.ref · 61 unmodified lines | ||
| 87 | 93 | $(TCC) -run tcctest.c > test.out1 |
| 88 | 94 | @if diff -u test.ref test.out1 ; then echo "Auto Test OK"; fi |
| 89 | 95 | |
| 96 | +test1b: test.ref | |
| 97 | + @echo ------------ $@ ------------ | |
| 98 | + $(TCC) -b -run tcctest.c > test.out1b | |
| 99 | + @if diff -u test.ref test.out1b ; then echo "Auto Test OK"; fi | |
| 100 | + | |
| 90 | 101 | # iterated test2 (compile tcc then compile tcctest.c !) |
| 91 | 102 | test2: test.ref |
| 92 | 103 | @echo ------------ $@ ------------ |
| 93 | 104 | $(TCC) $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out2 |
| 94 | 105 | @if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi |
| 95 | 106 | |
| 107 | +test2b: test.ref ../bcheck.o | |
| 108 | + @echo ------------ $@ ------------ | |
| 109 | + $(TCC) -b $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out2b | |
| 110 | + @if diff -u test.ref test.out2b ; then echo "Auto Test2b OK"; fi | |
| 111 | + | |
| 96 | 112 | # iterated test3 (compile tcc then compile tcc then compile tcctest.c !) |
| 97 | 113 | test3: test.ref |
| 98 | 114 | @echo ------------ $@ ------------ |
| 99 | 115 | $(TCC) $(RUN_TCC) $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out3 |
| 100 | 116 | @if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi |
| 101 | 117 | |
| 118 | +test3b: test.ref | |
| 119 | + @echo ------------ $@ ------------ | |
| 120 | + $(TCC) -b $(RUN_TCC) $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out3b | |
| 121 | + @if diff -u test.ref test.out3b ; then echo "Auto Test3 OK"; fi | |
| 122 | + | |
| 102 | 123 | # binary output test |
| 103 | 124 | test4: test.ref |
| 104 | 125 | @echo ------------ $@ ------------ |
| @@ -190,5 +211,5 @@ cache: tcc_g · 85 unmodified lines | ||
| 190 | 211 | |
| 191 | 212 | # clean |
| 192 | 213 | clean: |
| 193 | − rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.gcc \ | |
| 214 | + rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.out?b *.gcc \ | |
| 194 | 215 | tcctest[1234] ex? libtcc_test$(EXESUF) tcc_g tcclib.h |