Changes in tests/Makefile.am [107b01a:e16797c]
- File:
-
- 1 edited
-
tests/Makefile.am (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r107b01a re16797c 28 28 timeouts= 29 29 30 TEST_PY = python ${builddir}/test.py30 TEST_PY = python3 ${builddir}/test.py 31 31 32 32 # applies to both programs … … 36 36 -Wno-unused-function \ 37 37 -quiet @CFA_FLAGS@ \ 38 -DIN_DIR="${ srcdir}/.in/"38 -DIN_DIR="${abs_srcdir}/.in/" 39 39 40 40 AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 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 … … 48 48 49 49 avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa 50 # automake doesn't know we still need C rules so pretend like we have a C program51 _dummy_hack_SOURCES = .dummy_hack.c 50 # automake doesn't know we still need C/CPP rules so pretend like we have a C program 51 _dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp 52 52 53 53 #---------------------------------------------------------------------------------------------------------------- … … 74 74 @echo "int main() { return 0; }" > ${@} 75 75 76 .dummy_hackxx.cpp: 77 @echo "int bar() { return 0; }" > ${@} 78 76 79 concurrency : 77 80 @+${TEST_PY} --debug=${debug} --install=${installed} -Iconcurrent … … 79 82 #---------------------------------------------------------------------------------------------------------------- 80 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 81 95 # implicit rule so not all test require a rule 82 96 % : %.cfa $(CFACC) 83 $( PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})97 $(CFATEST_STDOUT) 84 98 85 declarationSpecifier: declarationSpecifier.cfa $(CFACC) 86 $(PRETTY_PATH) $(C FACOMPILE) -CFA -XCFA -p$(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})99 % : %.cpp 100 $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 87 101 88 gccExtensions : gccExtensions.cfa $(CFACC) 89 $(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 90 113 91 extension : extension.cfa $(CFACC) 92 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 114 #------------------------------------------------------------------------------ 115 # Expected failures 116 completeTypeError_FLAGS= -DERR1 93 117 94 attributes : attributes.cfa $(CFACC) 95 $(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 96 123 97 functions: functions.cfa $(CFACC)98 $( PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})124 alloc-ERROR: alloc.cfa $(CFACC) 125 $(CFATEST_STDOUT) -DERR1 99 126 100 KRfunctions : KRfunctions.cfa $(CFACC)101 $( 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 102 129 103 sched-ext-parse : sched-ext-parse.c$(CFACC)104 $( 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 105 132 106 gmp : gmp.cfa $(CFACC) 107 $(PRETTY_PATH) $(CFACOMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 133 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC) 134 $(CFATEST_STDOUT) -DERR1 135 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 108 144 109 145 #builtins 110 146 builtins/sync: builtins/sync.cfa $(CFACC) 111 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only 112 113 #------------------------------------------------------------------------------ 114 115 #To make errors path independent we need to cd into the correct directories 116 completeTypeError : completeTypeError.cfa $(CFACC) 117 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 118 119 typedefRedef-ERR1: typedefRedef.cfa $(CFACC) 120 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 121 122 alloc-ERROR: alloc.cfa $(CFACC) 123 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 124 125 fallthrough-ERROR: fallthrough.cfa $(CFACC) 126 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 127 128 nested-types-ERR1: nested-types.cfa $(CFACC) 129 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 130 131 nested-types-ERR2: nested-types.cfa $(CFACC) 132 $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 133 134 # Constructor/destructor tests 135 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC) 136 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 137 138 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC) 139 $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 140 141 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC) 142 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 143 144 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC) 145 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 147 $(CFATEST_STDERR) -fsyntax-only 146 148 147 149 # Warnings 148 150 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC) 149 $( 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.