Changes in tests/Makefile.am [34e1494:655c5fa]
- File:
-
- 1 edited
-
tests/Makefile.am (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r34e1494 r655c5fa 35 35 36 36 # applies to both programs 37 # since automake doesn't have support for CFA we have to38 37 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 39 38 -g \ … … 43 42 -DIN_DIR="${abs_srcdir}/.in/" 44 43 45 # adjust CC to current flags 46 CC = $(if $(DISTCC_CFA_PATH),distcc $(DISTCC_CFA_PATH) -dist-tree -in-tree,@CFACC@ ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}) 47 CFACC = $(CC) 48 49 # get local binary for depedencies 50 CFACCBIN = @CFACC@ 51 52 # adjusted CC but without the actual distcc call 53 CFACCLOCAL = $(if $(DISTCC_CFA_PATH),$(DISTCC_CFA_PATH) -dist-tree -in-tree,@CFACC@ ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}) 44 AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 45 CC = @CFACC@ 54 46 55 47 PRETTY_PATH=mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && … … 65 57 #---------------------------------------------------------------------------------------------------------------- 66 58 all-local : 67 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test}59 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test} 68 60 69 61 all-tests : 70 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program62 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 71 63 72 64 clean-local : … … 95 87 96 88 # Use for all tests, make sure the path are correct and all flags are added 97 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGSCFA" | sed 's/-\|\//_/g')) 89 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 90 91 # Use for tests that either generate an executable, print directyl to stdout or the make command is expected to fail 92 CFATEST_STDOUT=$(CFACOMPILETEST) -o $(abspath ${@}) 93 94 # Use for tests where the make command is expecte to succeed but the expected.txt should be compared to stderr 95 CFATEST_STDERR=$(CFACOMPILETEST) 2> $(abspath ${@}) 98 96 99 97 #---------------------------------------------------------------------------------------------------------------- 100 98 101 99 # implicit rule so not all test require a rule 102 # split into two steps to support compiling remotely using distcc 103 # don't use distcc to do the linking because distcc doesn't do linking 104 % : %.cfa $(CFACCBIN) 105 $(CFACOMPILETEST) -c -o $(abspath ${@}).o 106 $(CFACCLOCAL) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) $(abspath ${@}).o -o $(abspath ${@}) 100 % : %.cfa $(CFACC) 101 $(CFATEST_STDOUT) 107 102 108 # implicit rule for c++ test109 # convient for testing the testsuite itself but not actuall used110 103 % : %.cpp 111 104 $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 112 105 113 106 #------------------------------------------------------------------------------ 114 # TARGET S WITHCUSTOM FLAGS107 # TARGET WITH STANDARD RULE BUT CUSTOM FLAGS 115 108 #------------------------------------------------------------------------------ 116 # custom libs 117 gmp_FLAGSLD= -lgmp 109 # Expected failures 110 declarationSpecifier_FLAGS= -CFA -XCFA -p 111 gccExtensions_FLAGS= -CFA -XCFA -p 112 extension_FLAGS= -CFA -XCFA -p 113 attributes_FLAGS= -CFA -XCFA -p 114 functions_FLAGS= -CFA -XCFA -p 115 KRfunctions_FLAGS= -CFA -XCFA -p 116 gmp_FLAGS= -lgmp 118 117 119 118 #------------------------------------------------------------------------------ 120 # Generated code 121 GENERATED_CODE = declarationSpecifier gccExtensions extension attributes functions KRfunctions 122 $(GENERATED_CODE): % : %.cfa $(CFACCBIN) 123 $(CFACOMPILETEST) -CFA -XCFA -p -c -fsyntax-only -o $(abspath ${@}) 124 125 # Use for tests where the make command is expected to succeed but the expected.txt should be compared to stderr 126 EXPECT_STDERR = builtins/sync warnings/self-assignment 127 $(EXPECT_STDERR): % : %.cfa $(CFACCBIN) 128 $(CFACOMPILETEST) -c -fsyntax-only 2> $(abspath ${@}) 119 # Expected failures 120 completeTypeError_FLAGS= -DERR1 129 121 130 122 #------------------------------------------------------------------------------ 131 123 # CUSTOM TARGET 132 124 #------------------------------------------------------------------------------ 133 # expected failures 134 # use custom target since they require a custom define and custom dependencies 135 alloc-ERROR : alloc.cfa $(CFACCBIN) 136 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 125 typedefRedef-ERR1: typedefRedef.cfa $(CFACC) 126 $(CFATEST_STDOUT) -DERR1 137 127 138 typedefRedef-ERR1 : typedefRedef.cfa $(CFACCBIN)139 $(CFA COMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})128 alloc-ERROR: alloc.cfa $(CFACC) 129 $(CFATEST_STDOUT) -DERR1 140 130 141 nested-types-ERR1 : nested-types.cfa $(CFACCBIN)142 $(CFA COMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})131 nested-types-ERR1: nested-types.cfa $(CFACC) 132 $(CFATEST_STDOUT) -DERR1 143 133 144 nested-types-ERR2 : nested-types.cfa $(CFACCBIN)145 $(CFA COMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@})134 nested-types-ERR2: nested-types.cfa $(CFACC) 135 $(CFATEST_STDOUT) -DERR2 146 136 147 raii/ memberCtors-ERR1 : raii/memberCtors.cfa $(CFACCBIN)148 $(CFA COMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})137 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC) 138 $(CFATEST_STDOUT) -DERR1 149 139 150 raii/ ctor-autogen-ERR1 : raii/ctor-autogen.cfa $(CFACCBIN)151 $(CFA COMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})140 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC) 141 $(CFATEST_STDOUT) -DERR2 152 142 153 raii/ dtor-early-exit-ERR1 : raii/dtor-early-exit.cfa $(CFACCBIN)154 $(CFA COMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})143 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC) 144 $(CFATEST_STDOUT) -DERR1 155 145 156 raii/ dtor-early-exit-ERR2 : raii/dtor-early-exit.cfa $(CFACCBIN)157 $(CFA COMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@})146 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC) 147 $(CFATEST_STDOUT) -DERR1 158 148 159 #------------------------------------------------------------------------------ 160 # Other targets 149 #builtins 150 builtins/sync: builtins/sync.cfa $(CFACC) 151 $(CFATEST_STDERR) -fsyntax-only 152 153 # Warnings 154 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC) 155 $(CFATEST_STDERR) -fsyntax-only
Note:
See TracChangeset
for help on using the changeset viewer.