Changes in tests/Makefile.am [dcfedca:d65f92c]
- File:
-
- 1 edited
-
tests/Makefile.am (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
rdcfedca rd65f92c 22 22 debug=yes 23 23 installed=no 24 archiveerrors=25 24 26 25 INSTALL_FLAGS=-in-tree … … 35 34 36 35 # applies to both programs 36 # since automake doesn't have support for CFA we have to 37 37 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 38 38 -g \ … … 42 42 -DIN_DIR="${abs_srcdir}/.in/" 43 43 44 AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 45 CC = @CFACC@ 44 CC = $(if $(DISTCC_CFA_PATH),distcc $(DISTCC_CFA_PATH) -dist-tree -in-tree,@CFACC@ ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}) 45 CFACCBIN = @CFACC@ 46 CFACC = $(CC) 46 47 47 48 PRETTY_PATH=mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && … … 57 58 #---------------------------------------------------------------------------------------------------------------- 58 59 all-local : 59 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test}60 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${timeouts} ${quick_test} 60 61 61 62 all-tests : 62 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program63 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 63 64 64 65 clean-local : … … 87 88 88 89 # Use for all tests, make sure the path are correct and all flags are added 89 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g'))90 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) -c $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 90 91 91 # Use for tests that either generate an executable, print direct ylto stdout or the make command is expected to fail92 # Use for tests that either generate an executable, print directly to stdout or the make command is expected to fail 92 93 CFATEST_STDOUT=$(CFACOMPILETEST) -o $(abspath ${@}) 93 94 … … 98 99 99 100 # implicit rule so not all test require a rule 100 % : %.cfa $(CFACC) 101 $(CFATEST_STDOUT) 101 % : %.cfa $(CFACCBIN) 102 $(CFACOMPILETEST) -o $(abspath ${@}).o 103 $(CFACC) $(abspath ${@}).o -o $(abspath ${@}) 104 102 105 103 106 % : %.cpp … … 123 126 # CUSTOM TARGET 124 127 #------------------------------------------------------------------------------ 125 typedefRedef-ERR1: typedefRedef.cfa $(CFACC )128 typedefRedef-ERR1: typedefRedef.cfa $(CFACCBIN) 126 129 $(CFATEST_STDOUT) -DERR1 127 130 128 alloc-ERROR: alloc.cfa $(CFACC )131 alloc-ERROR: alloc.cfa $(CFACCBIN) 129 132 $(CFATEST_STDOUT) -DERR1 130 133 131 nested-types-ERR1: nested-types.cfa $(CFACC )134 nested-types-ERR1: nested-types.cfa $(CFACCBIN) 132 135 $(CFATEST_STDOUT) -DERR1 133 136 134 nested-types-ERR2: nested-types.cfa $(CFACC )137 nested-types-ERR2: nested-types.cfa $(CFACCBIN) 135 138 $(CFATEST_STDOUT) -DERR2 136 139 137 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC )140 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACCBIN) 138 141 $(CFATEST_STDOUT) -DERR1 139 142 140 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC )143 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACCBIN) 141 144 $(CFATEST_STDOUT) -DERR2 142 145 143 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC )146 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACCBIN) 144 147 $(CFATEST_STDOUT) -DERR1 145 148 146 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC )149 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACCBIN) 147 150 $(CFATEST_STDOUT) -DERR1 148 151 149 152 #builtins 150 builtins/sync: builtins/sync.cfa $(CFACC )153 builtins/sync: builtins/sync.cfa $(CFACCBIN) 151 154 $(CFATEST_STDERR) -fsyntax-only 152 155 153 156 # Warnings 154 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC )157 warnings/self-assignment: warnings/self-assignment.cfa $(CFACCBIN) 155 158 $(CFATEST_STDERR) -fsyntax-only
Note:
See TracChangeset
for help on using the changeset viewer.