Changeset d65f92c for tests/Makefile.am
- Timestamp:
- Aug 15, 2019, 10:21:36 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5c4a473
- Parents:
- 1ee048fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r1ee048fd rd65f92c 34 34 35 35 # applies to both programs 36 # since automake doesn't have support for CFA we have to 36 37 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 37 38 -g \ … … 41 42 -DIN_DIR="${abs_srcdir}/.in/" 42 43 43 AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 44 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) 45 47 46 48 PRETTY_PATH=mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && … … 56 58 #---------------------------------------------------------------------------------------------------------------- 57 59 all-local : 58 @+${TEST_PY} --debug=${debug} 60 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${timeouts} ${quick_test} 59 61 60 62 all-tests : 61 @+${TEST_PY} --debug=${debug} 63 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 62 64 63 65 clean-local : … … 86 88 87 89 # Use for all tests, make sure the path are correct and all flags are added 88 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')) 89 91 90 # 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 91 93 CFATEST_STDOUT=$(CFACOMPILETEST) -o $(abspath ${@}) 92 94 … … 97 99 98 100 # implicit rule so not all test require a rule 99 % : %.cfa $(CFACC) 100 $(CFATEST_STDOUT) 101 % : %.cfa $(CFACCBIN) 102 $(CFACOMPILETEST) -o $(abspath ${@}).o 103 $(CFACC) $(abspath ${@}).o -o $(abspath ${@}) 104 101 105 102 106 % : %.cpp … … 122 126 # CUSTOM TARGET 123 127 #------------------------------------------------------------------------------ 124 typedefRedef-ERR1: typedefRedef.cfa $(CFACC )128 typedefRedef-ERR1: typedefRedef.cfa $(CFACCBIN) 125 129 $(CFATEST_STDOUT) -DERR1 126 130 127 alloc-ERROR: alloc.cfa $(CFACC )131 alloc-ERROR: alloc.cfa $(CFACCBIN) 128 132 $(CFATEST_STDOUT) -DERR1 129 133 130 nested-types-ERR1: nested-types.cfa $(CFACC )134 nested-types-ERR1: nested-types.cfa $(CFACCBIN) 131 135 $(CFATEST_STDOUT) -DERR1 132 136 133 nested-types-ERR2: nested-types.cfa $(CFACC )137 nested-types-ERR2: nested-types.cfa $(CFACCBIN) 134 138 $(CFATEST_STDOUT) -DERR2 135 139 136 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC )140 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACCBIN) 137 141 $(CFATEST_STDOUT) -DERR1 138 142 139 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC )143 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACCBIN) 140 144 $(CFATEST_STDOUT) -DERR2 141 145 142 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC )146 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACCBIN) 143 147 $(CFATEST_STDOUT) -DERR1 144 148 145 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC )149 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACCBIN) 146 150 $(CFATEST_STDOUT) -DERR1 147 151 148 152 #builtins 149 builtins/sync: builtins/sync.cfa $(CFACC )153 builtins/sync: builtins/sync.cfa $(CFACCBIN) 150 154 $(CFATEST_STDERR) -fsyntax-only 151 155 152 156 # Warnings 153 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC )157 warnings/self-assignment: warnings/self-assignment.cfa $(CFACCBIN) 154 158 $(CFATEST_STDERR) -fsyntax-only
Note: See TracChangeset
for help on using the changeset viewer.