Fixes for tests/Makefile.
- On x86-64, we need $(TARGET) in RUN_TCC. - s/RuN_TCC/RUN_TCC/
This commit is contained in:
parent
5829791ffa
commit
48ae0c0468
1 changed files with 3 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ include $(TOP)/Makefile
|
||||||
|
|
||||||
# run local version of tcc with local libraries and includes
|
# run local version of tcc with local libraries and includes
|
||||||
TCC = ../tcc -B..
|
TCC = ../tcc -B..
|
||||||
RUN_TCC = -run ../tcc.c -B..
|
RUN_TCC = $(TARGET) -run ../tcc.c -B..
|
||||||
DISAS=objdump -d
|
DISAS=objdump -d
|
||||||
|
|
||||||
all test : $(TESTS)
|
all test : $(TESTS)
|
||||||
|
|
@ -49,13 +49,13 @@ test1: test.ref
|
||||||
# iterated test2 (compile tcc then compile tcctest.c !)
|
# iterated test2 (compile tcc then compile tcctest.c !)
|
||||||
test2: test.ref
|
test2: test.ref
|
||||||
@echo ------------ $@ ------------
|
@echo ------------ $@ ------------
|
||||||
$(TCC) $(RUN_TCC) $(RuN_TCC) -run tcctest.c > test.out2
|
$(TCC) $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out2
|
||||||
@if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi
|
@if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi
|
||||||
|
|
||||||
# iterated test3 (compile tcc then compile tcc then compile tcctest.c !)
|
# iterated test3 (compile tcc then compile tcc then compile tcctest.c !)
|
||||||
test3: test.ref
|
test3: test.ref
|
||||||
@echo ------------ $@ ------------
|
@echo ------------ $@ ------------
|
||||||
$(TCC) $(RUN_TCC) $(RuN_TCC) $(RUN_TCC) -run tcctest.c > test.out3
|
$(TCC) $(RUN_TCC) $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out3
|
||||||
@if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi
|
@if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi
|
||||||
|
|
||||||
# binary output test
|
# binary output test
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue