Changeset 5e44ac2 for tests/Makefile.am


Ignore:
Timestamp:
Aug 15, 2018, 1:58:02 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
90cac45
Parents:
d7d63e5 (diff), 7bd4cc9 (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 demangler

File:
1 moved

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    rd7d63e5 r5e44ac2  
    1515###############################################################################
    1616
     17AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
    1718
    1819debug=yes
     20installed=no
    1921
    2022quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
    2123
    22 if BUILD_CONCURRENCY
    2324concurrent=
    24 else
    25 concurrent='-Econcurrent'
    26 endif
    2725
    2826TEST_PY = python ${srcdir}/test.py
     
    3432        -Wno-unused-function \
    3533        -quiet @CFA_FLAGS@ \
    36         -DIN_DIR="${srcdir}/.in/" \
    37         @BUILD_IN_TREE_FLAGS@
     34        -DIN_DIR="${srcdir}/.in/"
    3835
    39 if !BUILD_DEBUG
    40 AM_CFLAGS += -nodebug
    41 else
    42 if !BUILD_RELEASE
    43 AM_CFLAGS += -debug
    44 else
    45 AM_CFLAGS += ${DEBUG_FLAGS}
    46 endif
    47 endif
     36AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}
    4837
    4938CC = @CFACC@
    5039
    51 .PHONY : list
     40.PHONY: list .validate
     41.INTERMEDIATE: .validate .validate.c
    5242EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
    5343
     
    5646avl_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
    5747
     48#----------------------------------------------------------------------------------------------------------------
    5849all-local :
    59         @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
     50        @+${TEST_PY} --debug=${debug}  --install=${installed} ${concurrent} ${quick_test}
    6051
    6152all-tests :
    62         @+${TEST_PY} --all --debug=${debug} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
     53        @+${TEST_PY} --all --debug=${debug}  --install=${installed} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
    6354
    6455clean-local :
     
    6859        @+${TEST_PY} --list ${concurrent}
    6960
     61.validate: .validate.c
     62        $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror
     63
     64.validate.c:
     65        @echo "int main() { return 0; }" > ${@}
     66
    7067concurrency :
    71         @+${TEST_PY} --debug=${debug} -Iconcurrent
     68        @+${TEST_PY} --debug=${debug}  --install=${installed} -Iconcurrent
    7269
    73 # SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated
    74 # however, here it is more complicated because it must match the dependencies based on how
    75 # they are generated by gcc
    76 headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*")
    77 headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers))
    78 headers_deps = $(addprefix %/, $(headers_real))
    79 $(headers_deps) :
    80         echo "Dummy rule, should never be called"
    81 
    82 # %/stdlib:
    83 #       echo "Dummy rule, should never be called"
    84 
     70#----------------------------------------------------------------------------------------------------------------
    8571# implicit rule so not all test require a rule
    8672% : %.c $(CC)
Note: See TracChangeset for help on using the changeset viewer.