Changeset 455a7d5 for tests/Makefile.am


Ignore:
Timestamp:
Aug 9, 2018, 6:35:02 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
ea5b7d6
Parents:
fb975a50 (diff), 0c827019 (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:

Merge branch 'master' into jenkins-sandbox

File:
1 moved

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    rfb975a50 r455a7d5  
    1717
    1818debug=yes
     19installed=no
    1920
    2021quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
    2122
    22 if BUILD_CONCURRENCY
    2323concurrent=
    24 else
    25 concurrent='-Econcurrent'
    26 endif
    2724
    2825TEST_PY = python ${srcdir}/test.py
     
    3027# applies to both programs
    3128AM_CFLAGS = $(if $(test), 2> $(test), ) \
    32         -XCFA \
    33         -t \
    34         -B${abs_top_builddir}/src/driver \
    3529        -g \
    3630        -Wall \
    3731        -Wno-unused-function \
    3832        -quiet @CFA_FLAGS@ \
    39         -I. \
    40         -DIN_DIR="${srcdir}/.in/" \
    41         -L${abs_top_builddir}/src/libcfa \
    42         -I${abs_top_srcdir}/src/libcfa \
    43         -I${abs_top_srcdir}/src/libcfa/containers \
    44         -I${abs_top_srcdir}/src/libcfa/concurrency \
    45         -I${abs_top_srcdir}/src/libcfa/stdhdr
     33        -DIN_DIR="${srcdir}/.in/"
    4634
    47 if !BUILD_DEBUG
    48 AM_CFLAGS += -nodebug
    49 else
    50 if !BUILD_RELEASE
    51 AM_CFLAGS += -debug
    52 else
    53 AM_CFLAGS += ${DEBUG_FLAGS}
    54 endif
    55 endif
     35AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}
    5636
    57 CC = ${abs_top_builddir}/src/driver/cfa
     37CC = @CFACC@
    5838
    59 .PHONY : list
     39.PHONY: list .validate
     40.INTERMEDIATE: .validate .validate.c
    6041EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
    6142
     
    6445avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c
    6546
     47#----------------------------------------------------------------------------------------------------------------
    6648all-local :
    67         @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
     49        @+${TEST_PY} --debug=${debug}  --install=${installed} ${concurrent} ${quick_test}
    6850
    6951all-tests :
    70         @+${TEST_PY} --all --debug=${debug} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
     52        @+${TEST_PY} --all --debug=${debug}  --install=${installed} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
    7153
    7254clean-local :
     
    7658        @+${TEST_PY} --list ${concurrent}
    7759
     60.validate: .validate.c
     61        $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror
     62
     63.validate.c:
     64        @echo "int main() { return 0; }" > ${@}
     65
    7866concurrency :
    79         @+${TEST_PY} --debug=${debug} -Iconcurrent
     67        @+${TEST_PY} --debug=${debug}  --install=${installed} -Iconcurrent
    8068
    81 # SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated
    82 # however, here it is more complicated because it must match the dependencies based on how
    83 # they are generated by gcc
    84 headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*")
    85 headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers))
    86 headers_deps = $(addprefix %/, $(headers_real))
    87 $(headers_deps) :
    88         echo "Dummy rule, should never be called"
    89 
    90 # %/stdlib:
    91 #       echo "Dummy rule, should never be called"
    92 
     69#----------------------------------------------------------------------------------------------------------------
    9370# implicit rule so not all test require a rule
    9471% : %.c $(CC)
    95         echo $(headers_deps)
    9672        $(COMPILE) $(abspath ${<}) -o ${@}
    9773
Note: See TracChangeset for help on using the changeset viewer.