Changeset 455a7d5 for tests/Makefile.am
- Timestamp:
- Aug 9, 2018, 6:35:02 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:
- ea5b7d6
- Parents:
- fb975a50 (diff), 0c827019 (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 moved
-
tests/Makefile.am (moved) (moved from src/tests/Makefile.am ) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
rfb975a50 r455a7d5 17 17 18 18 debug=yes 19 installed=no 19 20 20 21 quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes 21 22 22 if BUILD_CONCURRENCY23 23 concurrent= 24 else25 concurrent='-Econcurrent'26 endif27 24 28 25 TEST_PY = python ${srcdir}/test.py … … 30 27 # applies to both programs 31 28 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 32 -XCFA \33 -t \34 -B${abs_top_builddir}/src/driver \35 29 -g \ 36 30 -Wall \ 37 31 -Wno-unused-function \ 38 32 -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 33 -DIN_DIR="${srcdir}/.in/" 46 34 47 if !BUILD_DEBUG 48 AM_CFLAGS += -nodebug 49 else 50 if !BUILD_RELEASE 51 AM_CFLAGS += -debug 52 else 53 AM_CFLAGS += ${DEBUG_FLAGS} 54 endif 55 endif 35 AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 56 36 57 CC = ${abs_top_builddir}/src/driver/cfa37 CC = @CFACC@ 58 38 59 .PHONY : list 39 .PHONY: list .validate 40 .INTERMEDIATE: .validate .validate.c 60 41 EXTRA_PROGRAMS = fstream_test avl_test # build but do not install 61 42 … … 64 45 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 65 46 47 #---------------------------------------------------------------------------------------------------------------- 66 48 all-local : 67 @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}49 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${quick_test} 68 50 69 51 all-tests : 70 @+${TEST_PY} --all --debug=${debug} ${concurrent} # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program52 @+${TEST_PY} --all --debug=${debug} --install=${installed} ${concurrent} # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 71 53 72 54 clean-local : … … 76 58 @+${TEST_PY} --list ${concurrent} 77 59 60 .validate: .validate.c 61 $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror 62 63 .validate.c: 64 @echo "int main() { return 0; }" > ${@} 65 78 66 concurrency : 79 @+${TEST_PY} --debug=${debug} -Iconcurrent67 @+${TEST_PY} --debug=${debug} --install=${installed} -Iconcurrent 80 68 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" 89 90 # %/stdlib: 91 # echo "Dummy rule, should never be called" 92 69 #---------------------------------------------------------------------------------------------------------------- 93 70 # implicit rule so not all test require a rule 94 71 % : %.c $(CC) 95 echo $(headers_deps)96 72 $(COMPILE) $(abspath ${<}) -o ${@} 97 73
Note:
See TracChangeset
for help on using the changeset viewer.