Changes in tests/Makefile.in [655c5fa:34e1494]
- File:
-
- 1 edited
-
tests/Makefile.in (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.in
r655c5fa r34e1494 212 212 AWK = @AWK@ 213 213 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 214 CC = @CFACC@ 214 215 # adjust CC to current flags 216 CC = $(if $(DISTCC_CFA_PATH),distcc $(DISTCC_CFA_PATH) -dist-tree -in-tree,@CFACC@ ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}) 215 217 CCAS = @CCAS@ 216 218 CCASDEPMODE = @CCASDEPMODE@ 217 219 CCASFLAGS = @CCASFLAGS@ 218 220 CCDEPMODE = @CCDEPMODE@ 219 CFACC = @CFACC@221 CFACC = $(CC) 220 222 CFACPP = @CFACPP@ 221 223 CFA_BACKEND_CC = @CFA_BACKEND_CC@ … … 248 250 FGREP = @FGREP@ 249 251 GREP = @GREP@ 252 HAS_DISTCC = @HAS_DISTCC@ 250 253 HOST_FLAGS = @HOST_FLAGS@ 251 254 INSTALL = @INSTALL@ … … 386 389 387 390 # applies to both programs 388 AM_CFLAGS = $(if $(test), 2> $(test), ) -g -Wall -Wno-unused-function \ 389 -quiet @CFA_FLAGS@ -DIN_DIR="${abs_srcdir}/.in/" \ 390 ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 391 # since automake doesn't have support for CFA we have to 392 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 393 -g \ 394 -Wall \ 395 -Wno-unused-function \ 396 -quiet @CFA_FLAGS@ \ 397 -DIN_DIR="${abs_srcdir}/.in/" 398 399 400 # get local binary for depedencies 401 CFACCBIN = @CFACC@ 402 403 # adjusted CC but without the actual distcc call 404 CFACCLOCAL = $(if $(DISTCC_CFA_PATH),$(DISTCC_CFA_PATH) -dist-tree -in-tree,@CFACC@ ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}) 391 405 PRETTY_PATH = mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && 392 406 avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa … … 397 411 398 412 # Use for all tests, make sure the path are correct and all flags are added 399 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 400 401 # Use for tests that either generate an executable, print directyl to stdout or the make command is expected to fail 402 CFATEST_STDOUT = $(CFACOMPILETEST) -o $(abspath ${@}) 403 404 # Use for tests where the make command is expecte to succeed but the expected.txt should be compared to stderr 405 CFATEST_STDERR = $(CFACOMPILETEST) 2> $(abspath ${@}) 413 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGSCFA" | sed 's/-\|\//_/g')) 406 414 407 415 #------------------------------------------------------------------------------ 408 # TARGET WITH STANDARD RULE BUTCUSTOM FLAGS416 # TARGETS WITH CUSTOM FLAGS 409 417 #------------------------------------------------------------------------------ 410 # Expected failures 411 declarationSpecifier_FLAGS = -CFA -XCFA -p 412 gccExtensions_FLAGS = -CFA -XCFA -p 413 extension_FLAGS = -CFA -XCFA -p 414 attributes_FLAGS = -CFA -XCFA -p 415 functions_FLAGS = -CFA -XCFA -p 416 KRfunctions_FLAGS = -CFA -XCFA -p 417 gmp_FLAGS = -lgmp 418 # custom libs 419 gmp_FLAGSLD = -lgmp 418 420 419 421 #------------------------------------------------------------------------------ 420 # Expected failures 421 completeTypeError_FLAGS = -DERR1 422 # Generated code 423 GENERATED_CODE = declarationSpecifier gccExtensions extension attributes functions KRfunctions 424 425 # Use for tests where the make command is expected to succeed but the expected.txt should be compared to stderr 426 EXPECT_STDERR = builtins/sync warnings/self-assignment 422 427 all: all-am 423 428 … … 771 776 #---------------------------------------------------------------------------------------------------------------- 772 777 all-local : 773 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test}778 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test} 774 779 775 780 all-tests : 776 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program781 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 777 782 778 783 clean-local : … … 801 806 802 807 # implicit rule so not all test require a rule 803 % : %.cfa $(CFACC) 804 $(CFATEST_STDOUT) 805 808 # split into two steps to support compiling remotely using distcc 809 # don't use distcc to do the linking because distcc doesn't do linking 810 % : %.cfa $(CFACCBIN) 811 $(CFACOMPILETEST) -c -o $(abspath ${@}).o 812 $(CFACCLOCAL) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) $(abspath ${@}).o -o $(abspath ${@}) 813 814 # implicit rule for c++ test 815 # convient for testing the testsuite itself but not actuall used 806 816 % : %.cpp 807 817 $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 818 $(GENERATED_CODE): % : %.cfa $(CFACCBIN) 819 $(CFACOMPILETEST) -CFA -XCFA -p -c -fsyntax-only -o $(abspath ${@}) 820 $(EXPECT_STDERR): % : %.cfa $(CFACCBIN) 821 $(CFACOMPILETEST) -c -fsyntax-only 2> $(abspath ${@}) 808 822 809 823 #------------------------------------------------------------------------------ 810 824 # CUSTOM TARGET 811 825 #------------------------------------------------------------------------------ 812 typedefRedef-ERR1: typedefRedef.cfa $(CFACC) 813 $(CFATEST_STDOUT) -DERR1 814 815 alloc-ERROR: alloc.cfa $(CFACC) 816 $(CFATEST_STDOUT) -DERR1 817 818 nested-types-ERR1: nested-types.cfa $(CFACC) 819 $(CFATEST_STDOUT) -DERR1 820 821 nested-types-ERR2: nested-types.cfa $(CFACC) 822 $(CFATEST_STDOUT) -DERR2 823 824 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC) 825 $(CFATEST_STDOUT) -DERR1 826 827 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC) 828 $(CFATEST_STDOUT) -DERR2 829 830 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC) 831 $(CFATEST_STDOUT) -DERR1 832 833 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC) 834 $(CFATEST_STDOUT) -DERR1 835 836 #builtins 837 builtins/sync: builtins/sync.cfa $(CFACC) 838 $(CFATEST_STDERR) -fsyntax-only 839 840 # Warnings 841 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC) 842 $(CFATEST_STDERR) -fsyntax-only 826 # expected failures 827 # use custom target since they require a custom define and custom dependencies 828 alloc-ERROR : alloc.cfa $(CFACCBIN) 829 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 830 831 typedefRedef-ERR1 : typedefRedef.cfa $(CFACCBIN) 832 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 833 834 nested-types-ERR1 : nested-types.cfa $(CFACCBIN) 835 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 836 837 nested-types-ERR2 : nested-types.cfa $(CFACCBIN) 838 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 839 840 raii/memberCtors-ERR1 : raii/memberCtors.cfa $(CFACCBIN) 841 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 842 843 raii/ctor-autogen-ERR1 : raii/ctor-autogen.cfa $(CFACCBIN) 844 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 845 846 raii/dtor-early-exit-ERR1 : raii/dtor-early-exit.cfa $(CFACCBIN) 847 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 848 849 raii/dtor-early-exit-ERR2 : raii/dtor-early-exit.cfa $(CFACCBIN) 850 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 851 852 #------------------------------------------------------------------------------ 853 # Other targets 843 854 844 855 # Tell versions [3.59,3.63) of GNU make to not export all variables.
Note:
See TracChangeset
for help on using the changeset viewer.