Changeset de23648 for tests/Makefile.am
- Timestamp:
- Apr 11, 2019, 1:57:53 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 25773cd, 5a89a2b
- Parents:
- 7889f14 (diff), 07ac6d0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r7889f14 rde23648 41 41 CC = @CFACC@ 42 42 43 PRETTY_PATH= cd ${srcdir} &&43 PRETTY_PATH=mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && 44 44 45 45 .PHONY: list .validate … … 82 82 #---------------------------------------------------------------------------------------------------------------- 83 83 84 # Use for all tests, make sure the path are correct and all flags are added 85 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 86 87 # Use for tests that either generate an executable, print directyl to stdout or the make command is expected to fail 88 CFATEST_STDOUT=$(CFACOMPILETEST) -o $(abspath ${@}) 89 90 # Use for tests where the make command is expecte to succeed but the expected.txt should be compared to stderr 91 CFATEST_STDERR=$(CFACOMPILETEST) 2> $(abspath ${@}) 92 93 #---------------------------------------------------------------------------------------------------------------- 94 84 95 # implicit rule so not all test require a rule 85 96 % : %.cfa $(CFACC) 86 $( PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})97 $(CFATEST_STDOUT) 87 98 88 99 % : %.cpp 89 100 $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 90 101 91 declarationSpecifier: declarationSpecifier.cfa $(CFACC) 92 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 102 #------------------------------------------------------------------------------ 103 # TARGET WITH STANDARD RULE BUT CUSTOM FLAGS 104 #------------------------------------------------------------------------------ 105 # Expected failures 106 declarationSpecifier_FLAGS= -CFA -XCFA -p 107 gccExtensions_FLAGS= -CFA -XCFA -p 108 extension_FLAGS= -CFA -XCFA -p 109 attributes_FLAGS= -CFA -XCFA -p 110 functions_FLAGS= -CFA -XCFA -p 111 KRfunctions_FLAGS= -CFA -XCFA -p 112 gmp_FLAGS= -lgmp 93 113 94 gccExtensions : gccExtensions.cfa $(CFACC) 95 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 114 #------------------------------------------------------------------------------ 115 # Expected failures 116 completeTypeError_FLAGS= -DERR1 96 117 97 extension : extension.cfa $(CFACC) 98 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 118 #------------------------------------------------------------------------------ 119 # CUSTOM TARGET 120 #------------------------------------------------------------------------------ 121 typedefRedef-ERR1: typedefRedef.cfa $(CFACC) 122 $(CFATEST_STDOUT) -DERR1 99 123 100 a ttributes : attributes.cfa $(CFACC)101 $( PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})124 alloc-ERROR: alloc.cfa $(CFACC) 125 $(CFATEST_STDOUT) -DERR1 102 126 103 functions: functions.cfa $(CFACC)104 $( PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})127 nested-types-ERR1: nested-types.cfa $(CFACC) 128 $(CFATEST_STDOUT) -DERR1 105 129 106 KRfunctions : KRfunctions.cfa $(CFACC)107 $( PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})130 nested-types-ERR2: nested-types.cfa $(CFACC) 131 $(CFATEST_STDOUT) -DERR2 108 132 109 sched-ext-parse : sched-ext-parse.c$(CFACC)110 $( PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})133 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC) 134 $(CFATEST_STDOUT) -DERR1 111 135 112 gmp : gmp.cfa $(CFACC) 113 $(PRETTY_PATH) $(CFACOMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 136 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC) 137 $(CFATEST_STDOUT) -DERR2 138 139 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC) 140 $(CFATEST_STDOUT) -DERR1 141 142 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC) 143 $(CFATEST_STDOUT) -DERR1 114 144 115 145 #builtins 116 146 builtins/sync: builtins/sync.cfa $(CFACC) 117 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only 118 119 #------------------------------------------------------------------------------ 120 121 #To make errors path independent we need to cd into the correct directories 122 completeTypeError : completeTypeError.cfa $(CFACC) 123 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 124 125 typedefRedef-ERR1: typedefRedef.cfa $(CFACC) 126 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 127 128 alloc-ERROR: alloc.cfa $(CFACC) 129 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 130 131 fallthrough-ERROR: fallthrough.cfa $(CFACC) 132 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 133 134 nested-types-ERR1: nested-types.cfa $(CFACC) 135 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 136 137 nested-types-ERR2: nested-types.cfa $(CFACC) 138 $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 139 140 # Constructor/destructor tests 141 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC) 142 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 143 144 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC) 145 $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 146 147 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC) 148 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 149 150 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC) 151 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 147 $(CFATEST_STDERR) -fsyntax-only 152 148 153 149 # Warnings 154 150 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC) 155 $( PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only151 $(CFATEST_STDERR) -fsyntax-only
Note: See TracChangeset
for help on using the changeset viewer.