Changeset d65f92c for tests/Makefile.in
- Timestamp:
- Aug 15, 2019, 10:21:36 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5c4a473
- Parents:
- 1ee048fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.in
r1ee048fd rd65f92c 212 212 AWK = @AWK@ 213 213 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 214 CC = @CFACC@214 CC = $(if $(DISTCC_CFA_PATH),distcc $(DISTCC_CFA_PATH) -dist-tree -in-tree,@CFACC@ ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}) 215 215 CCAS = @CCAS@ 216 216 CCASDEPMODE = @CCASDEPMODE@ 217 217 CCASFLAGS = @CCASFLAGS@ 218 218 CCDEPMODE = @CCDEPMODE@ 219 CFACC = @CFACC@219 CFACC = $(CC) 220 220 CFACPP = @CFACPP@ 221 221 CFA_BACKEND_CC = @CFA_BACKEND_CC@ … … 248 248 FGREP = @FGREP@ 249 249 GREP = @GREP@ 250 HAS_DISTCC = @HAS_DISTCC@ 250 251 HOST_FLAGS = @HOST_FLAGS@ 251 252 INSTALL = @INSTALL@ … … 385 386 386 387 # applies to both programs 387 AM_CFLAGS = $(if $(test), 2> $(test), ) -g -Wall -Wno-unused-function \ 388 -quiet @CFA_FLAGS@ -DIN_DIR="${abs_srcdir}/.in/" \ 389 ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 388 # since automake doesn't have support for CFA we have to 389 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 390 -g \ 391 -Wall \ 392 -Wno-unused-function \ 393 -quiet @CFA_FLAGS@ \ 394 -DIN_DIR="${abs_srcdir}/.in/" 395 396 CFACCBIN = @CFACC@ 390 397 PRETTY_PATH = mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && 391 398 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 … … 396 403 397 404 # Use for all tests, make sure the path are correct and all flags are added 398 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g'))399 400 # Use for tests that either generate an executable, print direct ylto stdout or the make command is expected to fail405 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) -c $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 406 407 # Use for tests that either generate an executable, print directly to stdout or the make command is expected to fail 401 408 CFATEST_STDOUT = $(CFACOMPILETEST) -o $(abspath ${@}) 402 409 … … 770 777 #---------------------------------------------------------------------------------------------------------------- 771 778 all-local : 772 @+${TEST_PY} --debug=${debug} 779 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${timeouts} ${quick_test} 773 780 774 781 all-tests : 775 @+${TEST_PY} --debug=${debug} 782 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 776 783 777 784 clean-local : … … 800 807 801 808 # implicit rule so not all test require a rule 802 % : %.cfa $(CFACC) 803 $(CFATEST_STDOUT) 809 % : %.cfa $(CFACCBIN) 810 $(CFACOMPILETEST) -o $(abspath ${@}).o 811 $(CFACC) $(abspath ${@}).o -o $(abspath ${@}) 804 812 805 813 % : %.cpp … … 809 817 # CUSTOM TARGET 810 818 #------------------------------------------------------------------------------ 811 typedefRedef-ERR1: typedefRedef.cfa $(CFACC )819 typedefRedef-ERR1: typedefRedef.cfa $(CFACCBIN) 812 820 $(CFATEST_STDOUT) -DERR1 813 821 814 alloc-ERROR: alloc.cfa $(CFACC )822 alloc-ERROR: alloc.cfa $(CFACCBIN) 815 823 $(CFATEST_STDOUT) -DERR1 816 824 817 nested-types-ERR1: nested-types.cfa $(CFACC )825 nested-types-ERR1: nested-types.cfa $(CFACCBIN) 818 826 $(CFATEST_STDOUT) -DERR1 819 827 820 nested-types-ERR2: nested-types.cfa $(CFACC )828 nested-types-ERR2: nested-types.cfa $(CFACCBIN) 821 829 $(CFATEST_STDOUT) -DERR2 822 830 823 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC )831 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACCBIN) 824 832 $(CFATEST_STDOUT) -DERR1 825 833 826 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC )834 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACCBIN) 827 835 $(CFATEST_STDOUT) -DERR2 828 836 829 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC )837 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACCBIN) 830 838 $(CFATEST_STDOUT) -DERR1 831 839 832 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC )840 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACCBIN) 833 841 $(CFATEST_STDOUT) -DERR1 834 842 835 843 #builtins 836 builtins/sync: builtins/sync.cfa $(CFACC )844 builtins/sync: builtins/sync.cfa $(CFACCBIN) 837 845 $(CFATEST_STDERR) -fsyntax-only 838 846 839 847 # Warnings 840 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC )848 warnings/self-assignment: warnings/self-assignment.cfa $(CFACCBIN) 841 849 $(CFATEST_STDERR) -fsyntax-only 842 850
Note: See TracChangeset
for help on using the changeset viewer.