Changes in tests/Makefile.am [40c81e5:fe94e708]
- File:
-
- 1 edited
-
tests/Makefile.am (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r40c81e5 rfe94e708 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Sun Sep 27 19:01:41 202014 ## Update Count : 8413 ## Last Modified On : Tue Nov 20 11:18:51 2018 14 ## Update Count : 68 15 15 ############################################################################### 16 16 … … 40 40 -fdebug-prefix-map=$(abspath ${abs_srcdir})= \ 41 41 -fdebug-prefix-map=/tmp= \ 42 -fno-diagnostics-show-caret \43 42 -g \ 44 43 -Wall \ … … 53 52 54 53 # adjust CC to current flags 55 CC = LC_ALL=C$(if $(DISTCC_CFA_PATH),distcc $(DISTCC_CFA_PATH) ${ARCH_FLAGS},$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS})54 CC = $(if $(DISTCC_CFA_PATH),distcc $(DISTCC_CFA_PATH) ${ARCH_FLAGS},$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS}) 56 55 CFACC = $(CC) 57 56 … … 134 133 $(CFACOMPILETEST) -CFA -XCFA -p -c -fsyntax-only -o $(abspath ${@}) 135 134 135 # Use for tests where the make command is expected to succeed but the expected.txt should be compared to stderr 136 EXPECT_STDERR = builtins/sync warnings/self-assignment 137 $(EXPECT_STDERR): % : %.cfa $(CFACCBIN) 138 $(CFACOMPILETEST) -c -fsyntax-only 2> $(abspath ${@}) 139 136 140 #------------------------------------------------------------------------------ 137 141 # CUSTOM TARGET 138 142 #------------------------------------------------------------------------------ 139 # tests that just validate syntax and compiler output should be compared to stderr 140 CFACOMPILE_SYNTAX = $(CFACOMPILETEST) -Wno-unused-variable -Wno-unused-label -c -fsyntax-only -o $(abspath ${@}) 141 142 SYNTAX_ONLY_CODE = expression typedefRedef variableDeclarator switch numericConstants identFuncDeclarator forall \ 143 limits nested-types stdincludes cast labelledExit array builtins/sync warnings/self-assignment 144 $(SYNTAX_ONLY_CODE): % : %.cfa $(CFACCBIN) 145 $(CFACOMPILE_SYNTAX) 146 $(if $(test), cp $(test) $(abspath ${@}), ) 143 # tests that just validate syntax 144 expression : expression.cfa $(CFACCBIN) 145 $(CFACOMPILETEST) -c -fsyntax-only 2> $(abspath ${@}) 147 146 148 147 # expected failures 149 # use custom target since they require a custom define *and* have a name that doesn't match the file148 # use custom target since they require a custom define and custom dependencies 150 149 alloc-ERROR : alloc.cfa $(CFACCBIN) 151 $(CFACOMPILE_SYNTAX) -DERR1 152 -cp $(test) $(abspath ${@}) 150 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 153 151 154 152 typedefRedef-ERR1 : typedefRedef.cfa $(CFACCBIN) 155 $(CFACOMPILE_SYNTAX) -DERR1 156 -cp $(test) $(abspath ${@}) 153 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 157 154 158 155 nested-types-ERR1 : nested-types.cfa $(CFACCBIN) 159 $(CFACOMPILE_SYNTAX) -DERR1 160 -cp $(test) $(abspath ${@}) 156 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 161 157 162 158 nested-types-ERR2 : nested-types.cfa $(CFACCBIN) 163 $(CFACOMPILE_SYNTAX) -DERR2 164 -cp $(test) $(abspath ${@}) 159 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 165 160 166 161 raii/memberCtors-ERR1 : raii/memberCtors.cfa $(CFACCBIN) 167 $(CFACOMPILE_SYNTAX) -DERR1 168 -cp $(test) $(abspath ${@}) 162 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 169 163 170 164 raii/ctor-autogen-ERR1 : raii/ctor-autogen.cfa $(CFACCBIN) 171 $(CFACOMPILE_SYNTAX) -DERR1 172 -cp $(test) $(abspath ${@}) 165 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 173 166 174 167 raii/dtor-early-exit-ERR1 : raii/dtor-early-exit.cfa $(CFACCBIN) 175 $(CFACOMPILE_SYNTAX) -DERR1 176 -cp $(test) $(abspath ${@}) 168 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 177 169 178 170 raii/dtor-early-exit-ERR2 : raii/dtor-early-exit.cfa $(CFACCBIN) 179 $(CFACOMPILE_SYNTAX) -DERR2 180 -cp $(test) $(abspath ${@}) 171 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 181 172 182 173 # Exception Tests
Note:
See TracChangeset
for help on using the changeset viewer.