Changeset 4a60488 for tests/Makefile.in


Ignore:
Timestamp:
Sep 27, 2019, 3:35:46 PM (6 years ago)
Author:
Andrew Beach <ajbeach@…>
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.
Message:

Merged from master taking the lvalue changes to expression and everything before that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile.in

    r8e1467d r4a60488  
    212212AWK = @AWK@
    213213BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
    214 CC = @CFACC@
     214
     215# adjust CC to current flags
     216CC = $(if $(ifeq $(DISTCC_CFA_PATH),yes),distcc $(DISTCC_CFA_PATH),$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS})
    215217CCAS = @CCAS@
    216218CCASDEPMODE = @CCASDEPMODE@
    217219CCASFLAGS = @CCASFLAGS@
    218220CCDEPMODE = @CCDEPMODE@
    219 CFACC = @CFACC@
     221CFACC = $(CC)
     222CFACC_INSTALL = @CFACC_INSTALL@
    220223CFACPP = @CFACPP@
    221224CFA_BACKEND_CC = @CFA_BACKEND_CC@
     
    235238CYGPATH_W = @CYGPATH_W@
    236239DEFS = @DEFS@
     240DEMANGLER = @DEMANGLER@
    237241DEPDIR = @DEPDIR@
    238242DLLTOOL = @DLLTOOL@
     
    247251FGREP = @FGREP@
    248252GREP = @GREP@
     253HAS_DISTCC = @HAS_DISTCC@
    249254HOST_FLAGS = @HOST_FLAGS@
    250255INSTALL = @INSTALL@
     
    260265LIBCFA_TARGET_DIRS = @LIBCFA_TARGET_DIRS@
    261266LIBCFA_TARGET_MAKEFILES = @LIBCFA_TARGET_MAKEFILES@
     267LIBDEMANGLE = @LIBDEMANGLE@
    262268LIBOBJS = @LIBOBJS@
    263269LIBS = @LIBS@
     
    375381debug = yes
    376382installed = no
    377 INSTALL_FLAGS = -in-tree
     383archiveerrors =
    378384DEBUG_FLAGS = -debug -O0
    379385quick_test = avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
     
    383389
    384390# 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
     392AM_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
     401TARGET_CFA = $(if $(filter $(installed),yes), @CFACC_INSTALL@, @CFACC@)
     402
     403# get local binary for depedencies
     404CFACCBIN = @CFACC@
     405
     406# adjusted CC but without the actual distcc call
     407CFACCLOCAL = $(if $(DISTCC_CFA_PATH),$(DISTCC_CFA_PATH),$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS})
    388408PRETTY_PATH = mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} &&
    389409avl_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
     
    394414
    395415# 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 ${@})
     416CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGSCFA" | sed 's/-\|\//_/g'))
    403417
    404418#------------------------------------------------------------------------------
    405 # TARGET WITH STANDARD RULE BUT CUSTOM FLAGS
     419# TARGETS WITH CUSTOM FLAGS
    406420#------------------------------------------------------------------------------
    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
     422gmp_FLAGSLD = -lgmp
    415423
    416424#------------------------------------------------------------------------------
    417 # Expected failures
    418 completeTypeError_FLAGS = -DERR1
     425# Generated code
     426GENERATED_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
     429EXPECT_STDERR = builtins/sync warnings/self-assignment
    419430all: all-am
    420431
     
    768779#----------------------------------------------------------------------------------------------------------------
    769780all-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}
    771782
    772783all-tests :
    773         @+${TEST_PY} --debug=${debug}  --install=${installed} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
     784        @+${TEST_PY} --debug=${debug} --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
    774785
    775786clean-local :
     
    798809
    799810# 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
    803819% : %.cpp
    804820        $(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 ${@})
    805825
    806826#------------------------------------------------------------------------------
    807827# CUSTOM TARGET
    808828#------------------------------------------------------------------------------
    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
     831alloc-ERROR : alloc.cfa $(CFACCBIN)
     832        $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})
     833
     834typedefRedef-ERR1 : typedefRedef.cfa $(CFACCBIN)
     835        $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})
     836
     837nested-types-ERR1 : nested-types.cfa $(CFACCBIN)
     838        $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})
     839
     840nested-types-ERR2 : nested-types.cfa $(CFACCBIN)
     841        $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@})
     842
     843raii/memberCtors-ERR1 : raii/memberCtors.cfa $(CFACCBIN)
     844        $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})
     845
     846raii/ctor-autogen-ERR1 : raii/ctor-autogen.cfa $(CFACCBIN)
     847        $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})
     848
     849raii/dtor-early-exit-ERR1 : raii/dtor-early-exit.cfa $(CFACCBIN)
     850        $(CFACOMPILETEST) -DERR1 -c -fsyntax-only -o $(abspath ${@})
     851
     852raii/dtor-early-exit-ERR2 : raii/dtor-early-exit.cfa $(CFACCBIN)
     853        $(CFACOMPILETEST) -DERR2 -c -fsyntax-only -o $(abspath ${@})
     854
     855#------------------------------------------------------------------------------
     856# Other targets
    840857
    841858# Tell versions [3.59,3.63) of GNU make to not export all variables.
Note: See TracChangeset for help on using the changeset viewer.