Changeset 4a60488 for tests/Makefile.in
- Timestamp:
- Sep 27, 2019, 3:35:46 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 90ce35aa
- Parents:
- 8e1467d (diff), 849720f (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
-
tests/Makefile.in (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.in
r8e1467d r4a60488 212 212 AWK = @AWK@ 213 213 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 214 CC = @CFACC@ 214 215 # adjust CC to current flags 216 CC = $(if $(ifeq $(DISTCC_CFA_PATH),yes),distcc $(DISTCC_CFA_PATH),$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS}) 215 217 CCAS = @CCAS@ 216 218 CCASDEPMODE = @CCASDEPMODE@ 217 219 CCASFLAGS = @CCASFLAGS@ 218 220 CCDEPMODE = @CCDEPMODE@ 219 CFACC = @CFACC@ 221 CFACC = $(CC) 222 CFACC_INSTALL = @CFACC_INSTALL@ 220 223 CFACPP = @CFACPP@ 221 224 CFA_BACKEND_CC = @CFA_BACKEND_CC@ … … 235 238 CYGPATH_W = @CYGPATH_W@ 236 239 DEFS = @DEFS@ 240 DEMANGLER = @DEMANGLER@ 237 241 DEPDIR = @DEPDIR@ 238 242 DLLTOOL = @DLLTOOL@ … … 247 251 FGREP = @FGREP@ 248 252 GREP = @GREP@ 253 HAS_DISTCC = @HAS_DISTCC@ 249 254 HOST_FLAGS = @HOST_FLAGS@ 250 255 INSTALL = @INSTALL@ … … 260 265 LIBCFA_TARGET_DIRS = @LIBCFA_TARGET_DIRS@ 261 266 LIBCFA_TARGET_MAKEFILES = @LIBCFA_TARGET_MAKEFILES@ 267 LIBDEMANGLE = @LIBDEMANGLE@ 262 268 LIBOBJS = @LIBOBJS@ 263 269 LIBS = @LIBS@ … … 375 381 debug = yes 376 382 installed = no 377 INSTALL_FLAGS = -in-tree 383 archiveerrors = 378 384 DEBUG_FLAGS = -debug -O0 379 385 quick_test = avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes … … 383 389 384 390 # applies to both programs 385 AM_CFLAGS = $(if $(test), 2> $(test), ) -g -Wall -Wno-unused-function \ 386 -quiet @CFA_FLAGS@ -DIN_DIR="${abs_srcdir}/.in/" \ 387 ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 391 # since automake doesn't have support for CFA we have to 392 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 393 -g \ 394 -Wall \ 395 -Wno-unused-function \ 396 -quiet @CFA_FLAGS@ \ 397 -DIN_DIR="${abs_srcdir}/.in/" 398 399 400 # get the desired cfa to test 401 TARGET_CFA = $(if $(filter $(installed),yes), @CFACC_INSTALL@, @CFACC@) 402 403 # get local binary for depedencies 404 CFACCBIN = @CFACC@ 405 406 # adjusted CC but without the actual distcc call 407 CFACCLOCAL = $(if $(DISTCC_CFA_PATH),$(DISTCC_CFA_PATH),$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS}) 388 408 PRETTY_PATH = mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && 389 409 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 … … 394 414 395 415 # Use for all tests, make sure the path are correct and all flags are added 396 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 397 398 # Use for tests that either generate an executable, print directyl to stdout or the make command is expected to fail 399 CFATEST_STDOUT = $(CFACOMPILETEST) -o $(abspath ${@}) 400 401 # Use for tests where the make command is expecte to succeed but the expected.txt should be compared to stderr 402 CFATEST_STDERR = $(CFACOMPILETEST) 2> $(abspath ${@}) 416 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGSCFA" | sed 's/-\|\//_/g')) 403 417 404 418 #------------------------------------------------------------------------------ 405 # TARGET WITH STANDARD RULE BUTCUSTOM FLAGS419 # TARGETS WITH CUSTOM FLAGS 406 420 #------------------------------------------------------------------------------ 407 # Expected failures 408 declarationSpecifier_FLAGS = -CFA -XCFA -p 409 gccExtensions_FLAGS = -CFA -XCFA -p 410 extension_FLAGS = -CFA -XCFA -p 411 attributes_FLAGS = -CFA -XCFA -p 412 functions_FLAGS = -CFA -XCFA -p 413 KRfunctions_FLAGS = -CFA -XCFA -p 414 gmp_FLAGS = -lgmp 421 # custom libs 422 gmp_FLAGSLD = -lgmp 415 423 416 424 #------------------------------------------------------------------------------ 417 # Expected failures 418 completeTypeError_FLAGS = -DERR1 425 # Generated code 426 GENERATED_CODE = declarationSpecifier gccExtensions extension attributes functions KRfunctions 427 428 # Use for tests where the make command is expected to succeed but the expected.txt should be compared to stderr 429 EXPECT_STDERR = builtins/sync warnings/self-assignment 419 430 all: all-am 420 431 … … 768 779 #---------------------------------------------------------------------------------------------------------------- 769 780 all-local : 770 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${timeouts} ${quick_test}781 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test} 771 782 772 783 all-tests : 773 @+${TEST_PY} --debug=${debug} --install=${installed} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program784 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 774 785 775 786 clean-local : … … 798 809 799 810 # implicit rule so not all test require a rule 800 % : %.cfa $(CFACC) 801 $(CFATEST_STDOUT) 802 811 # split into two steps to support compiling remotely using distcc 812 # don't use distcc to do the linking because distcc doesn't do linking 813 % : %.cfa $(CFACCBIN) 814 $(CFACOMPILETEST) -c -o $(abspath ${@}).o 815 $(CFACCLOCAL) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) $(abspath ${@}).o -o $(abspath ${@}) 816 817 # implicit rule for c++ test 818 # convient for testing the testsuite itself but not actuall used 803 819 % : %.cpp 804 820 $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 821 $(GENERATED_CODE): % : %.cfa $(CFACCBIN) 822 $(CFACOMPILETEST) -CFA -XCFA -p -c -fsyntax-only -o $(abspath ${@}) 823 $(EXPECT_STDERR): % : %.cfa $(CFACCBIN) 824 $(CFACOMPILETEST) -c -fsyntax-only 2> $(abspath ${@}) 805 825 806 826 #------------------------------------------------------------------------------ 807 827 # CUSTOM TARGET 808 828 #------------------------------------------------------------------------------ 809 typedefRedef-ERR1: typedefRedef.cfa $(CFACC) 810 $(CFATEST_STDOUT) -DERR1 811 812 alloc-ERROR: alloc.cfa $(CFACC) 813 $(CFATEST_STDOUT) -DERR1 814 815 nested-types-ERR1: nested-types.cfa $(CFACC) 816 $(CFATEST_STDOUT) -DERR1 817 818 nested-types-ERR2: nested-types.cfa $(CFACC) 819 $(CFATEST_STDOUT) -DERR2 820 821 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC) 822 $(CFATEST_STDOUT) -DERR1 823 824 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC) 825 $(CFATEST_STDOUT) -DERR2 826 827 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC) 828 $(CFATEST_STDOUT) -DERR1 829 830 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC) 831 $(CFATEST_STDOUT) -DERR1 832 833 #builtins 834 builtins/sync: builtins/sync.cfa $(CFACC) 835 $(CFATEST_STDERR) -fsyntax-only 836 837 # Warnings 838 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC) 839 $(CFATEST_STDERR) -fsyntax-only 829 # expected failures 830 # use custom target since they require a custom define and custom dependencies 831 alloc-ERROR : alloc.cfa $(CFACCBIN) 832 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 833 834 typedefRedef-ERR1 : typedefRedef.cfa $(CFACCBIN) 835 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 836 837 nested-types-ERR1 : nested-types.cfa $(CFACCBIN) 838 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 839 840 nested-types-ERR2 : nested-types.cfa $(CFACCBIN) 841 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 842 843 raii/memberCtors-ERR1 : raii/memberCtors.cfa $(CFACCBIN) 844 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 845 846 raii/ctor-autogen-ERR1 : raii/ctor-autogen.cfa $(CFACCBIN) 847 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 848 849 raii/dtor-early-exit-ERR1 : raii/dtor-early-exit.cfa $(CFACCBIN) 850 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 851 852 raii/dtor-early-exit-ERR2 : raii/dtor-early-exit.cfa $(CFACCBIN) 853 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 854 855 #------------------------------------------------------------------------------ 856 # Other targets 840 857 841 858 # Tell versions [3.59,3.63) of GNU make to not export all variables.
Note:
See TracChangeset
for help on using the changeset viewer.