diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-05-08 22:49:52 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-05-08 22:49:52 +0000 |
commit | b80ce0142d97905305c7d33473c1c87e8dc4665c (patch) | |
tree | 83e5d4444d088616149f0735677e9535ee0aa2d4 /utils/ABITest | |
parent | 48df17b8bfcd7a53f147ce00679a1b3976da179c (diff) |
ABITest: Move more of the common Makefile bits into the common
Makefile.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/ABITest')
-rw-r--r-- | utils/ABITest/Makefile.test.common | 21 | ||||
-rw-r--r-- | utils/ABITest/return-types-32/Makefile | 17 | ||||
-rw-r--r-- | utils/ABITest/return-types-64/Makefile | 17 | ||||
-rw-r--r-- | utils/ABITest/return-types/Makefile | 151 | ||||
-rw-r--r-- | utils/ABITest/single-args-32/Makefile | 17 | ||||
-rw-r--r-- | utils/ABITest/single-args-64/Makefile | 11 |
6 files changed, 20 insertions, 214 deletions
diff --git a/utils/ABITest/Makefile.test.common b/utils/ABITest/Makefile.test.common index b7d6b12707..0094a2cbe0 100644 --- a/utils/ABITest/Makefile.test.common +++ b/utils/ABITest/Makefile.test.common @@ -1,6 +1,25 @@ # -*- Makefile -*- -TESTARGS := --no-unsigned --no-vector --no-complex --no-bool --no-bit-field +# Usage: make test.N.report +# +# COUNT can be over-ridden to change the number of tests generated per +# file, and TESTARGS is used to change the type generation. Make sure +# to 'make clean' after changing either of these parameters. + +TESTARGS := --no-unsigned --no-vector --no-complex --no-bool + +COUNT := 1 +TIMEOUT := 5 + +CFLAGS := -std=gnu99 + +X_COMPILER := gcc +X_LL_CFLAGS := -emit-llvm -S +Y_COMPILER := clang +Y_LL_CFLAGS := -emit-llvm -S +CC := gcc + +### ABITESTGEN := ../ABITestGen.py diff --git a/utils/ABITest/return-types-32/Makefile b/utils/ABITest/return-types-32/Makefile index 3749f5bfd1..df1c53f1a1 100644 --- a/utils/ABITest/return-types-32/Makefile +++ b/utils/ABITest/return-types-32/Makefile @@ -1,20 +1,3 @@ -# Usage: make test.N.report -# -# COUNT can be over-ridden to change the number of tests generated per -# file, and TESTARGS is used to change the type generation. Make sure -# to 'make clean' after changing either of these parameters. - -COUNT := 1 -TIMEOUT := 5 - -CFLAGS := -std=gnu99 - -X_COMPILER := gcc -X_LL_CFLAGS := -emit-llvm -S -Y_COMPILER := clang -Y_LL_CFLAGS := -emit-llvm -S -CC := gcc - X_CFLAGS := -m32 Y_CFLAGS := -m32 CC_CFLAGS := -m32 diff --git a/utils/ABITest/return-types-64/Makefile b/utils/ABITest/return-types-64/Makefile index 5ad38894b1..9616e45cba 100644 --- a/utils/ABITest/return-types-64/Makefile +++ b/utils/ABITest/return-types-64/Makefile @@ -1,20 +1,3 @@ -# Usage: make test.N.report -# -# COUNT can be over-ridden to change the number of tests generated per -# file, and TESTARGS is used to change the type generation. Make sure -# to 'make clean' after changing either of these parameters. - -COUNT := 1 -TIMEOUT := 5 - -CFLAGS := -std=gnu99 - -X_COMPILER := gcc -X_LL_CFLAGS := -emit-llvm -S -Y_COMPILER := clang -Y_LL_CFLAGS := -emit-llvm -S -CC := gcc - X_CFLAGS := -m64 Y_CFLAGS := -m64 CC_CFLAGS := -m64 diff --git a/utils/ABITest/return-types/Makefile b/utils/ABITest/return-types/Makefile deleted file mode 100644 index 1fbc092fcd..0000000000 --- a/utils/ABITest/return-types/Makefile +++ /dev/null @@ -1,151 +0,0 @@ -# Usage: make test.N.report -# -# COUNT can be over-ridden to change the number of tests generated per -# file, and TESTARGS is used to change the type generation. Make sure -# to 'make clean' after changing either of these parameters. - -ABITESTGEN := ../ABITestGen.py -TESTARGS := --max-args 0 -COUNT := 1 -TIMEOUT := 5 - -CFLAGS := -std=gnu99 - -X_COMPILER := llvm-gcc -X_LL_CFLAGS := -emit-llvm -S -Y_COMPILER := xcc -ccc-clang -Y_LL_CFLAGS := -emit-llvm -S -CC := gcc - -ifeq (0, 1) -X_CFLAGS := -m32 -Y_CFLAGS := -m32 -CC_CFLAGS := -m32 -else -X_CFLAGS := -m64 -Y_CFLAGS := -m64 -CC_CFLAGS := -m64 -endif - -ifndef VERBOSE - Verb := @ -endif - -.PHONY: test.%.report -test.%.report: test.%.xx.diff test.%.xy.diff test.%.yx.diff test.%.yy.diff - @ok=1;\ - for t in $^; do \ - if [ -s $$t ]; then \ - echo "TEST $*: $$t failed"; \ - ok=0;\ - fi; \ - done; \ - if [ $$ok == 1 ]; then \ - echo "TEST $*: OK"; \ - else \ - false; \ - fi - - -.PHONY: test.%.defs-report -test.%.defs-report: test.%.defs.diff - @for t in $^; do \ - if [ -s $$t ]; then \ - echo "TEST $*: $$t failed"; \ - cat $$t; \ - fi; \ - done - -.PHONY: test.%.build -test.%.build: test.%.ref test.%.xx test.%.xy test.%.yx test.%.yy test.%.x.defs test.%.y.defs - @true - -### - -.PRECIOUS: test.%.xx.diff -test.%.xx.diff: test.%.ref.out test.%.xx.out - $(Verb) diff $^ > $@ || true -.PRECIOUS: test.%.xy.diff -test.%.xy.diff: test.%.ref.out test.%.xy.out - $(Verb) diff $^ > $@ || true -.PRECIOUS: test.%.yx.diff -test.%.yx.diff: test.%.ref.out test.%.yx.out - $(Verb) diff $^ > $@ || true -.PRECIOUS: test.%.yy.diff -test.%.yy.diff: test.%.ref.out test.%.yy.out - $(Verb) diff $^ > $@ || true -.PRECIOUS: test.%.defs.diff -test.%.defs.diff: test.%.x.defs test.%.y.defs - $(Verb) zipdifflines \ - --replace "%struct.T[0-9]+" "%struct.s" \ - --replace "byval align [0-9]+" "byval" \ - $^ > $@ - -.PRECIOUS: test.%.out -test.%.out: test.% - $(Verb) -RunSafely.sh $(TIMEOUT) 1 /dev/null $@ ./$< - -.PRECIOUS: test.%.ref -test.%.ref: test.%.driver.ref.o test.%.a.ref.o test.%.b.ref.o - $(Verb) $(CC) $(CFLAGS) $(CC_CFLAGS) -o $@ $^ -.PRECIOUS: test.%.xx -test.%.xx: test.%.driver.ref.o test.%.a.x.o test.%.b.x.o - $(Verb) $(CC) $(CFLAGS) $(CC_CFLAGS) -o $@ $^ -.PRECIOUS: test.%.xy -test.%.xy: test.%.driver.ref.o test.%.a.x.o test.%.b.y.o - $(Verb) $(CC) $(CFLAGS) $(CC_CFLAGS) -o $@ $^ -.PRECIOUS: test.%.yx -test.%.yx: test.%.driver.ref.o test.%.a.y.o test.%.b.x.o - $(Verb) $(CC) $(CFLAGS) $(CC_CFLAGS) -o $@ $^ -.PRECIOUS: test.%.yy -test.%.yy: test.%.driver.ref.o test.%.a.y.o test.%.b.y.o - $(Verb) $(CC) $(CFLAGS) $(CC_CFLAGS) -o $@ $^ - -.PRECIOUS: test.%.ref.o -test.%.ref.o: test.%.c - $(Verb) $(CC) -c $(CFLAGS) $(CC_CFLAGS) -o $@ $< -.PRECIOUS: test.%.x.o -test.%.x.o: test.%.c - $(Verb) $(X_COMPILER) -c $(CFLAGS) $(X_CFLAGS) -o $@ $< -.PRECIOUS: test.%.y.o -test.%.y.o: test.%.c - $(Verb) $(Y_COMPILER) -c $(CFLAGS) $(Y_CFLAGS) -o $@ $< - -.PRECIOUS: test.%.x.defs -test.%.x.defs: test.%.a.x.ll - -$(Verb) -grep '^define ' $< > $@ -.PRECIOUS: test.%.y.defs -test.%.y.defs: test.%.a.y.ll - -$(Verb) -grep '^define ' $< > $@ - -.PRECIOUS: test.%.a.x.ll -test.%.a.x.ll: test.%.a.c - $(Verb) $(X_COMPILER) $(CFLAGS) $(X_LL_CFLAGS) $(X_CFLAGS) -o $@ $< -.PRECIOUS: test.%.b.x.ll -test.%.b.x.ll: test.%.b.c - $(Verb) $(X_COMPILER) $(CFLAGS) $(X_LL_CFLAGS) $(X_CFLAGS) -o $@ $< -.PRECIOUS: test.%.a.y.ll -test.%.a.y.ll: test.%.a.c - $(Verb) $(Y_COMPILER) $(CFLAGS) $(Y_LL_CFLAGS) $(Y_CFLAGS) -o $@ $< -.PRECIOUS: test.%.b.y.ll -test.%.b.y.ll: test.%.b.c - $(Verb) $(Y_COMPILER) $(CFLAGS) $(Y_LL_CFLAGS) $(Y_CFLAGS) -o $@ $< - -.PHONY: test.%.top -test.%.top: test.%.a.c test.%.b.c test.%.driver.c - @true - -.PRECIOUS: test.%.a.c test.%.b.c test.%.driver.c -test.%.a.c: test.%.generate - @true -test.%.b.c: test.%.generate - @true -test.%.driver.c: test.%.generate - @true - -.PHONY: test.%.generate -test.%.generate: $(ABITESTGEN) - $(ABITESTGEN) $(TESTARGS) -o test.$*.a.c -T test.$*.b.c -D test.$*.driver.c --min=$(shell expr $* '*' $(COUNT)) --count=$(COUNT) - -clean: - rm -f test.* *~ diff --git a/utils/ABITest/single-args-32/Makefile b/utils/ABITest/single-args-32/Makefile index 207a35a73e..9ff417fc29 100644 --- a/utils/ABITest/single-args-32/Makefile +++ b/utils/ABITest/single-args-32/Makefile @@ -1,20 +1,3 @@ -# Usage: make test.N.report -# -# COUNT can be over-ridden to change the number of tests generated per -# file, and TESTARGS is used to change the type generation. Make sure -# to 'make clean' after changing either of these parameters. - -COUNT := 1 -TIMEOUT := 5 - -CFLAGS := -std=gnu99 - -X_COMPILER := gcc -X_LL_CFLAGS := -emit-llvm -S -Y_COMPILER := clang -Y_LL_CFLAGS := -emit-llvm -S -CC := gcc - X_CFLAGS := -m32 Y_CFLAGS := -m32 CC_CFLAGS := -m32 diff --git a/utils/ABITest/single-args-64/Makefile b/utils/ABITest/single-args-64/Makefile index 8653cf4514..b8acb70c13 100644 --- a/utils/ABITest/single-args-64/Makefile +++ b/utils/ABITest/single-args-64/Makefile @@ -4,17 +4,6 @@ # file, and TESTARGS is used to change the type generation. Make sure # to 'make clean' after changing either of these parameters. -COUNT := 1 -TIMEOUT := 5 - -CFLAGS := -std=gnu99 - -X_COMPILER := gcc -X_LL_CFLAGS := -emit-llvm -S -Y_COMPILER := clang -Y_LL_CFLAGS := -emit-llvm -S -CC := gcc - X_CFLAGS := -m64 Y_CFLAGS := -m64 CC_CFLAGS := -m64 |