Changeset 3bbd012 for src/tests/Makefile.am
- Timestamp:
- Jul 31, 2018, 2:43:04 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 642bc83
- Parents:
- d1e0979 (diff), 04e367c (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
-
src/tests/Makefile.am (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Makefile.am
rd1e0979 r3bbd012 15 15 ############################################################################### 16 16 17 17 18 debug=yes 18 19 … … 25 26 endif 26 27 28 TEST_PY = python ${srcdir}/test.py 29 27 30 # applies to both programs 28 DEBUG_FLAGS = 31 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 32 -XCFA \ 33 -t \ 34 -B${abs_top_builddir}/src/driver \ 35 -g \ 36 -Wall \ 37 -Wno-unused-function \ 38 -quiet @CFA_FLAGS@ \ 39 -I. \ 40 -DIN_DIR="${srcdir}/.in/" \ 41 -L${abs_top_builddir}/src/libcfa \ 42 -I${abs_top_srcdir}/src/libcfa \ 43 -I${abs_top_srcdir}/src/libcfa/containers \ 44 -I${abs_top_srcdir}/src/libcfa/concurrency \ 45 -I${abs_top_srcdir}/src/libcfa/stdhdr 29 46 30 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -I.31 47 if !BUILD_DEBUG 32 BUILD_FLAGS += -nodebug48 AM_CFLAGS += -nodebug 33 49 else 34 50 if !BUILD_RELEASE 35 BUILD_FLAGS += -debug51 AM_CFLAGS += -debug 36 52 else 37 BUILD_FLAGS += ${DEBUG_FLAGS}53 AM_CFLAGS += ${DEBUG_FLAGS} 38 54 endif 39 55 endif 40 56 41 TEST_FLAGS = $(if $(test), 2> $(test), ) 42 AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS} 43 CC = @CFA_BINDIR@/@CFA_NAME@ 57 CC = ${abs_top_builddir}/src/driver/cfa 44 58 45 59 .PHONY : list … … 47 61 48 62 fstream_test_SOURCES = fstream_test.c 49 fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}50 63 51 64 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 avl_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}53 65 54 66 all-local : 55 @+ python test.py--debug=${debug} ${concurrent} ${quick_test}67 @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test} 56 68 57 69 all-tests : 58 @+ python test.py--all --debug=${debug} ${concurrent} # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program70 @+${TEST_PY} --all --debug=${debug} ${concurrent} # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 59 71 60 72 clean-local : … … 62 74 63 75 list : 64 @+ python test.py--list ${concurrent}76 @+${TEST_PY} --list ${concurrent} 65 77 66 78 concurrency : 67 @+ python test.py--debug=${debug} -Iconcurrent79 @+${TEST_PY} --debug=${debug} -Iconcurrent 68 80 69 .dummy : .dummy.c @CFA_BINDIR@/@CFA_NAME@ 70 ${CC} ${BUILD_FLAGS} -XCFA -n ${<} -o ${@} #don't use CFLAGS, this rule is not a real test 81 # SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated 82 # however, here it is more complicated because it must match the dependencies based on how 83 # they are generated by gcc 84 headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*") 85 headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers)) 86 headers_deps = $(addprefix %/, $(headers_real)) 87 $(headers_deps) : 88 echo "Dummy rule, should never be called" 71 89 90 # %/stdlib: 91 # echo "Dummy rule, should never be called" 72 92 73 % : %.c @CFA_BINDIR@/@CFA_NAME@ 74 ${CC} ${AM_CFLAGS} ${CFLAGS} ${<} -o ${@} 93 # implicit rule so not all test require a rule 94 % : %.c $(CC) 95 echo $(headers_deps) 96 $(COMPILE) $(abspath ${<}) -o ${@} 75 97 76 declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@77 $ {CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<}-o ${@}98 declarationSpecifier: declarationSpecifier.c $(CC) 99 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 78 100 79 gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@80 $ {CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<}-o ${@}101 gccExtensions : gccExtensions.c $(CC) 102 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 81 103 82 extension : extension.c @CFA_BINDIR@/@CFA_NAME@83 $ {CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<}-o ${@}104 extension : extension.c $(CC) 105 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 84 106 85 attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@86 $ {CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<}-o ${@}107 attributes : attributes.c $(CC) 108 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 87 109 88 functions: functions.c @CFA_BINDIR@/@CFA_NAME@89 $ {CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<}-o ${@}110 functions: functions.c $(CC) 111 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 90 112 91 KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@92 $ {CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<}-o ${@}113 KRfunctions : KRfunctions.c $(CC) 114 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 93 115 94 sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@95 $ {CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<}-o ${@}116 sched-ext-parse : sched-ext-parse.c $(CC) 117 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 96 118 97 gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@98 $ {CC} ${AM_CFLAGS} ${CFLAGS} -lgmp ${<}-o ${@}119 gmp : gmp.c $(CC) 120 $(COMPILE) -lgmp $(abspath ${<}) -o ${@} 99 121 100 completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@101 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<}-o ${@}122 completeTypeError : completeTypeError.c $(CC) 123 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 102 124 103 typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@104 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<}-o ${@}125 typedefRedef-ERR1: typedefRedef.c $(CC) 126 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 105 127 106 alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@107 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<}-o ${@}128 alloc-ERROR: alloc.c $(CC) 129 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 108 130 109 fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@110 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<}-o ${@}131 fallthrough-ERROR: fallthrough.c $(CC) 132 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 111 133 112 nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@113 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<}-o ${@}134 nested-types-ERR1: nested-types.c $(CC) 135 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 114 136 115 nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@116 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR2 ${<}-o ${@}137 nested-types-ERR2: nested-types.c $(CC) 138 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} 117 139 118 140 # Constructor/destructor tests 119 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@120 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<}-o ${@}141 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC) 142 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 121 143 122 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@123 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR2 ${<}-o ${@}144 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC) 145 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} 124 146 125 raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@126 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<}-o ${@}147 raii/memberCtors-ERR1: raii/memberCtors.c $(CC) 148 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 127 149 128 raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@129 $ {CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<}-o ${@}150 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC) 151 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 130 152 131 153 # Warnings 132 warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@133 $ {CC} ${AM_CFLAGS} ${CFLAGS} ${<}2> ${@} -fsyntax-only154 warnings/self-assignment: warnings/self-assignment.c $(CC) 155 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only 134 156 135 157 #builtins 136 builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@137 $ {CC} ${AM_CFLAGS} ${CFLAGS} ${<}2> ${@} -fsyntax-only158 builtins/sync: builtins/sync.c $(CC) 159 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note:
See TracChangeset
for help on using the changeset viewer.