History

added -run option

bellard committed 23 years ago

Commit 61046291 parent 40987541 file · +7 −8Browse files

Unified · Split

Makefile+7−8
@@ -15,7 +15,6 @@ else · 14 unmodified lines
15CFLAGS+=-march=i386 -falign-functions=015CFLAGS+=-march=i386 -falign-functions=0
16endif16endif
17 17
18
19DISAS=objdump -d18DISAS=objdump -d
20INSTALL=install19INSTALL=install
21 20
@@ -38,19 +37,19 @@ test.ref: tcctest.ref · 16 unmodified lines
38 ./tcctest.ref > $@37 ./tcctest.ref > $@
39 38
40test.out: tcc tcctest.c39test.out: tcc tcctest.c
41 $(TCC) tcctest.c > $@40 $(TCC) -run tcctest.c > $@
42 41
43run: tcc tcctest.c42run: tcc tcctest.c
44 $(TCC) tcctest.c43 $(TCC) -run tcctest.c
45 44
46# iterated test2 (compile tcc then compile tcctest.c !)45# iterated test2 (compile tcc then compile tcctest.c !)
47test2: tcc tcc.c tcctest.c test.ref46test2: tcc tcc.c tcctest.c test.ref
48 $(TCC) tcc.c -B. -I. tcctest.c > test.out247 $(TCC) -run tcc.c -B. -I. -run tcctest.c > test.out2
49 @if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi48 @if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi
50 49
51# iterated test3 (compile tcc then compile tcc then compile tcctest.c !)50# iterated test3 (compile tcc then compile tcc then compile tcctest.c !)
52test3: tcc tcc.c tcctest.c test.ref51test3: tcc tcc.c tcctest.c test.ref
53 $(TCC) tcc.c -B. -I. tcc.c -B. -I. tcctest.c > test.out352 $(TCC) -run tcc.c -B. -I. -run tcc.c -B. -I. -run tcctest.c > test.out3
54 @if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi53 @if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi
55 54
56# binary output test55# binary output test
@@ -79,14 +78,14 @@ BOUNDS_FAIL= 2 5 7 9 11 12 13 · 22 unmodified lines
79 78
80btest: boundtest.c tcc79btest: boundtest.c tcc
81 @for i in $(BOUNDS_OK); do \80 @for i in $(BOUNDS_OK); do \
82 if $(TCC) -b boundtest.c $$i ; then \81 if $(TCC) -b -run boundtest.c $$i ; then \
83 /bin/true ; \82 /bin/true ; \
84 else\83 else\
85 echo Failed positive test $$i ; exit 1 ; \84 echo Failed positive test $$i ; exit 1 ; \
86 fi ;\85 fi ;\
87 done ;\86 done ;\
88 for i in $(BOUNDS_FAIL); do \87 for i in $(BOUNDS_FAIL); do \
89 if $(TCC) -b boundtest.c $$i ; then \88 if $(TCC) -b -run boundtest.c $$i ; then \
90 echo Failed negative test $$i ; exit 1 ;\89 echo Failed negative test $$i ; exit 1 ;\
91 else\90 else\
92 /bin/true ; \91 /bin/true ; \
@@ -140,7 +139,7 @@ clean: · 47 unmodified lines
140 tcctest[1234] test[1234].out139 tcctest[1234] test[1234].out
141 140
142distclean: clean141distclean: clean
143 rm -f config.h config.mak142 rm -f config.h config.mak config.texi
144 143
145# win32 TCC144# win32 TCC
146tcc_g.exe: tcc.c i386-gen.c bcheck.c Makefile145tcc_g.exe: tcc.c i386-gen.c bcheck.c Makefile

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t