Changeset e6cfb4e2
- Timestamp:
- Sep 28, 2020, 3:03:53 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 7ab28b69
- Parents:
- 8a71d8e
- Location:
- tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r8a71d8e re6cfb4e2 139 139 # tests that just validate syntax and compiler output should be compared to stderr 140 140 SYNTAX_ONLY_CODE = expression typedefRedef variableDeclarator switch numericConstants identFuncDeclarator forall limits nested-types stdincludes cast labelledExit array builtins/sync warnings/self-assignment 141 CFACOMPILE_SYNTAX = $(CFACOMPILETEST) -Wno-unused-variable -Wno-unused-label -c -fsyntax-only -o $(abspath ${@}) 141 142 $(SYNTAX_ONLY_CODE): % : %.cfa $(CFACCBIN) 142 $(CFACOMPILETEST) -Wno-unused-variable -Wno-unused-label -c -fsyntax-only 2> $(abspath ${@}) 143 $(CFACOMPILE_SYNTAX) 144 $(if $(test), cp $(test) $(abspath ${@}), ) 143 145 144 146 # expected failures 145 # use custom target since they require a custom define and custom dependencies147 # use custom target since they require a custom define *and* have a name that doesn't match the file 146 148 alloc-ERROR : alloc.cfa $(CFACCBIN) 147 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 149 $(CFACOMPILE_SYNTAX) -DERR1 150 -cp $(test) $(abspath ${@}) 148 151 149 152 typedefRedef-ERR1 : typedefRedef.cfa $(CFACCBIN) 150 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 153 $(CFACOMPILE_SYNTAX) -DERR1 154 -cp $(test) $(abspath ${@}) 151 155 152 156 nested-types-ERR1 : nested-types.cfa $(CFACCBIN) 153 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 157 $(CFACOMPILE_SYNTAX) -DERR1 158 -cp $(test) $(abspath ${@}) 154 159 155 160 nested-types-ERR2 : nested-types.cfa $(CFACCBIN) 156 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 161 $(CFACOMPILE_SYNTAX) -DERR2 162 -cp $(test) $(abspath ${@}) 157 163 158 164 raii/memberCtors-ERR1 : raii/memberCtors.cfa $(CFACCBIN) 159 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 165 $(CFACOMPILE_SYNTAX) -DERR1 166 -cp $(test) $(abspath ${@}) 160 167 161 168 raii/ctor-autogen-ERR1 : raii/ctor-autogen.cfa $(CFACCBIN) 162 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 169 $(CFACOMPILE_SYNTAX) -DERR1 170 -cp $(test) $(abspath ${@}) 163 171 164 172 raii/dtor-early-exit-ERR1 : raii/dtor-early-exit.cfa $(CFACCBIN) 165 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 173 $(CFACOMPILE_SYNTAX) -DERR1 174 -cp $(test) $(abspath ${@}) 166 175 167 176 raii/dtor-early-exit-ERR2 : raii/dtor-early-exit.cfa $(CFACCBIN) 168 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 177 $(CFACOMPILE_SYNTAX) -DERR2 178 -cp $(test) $(abspath ${@}) 169 179 170 180 # Exception Tests -
tests/test.py
r8a71d8e re6cfb4e2 173 173 test.prepare() 174 174 175 # ---------- 176 # MAKE 177 # ---------- 175 178 # build, skipping to next test on error 176 179 with Timed() as comp_dur: 177 180 make_ret, _ = make( test.target(), output_file=subprocess.DEVNULL, error=out_file, error_file = err_file ) 178 181 182 # ---------- 183 # RUN 184 # ---------- 185 # run everything in a temp directory to make sure core file are handled properly 179 186 run_dur = None 180 # run everything in a temp directory to make sure core file are handled properly181 187 with tempdir(): 182 188 # if the make command succeeds continue otherwise skip to diff
Note: See TracChangeset
for help on using the changeset viewer.