Changes in tests/Makefile.in [1d72a11:dcfedca]
- File:
-
- 1 edited
-
tests/Makefile.in (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.in
r1d72a11 rdcfedca 212 212 AWK = @AWK@ 213 213 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 214 215 # adjust CC to current flags 216 CC = $(if $(DISTCC_CFA_PATH),distcc $(DISTCC_CFA_PATH) ${ARCH_FLAGS},$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS}) 214 CC = @CFACC@ 217 215 CCAS = @CCAS@ 218 216 CCASDEPMODE = @CCASDEPMODE@ 219 217 CCASFLAGS = @CCASFLAGS@ 220 218 CCDEPMODE = @CCDEPMODE@ 221 CFACC = $(CC) 222 CFACC_INSTALL = @CFACC_INSTALL@ 219 CFACC = @CFACC@ 223 220 CFACPP = @CFACPP@ 224 221 CFA_BACKEND_CC = @CFA_BACKEND_CC@ … … 251 248 FGREP = @FGREP@ 252 249 GREP = @GREP@ 253 HAS_DISTCC = @HAS_DISTCC@254 250 HOST_FLAGS = @HOST_FLAGS@ 255 251 INSTALL = @INSTALL@ … … 358 354 LTCFACOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 359 355 $(LIBTOOLFLAGS) --mode=compile $(CFACC) $(DEFS) \ 360 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(AM_CFLAGS) $(CFAFLAGS) $(CFLAGS) 356 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) \ 357 $(AM_CFLAGS) $(CFLAGS) 361 358 362 359 AM_V_CFA = $(am__v_CFA_@AM_V@) … … 364 361 am__v_CFA_0 = @echo " CFA " $@; 365 362 am__v_CFA_1 = 363 AM_V_JAVAC = $(am__v_JAVAC_@AM_V@) 364 am__v_JAVAC_ = $(am__v_JAVAC_@AM_DEFAULT_V@) 365 am__v_JAVAC_0 = @echo " JAVAC " $@; 366 am__v_JAVAC_1 = 367 AM_V_GOC = $(am__v_GOC_@AM_V@) 368 am__v_GOC_ = $(am__v_GOC_@AM_DEFAULT_V@) 369 am__v_GOC_0 = @echo " GOC " $@; 370 am__v_GOC_1 = 366 371 UPPCC = u++ 367 372 UPPCOMPILE = $(UPPCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_UPPFLAGS) $(UPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_CFLAGS) $(CFLAGS) … … 370 375 am__v_UPP_0 = @echo " UPP " $@; 371 376 am__v_UPP_1 = 372 AM_V_GOC = $(am__v_GOC_@AM_V@)373 am__v_GOC_ = $(am__v_GOC_@AM_DEFAULT_V@)374 am__v_GOC_0 = @echo " GOC " $@;375 am__v_GOC_1 =376 AM_V_PY = $(am__v_PY_@AM_V@)377 am__v_PY_ = $(am__v_PY_@AM_DEFAULT_V@)378 am__v_PY_0 = @echo " PYTHON " $@;379 am__v_PY_1 =380 AM_V_RUST = $(am__v_RUST_@AM_V@)381 am__v_RUST_ = $(am__v_RUST_@AM_DEFAULT_V@)382 am__v_RUST_0 = @echo " RUST " $@;383 am__v_RUST_1 =384 AM_V_NODEJS = $(am__v_NODEJS_@AM_V@)385 am__v_NODEJS_ = $(am__v_NODEJS_@AM_DEFAULT_V@)386 am__v_NODEJS_0 = @echo " NODEJS " $@;387 am__v_NODEJS_1 =388 AM_V_JAVAC = $(am__v_JAVAC_@AM_V@)389 am__v_JAVAC_ = $(am__v_JAVAC_@AM_DEFAULT_V@)390 am__v_JAVAC_0 = @echo " JAVAC " $@;391 am__v_JAVAC_1 =392 377 debug = yes 393 378 installed = no 394 379 archiveerrors = 380 INSTALL_FLAGS = -in-tree 395 381 DEBUG_FLAGS = -debug -O0 396 382 quick_test = avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes … … 400 386 401 387 # applies to both programs 402 # since automake doesn't have support for CFA we have to 403 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 404 -g \ 405 -Wall \ 406 -Wno-unused-function \ 407 -quiet @CFA_FLAGS@ \ 408 -DIN_DIR="${abs_srcdir}/.in/" 409 410 411 # get the desired cfa to test 412 TARGET_CFA = $(if $(filter $(installed),yes), @CFACC_INSTALL@, @CFACC@) 413 414 # get local binary for depedencies 415 CFACCBIN = @CFACC@ 416 417 # adjusted CC but without the actual distcc call 418 CFACCLOCAL = $(if $(DISTCC_CFA_PATH),$(DISTCC_CFA_PATH) ${ARCH_FLAGS},$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS}) 388 AM_CFLAGS = $(if $(test), 2> $(test), ) -g -Wall -Wno-unused-function \ 389 -quiet @CFA_FLAGS@ -DIN_DIR="${abs_srcdir}/.in/" \ 390 ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 419 391 PRETTY_PATH = mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && 420 392 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 … … 425 397 426 398 # Use for all tests, make sure the path are correct and all flags are added 427 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGSCFA" | sed 's/-\|\//_/g')) 399 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 400 401 # Use for tests that either generate an executable, print directyl to stdout or the make command is expected to fail 402 CFATEST_STDOUT = $(CFACOMPILETEST) -o $(abspath ${@}) 403 404 # Use for tests where the make command is expecte to succeed but the expected.txt should be compared to stderr 405 CFATEST_STDERR = $(CFACOMPILETEST) 2> $(abspath ${@}) 428 406 429 407 #------------------------------------------------------------------------------ 430 # TARGET S WITHCUSTOM FLAGS408 # TARGET WITH STANDARD RULE BUT CUSTOM FLAGS 431 409 #------------------------------------------------------------------------------ 432 # custom libs 433 gmp_FLAGSLD = -lgmp 410 # Expected failures 411 declarationSpecifier_FLAGS = -CFA -XCFA -p 412 gccExtensions_FLAGS = -CFA -XCFA -p 413 extension_FLAGS = -CFA -XCFA -p 414 attributes_FLAGS = -CFA -XCFA -p 415 functions_FLAGS = -CFA -XCFA -p 416 KRfunctions_FLAGS = -CFA -XCFA -p 417 gmp_FLAGS = -lgmp 434 418 435 419 #------------------------------------------------------------------------------ 436 # Generated code 437 GENERATED_CODE = declarationSpecifier gccExtensions extension attributes functions KRfunctions 438 439 # Use for tests where the make command is expected to succeed but the expected.txt should be compared to stderr 440 EXPECT_STDERR = builtins/sync warnings/self-assignment 420 # Expected failures 421 completeTypeError_FLAGS = -DERR1 441 422 all: all-am 442 423 … … 790 771 #---------------------------------------------------------------------------------------------------------------- 791 772 all-local : 792 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test}773 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test} 793 774 794 775 all-tests : 795 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program776 @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program 796 777 797 778 clean-local : … … 820 801 821 802 # implicit rule so not all test require a rule 822 # split into two steps to support compiling remotely using distcc 823 # don't use distcc to do the linking because distcc doesn't do linking 824 % : %.cfa $(CFACCBIN) 825 $(CFACOMPILETEST) -c -o $(abspath ${@}).o 826 $(CFACCLOCAL) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) $(abspath ${@}).o -o $(abspath ${@}) 827 828 # implicit rule for c++ test 829 # convient for testing the testsuite itself but not actuall used 803 % : %.cfa $(CFACC) 804 $(CFATEST_STDOUT) 805 830 806 % : %.cpp 831 807 $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 832 $(GENERATED_CODE): % : %.cfa $(CFACCBIN)833 $(CFACOMPILETEST) -CFA -XCFA -p -c -fsyntax-only -o $(abspath ${@})834 $(EXPECT_STDERR): % : %.cfa $(CFACCBIN)835 $(CFACOMPILETEST) -c -fsyntax-only 2> $(abspath ${@})836 808 837 809 #------------------------------------------------------------------------------ 838 810 # CUSTOM TARGET 839 811 #------------------------------------------------------------------------------ 840 # expected failures 841 # use custom target since they require a custom define and custom dependencies 842 alloc-ERROR : alloc.cfa $(CFACCBIN) 843 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 844 845 typedefRedef-ERR1 : typedefRedef.cfa $(CFACCBIN) 846 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 847 848 nested-types-ERR1 : nested-types.cfa $(CFACCBIN) 849 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 850 851 nested-types-ERR2 : nested-types.cfa $(CFACCBIN) 852 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 853 854 raii/memberCtors-ERR1 : raii/memberCtors.cfa $(CFACCBIN) 855 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 856 857 raii/ctor-autogen-ERR1 : raii/ctor-autogen.cfa $(CFACCBIN) 858 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 859 860 raii/dtor-early-exit-ERR1 : raii/dtor-early-exit.cfa $(CFACCBIN) 861 $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@}) 862 863 raii/dtor-early-exit-ERR2 : raii/dtor-early-exit.cfa $(CFACCBIN) 864 $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@}) 865 866 #------------------------------------------------------------------------------ 867 # Other targets 812 typedefRedef-ERR1: typedefRedef.cfa $(CFACC) 813 $(CFATEST_STDOUT) -DERR1 814 815 alloc-ERROR: alloc.cfa $(CFACC) 816 $(CFATEST_STDOUT) -DERR1 817 818 nested-types-ERR1: nested-types.cfa $(CFACC) 819 $(CFATEST_STDOUT) -DERR1 820 821 nested-types-ERR2: nested-types.cfa $(CFACC) 822 $(CFATEST_STDOUT) -DERR2 823 824 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC) 825 $(CFATEST_STDOUT) -DERR1 826 827 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC) 828 $(CFATEST_STDOUT) -DERR2 829 830 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC) 831 $(CFATEST_STDOUT) -DERR1 832 833 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC) 834 $(CFATEST_STDOUT) -DERR1 835 836 #builtins 837 builtins/sync: builtins/sync.cfa $(CFACC) 838 $(CFATEST_STDERR) -fsyntax-only 839 840 # Warnings 841 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC) 842 $(CFATEST_STDERR) -fsyntax-only 868 843 869 844 # Tell versions [3.59,3.63) of GNU make to not export all variables.
Note:
See TracChangeset
for help on using the changeset viewer.