Changes in tests/Makefile.in [34e1494:655c5fa]
- File:
-
- 1 edited
-
tests/Makefile.in (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.in
r34e1494 r655c5fa 212 212 AWK = @AWK@ 213 213 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 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}) 214 CC = @CFACC@ 217 215 CCAS = @CCAS@ 218 216 CCASDEPMODE = @CCASDEPMODE@ 219 217 CCASFLAGS = @CCASFLAGS@ 220 218 CCDEPMODE = @CCDEPMODE@ 221 CFACC = $(CC)219 CFACC = @CFACC@ 222 220 CFACPP = @CFACPP@ 223 221 CFA_BACKEND_CC = @CFA_BACKEND_CC@ … … 250 248 FGREP = @FGREP@ 251 249 GREP = @GREP@ 252 HAS_DISTCC = @HAS_DISTCC@253 250 HOST_FLAGS = @HOST_FLAGS@ 254 251 INSTALL = @INSTALL@ … … 389 386 390 387 # applies to both programs 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}) 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} 405 391 PRETTY_PATH = mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && 406 392 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 … … 411 397 412 398 # Use for all tests, make sure the path are correct and all flags are added 413 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGSCFA" | sed 's/-\|\//_/g')) 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 ${@}) 414 406 415 407 #------------------------------------------------------------------------------ 416 # TARGET S WITHCUSTOM FLAGS408 # TARGET WITH STANDARD RULE BUT CUSTOM FLAGS 417 409 #------------------------------------------------------------------------------ 418 # custom libs 419 gmp_FLAGSLD = -lgmp 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 420 418 421 419 #------------------------------------------------------------------------------ 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 420 # Expected failures 421 completeTypeError_FLAGS = -DERR1 427 422 all: all-am 428 423 … … 776 771 #---------------------------------------------------------------------------------------------------------------- 777 772 all-local : 778 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test}773 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test} 779 774 780 775 all-tests : 781 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program776 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 782 777 783 778 clean-local : … … 806 801 807 802 # implicit rule so not all test require a rule 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 803 % : %.cfa $(CFACC) 804 $(CFATEST_STDOUT) 805 816 806 % : %.cpp 817 807 $(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 ${@})822 808 823 809 #------------------------------------------------------------------------------ 824 810 # CUSTOM TARGET 825 811 #------------------------------------------------------------------------------ 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 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 854 843 855 844 # Tell versions [3.59,3.63) of GNU make to not export all variables.
Note:
See TracChangeset
for help on using the changeset viewer.