Changes in tests/Makefile.am [107b01a:f7d3215]
- File:
-
- 1 edited
-
tests/Makefile.am (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r107b01a rf7d3215 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Tue Nov 20 11:18:51201814 ## Update Count : 6813 ## Last Modified On : Wed Jun 6 16:42:20 2018 14 ## Update Count : 49 15 15 ############################################################################### 16 16 17 17 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 18 ACLOCAL_AMFLAGS = -I automake19 20 include $(top_srcdir)/src/cfa.make21 18 22 19 debug=yes … … 26 23 27 24 concurrent= 28 timeouts=29 25 30 26 TEST_PY = python ${builddir}/test.py … … 39 35 40 36 AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 37 41 38 CC = @CFACC@ 42 39 … … 44 41 45 42 .PHONY: list .validate 46 .INTERMEDIATE: .validate .validate.c fa47 EXTRA_PROGRAMS = avl_test .dummy_hack# build but do not install43 .INTERMEDIATE: .validate .validate.c 44 EXTRA_PROGRAMS = fstream_test avl_test # build but do not install 48 45 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 program 51 _dummy_hack_SOURCES = .dummy_hack.c46 fstream_test_SOURCES = fstream_test.c 47 48 avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c 52 49 53 50 #---------------------------------------------------------------------------------------------------------------- 54 51 all-local : 55 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${ timeouts} ${quick_test}52 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${quick_test} 56 53 57 54 all-tests : 58 @+${TEST_PY} -- debug=${debug} --install=${installed} ${concurrent} ${timeouts} --all# '@' => do not echo command (SILENT), '+' => allows recursive make from within python program55 @+${TEST_PY} --all --debug=${debug} --install=${installed} ${concurrent} # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 59 56 60 57 clean-local : … … 64 61 @+${TEST_PY} --list ${concurrent} 65 62 66 .validate: .validate.c fa67 $(C FACOMPILE) .validate.cfa-fsyntax-only -Wall -Wextra -Werror63 .validate: .validate.c 64 $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror 68 65 69 .validate.cfa: 70 @echo "int main() { return 0; }" > ${@} 71 72 # automake doesn't know we still need C rules so pretend like we have a C program 73 .dummy_hack.c: 66 .validate.c: 74 67 @echo "int main() { return 0; }" > ${@} 75 68 … … 78 71 79 72 #---------------------------------------------------------------------------------------------------------------- 73 # implicit rule so not all test require a rule 74 % : %.c $(CC) 75 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 80 76 81 # implicit rule so not all test require a rule 82 % : %.cfa $(CFACC) 83 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 77 declarationSpecifier: declarationSpecifier.c $(CC) 78 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 84 79 85 declarationSpecifier: declarationSpecifier.cfa $(CFACC)86 $(PRETTY_PATH) $(C FACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})80 gccExtensions : gccExtensions.c $(CC) 81 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 87 82 88 gccExtensions : gccExtensions.cfa $(CFACC)89 $(PRETTY_PATH) $(C FACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})83 extension : extension.c $(CC) 84 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 90 85 91 extension : extension.cfa $(CFACC)92 $(PRETTY_PATH) $(C FACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})86 attributes : attributes.c $(CC) 87 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 93 88 94 attributes : attributes.cfa $(CFACC)95 $(PRETTY_PATH) $(C FACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})89 functions: functions.c $(CC) 90 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 96 91 97 functions: functions.cfa $(CFACC)98 $(PRETTY_PATH) $(C FACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})92 KRfunctions : KRfunctions.c $(CC) 93 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 99 94 100 KRfunctions : KRfunctions.cfa $(CFACC)101 $(PRETTY_PATH) $(C FACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})95 sched-ext-parse : sched-ext-parse.c $(CC) 96 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 102 97 103 sched-ext-parse : sched-ext-parse.c $(CFACC) 104 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 105 106 gmp : gmp.cfa $(CFACC) 107 $(PRETTY_PATH) $(CFACOMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 98 gmp : gmp.c $(CC) 99 $(PRETTY_PATH) $(COMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 108 100 109 101 #builtins 110 builtins/sync: builtins/sync.c fa $(CFACC)111 $(PRETTY_PATH) $(C FACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only102 builtins/sync: builtins/sync.c $(CC) 103 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only 112 104 113 105 #------------------------------------------------------------------------------ 106 #To make errors path independent we need to cd into the correct directories 107 completeTypeError : completeTypeError.c $(CC) 108 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 114 109 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 ${@}) 110 typedefRedef-ERR1: typedefRedef.c $(CC) 111 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 118 112 119 typedefRedef-ERR1: typedefRedef.cfa $(CFACC)120 $(PRETTY_PATH) $(C FACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})113 alloc-ERROR: alloc.c $(CC) 114 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 121 115 122 alloc-ERROR: alloc.cfa $(CFACC)123 $(PRETTY_PATH) $(C FACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})116 fallthrough-ERROR: fallthrough.c $(CC) 117 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 124 118 125 fallthrough-ERROR: fallthrough.cfa $(CFACC)126 $(PRETTY_PATH) $(C FACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})119 nested-types-ERR1: nested-types.c $(CC) 120 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 127 121 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 ${@}) 122 nested-types-ERR2: nested-types.c $(CC) 123 $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 133 124 134 125 # Constructor/destructor tests 135 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c fa $(CFACC)136 $(PRETTY_PATH) $(C FACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})126 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC) 127 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 137 128 138 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c fa $(CFACC)139 $(PRETTY_PATH) $(C FACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})129 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC) 130 $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 140 131 141 raii/memberCtors-ERR1: raii/memberCtors.c fa $(CFACC)142 $(PRETTY_PATH) $(C FACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})132 raii/memberCtors-ERR1: raii/memberCtors.c $(CC) 133 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 143 134 144 raii/ctor-autogen-ERR1: raii/ctor-autogen.c fa $(CFACC)145 $(PRETTY_PATH) $(C FACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})135 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC) 136 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 146 137 147 138 # Warnings 148 warnings/self-assignment: warnings/self-assignment.c fa $(CFACC)149 $(PRETTY_PATH) $(C FACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only139 warnings/self-assignment: warnings/self-assignment.c $(CC) 140 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
Note:
See TracChangeset
for help on using the changeset viewer.