Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile.in

    rdf8b87cd re3a5a73  
    235235CYGPATH_W = @CYGPATH_W@
    236236DEFS = @DEFS@
    237 DEMANGLER = @DEMANGLER@
    238237DEPDIR = @DEPDIR@
    239238DLLTOOL = @DLLTOOL@
     
    261260LIBCFA_TARGET_DIRS = @LIBCFA_TARGET_DIRS@
    262261LIBCFA_TARGET_MAKEFILES = @LIBCFA_TARGET_MAKEFILES@
    263 LIBDEMANGLE = @LIBDEMANGLE@
    264262LIBOBJS = @LIBOBJS@
    265263LIBS = @LIBS@
     
    388386        -quiet @CFA_FLAGS@ -DIN_DIR="${abs_srcdir}/.in/" \
    389387        ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}
    390 PRETTY_PATH = mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} &&
     388PRETTY_PATH = cd ${srcdir} &&
    391389avl_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
    392390# automake doesn't know we still need C/CPP rules so pretend like we have a C program
    393391_dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp
    394 
    395 #----------------------------------------------------------------------------------------------------------------
    396 
    397 # 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 directyl to stdout or the make command is expected to fail
    401 CFATEST_STDOUT = $(CFACOMPILETEST) -o $(abspath ${@})
    402 
    403 # Use for tests where the make command is expecte to succeed but the expected.txt should be compared to stderr
    404 CFATEST_STDERR = $(CFACOMPILETEST) 2> $(abspath ${@})
    405 
    406 #------------------------------------------------------------------------------
    407 # TARGET WITH STANDARD RULE BUT CUSTOM FLAGS
    408 #------------------------------------------------------------------------------
    409 # Expected failures
    410 declarationSpecifier_FLAGS = -CFA -XCFA -p
    411 gccExtensions_FLAGS = -CFA -XCFA -p
    412 extension_FLAGS = -CFA -XCFA -p
    413 attributes_FLAGS = -CFA -XCFA -p
    414 functions_FLAGS = -CFA -XCFA -p
    415 KRfunctions_FLAGS = -CFA -XCFA -p
    416 gmp_FLAGS = -lgmp
    417 
    418 #------------------------------------------------------------------------------
    419 # Expected failures
    420 completeTypeError_FLAGS = -DERR1
    421392all: all-am
    422393
     
    801772# implicit rule so not all test require a rule
    802773% : %.cfa $(CFACC)
    803         $(CFATEST_STDOUT)
     774        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    804775
    805776% : %.cpp
    806777        $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    807778
    808 #------------------------------------------------------------------------------
    809 # CUSTOM TARGET
    810 #------------------------------------------------------------------------------
    811 typedefRedef-ERR1: typedefRedef.cfa $(CFACC)
    812         $(CFATEST_STDOUT) -DERR1
    813 
    814 alloc-ERROR: alloc.cfa $(CFACC)
    815         $(CFATEST_STDOUT) -DERR1
    816 
    817 nested-types-ERR1: nested-types.cfa $(CFACC)
    818         $(CFATEST_STDOUT) -DERR1
    819 
    820 nested-types-ERR2: nested-types.cfa $(CFACC)
    821         $(CFATEST_STDOUT) -DERR2
    822 
    823 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC)
    824         $(CFATEST_STDOUT) -DERR1
    825 
    826 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC)
    827         $(CFATEST_STDOUT) -DERR2
    828 
    829 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC)
    830         $(CFATEST_STDOUT) -DERR1
    831 
    832 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC)
    833         $(CFATEST_STDOUT) -DERR1
     779declarationSpecifier: declarationSpecifier.cfa $(CFACC)
     780        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     781
     782gccExtensions : gccExtensions.cfa $(CFACC)
     783        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     784
     785extension : extension.cfa $(CFACC)
     786        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     787
     788attributes : attributes.cfa $(CFACC)
     789        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     790
     791functions: functions.cfa $(CFACC)
     792        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     793
     794KRfunctions : KRfunctions.cfa $(CFACC)
     795        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     796
     797sched-ext-parse : sched-ext-parse.c $(CFACC)
     798        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     799
     800gmp : gmp.cfa $(CFACC)
     801        $(PRETTY_PATH) $(CFACOMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    834802
    835803#builtins
    836804builtins/sync: builtins/sync.cfa $(CFACC)
    837         $(CFATEST_STDERR) -fsyntax-only
     805        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
     806
     807#------------------------------------------------------------------------------
     808
     809#To make errors path independent we need to cd into the correct directories
     810completeTypeError : completeTypeError.cfa $(CFACC)
     811        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     812
     813typedefRedef-ERR1: typedefRedef.cfa $(CFACC)
     814        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     815
     816alloc-ERROR: alloc.cfa $(CFACC)
     817        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     818
     819fallthrough-ERROR: fallthrough.cfa $(CFACC)
     820        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     821
     822nested-types-ERR1: nested-types.cfa $(CFACC)
     823        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     824
     825nested-types-ERR2: nested-types.cfa $(CFACC)
     826        $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     827
     828# Constructor/destructor tests
     829raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC)
     830        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     831
     832raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC)
     833        $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     834
     835raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC)
     836        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     837
     838raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC)
     839        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    838840
    839841# Warnings
    840842warnings/self-assignment: warnings/self-assignment.cfa $(CFACC)
    841         $(CFATEST_STDERR) -fsyntax-only
     843        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
    842844
    843845# Tell versions [3.59,3.63) of GNU make to not export all variables.
Note: See TracChangeset for help on using the changeset viewer.