Ignore:
Timestamp:
Jul 23, 2018, 4:46:36 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, 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
Children:
552f5cb
Parents:
46782ab
Message:

Test now work outside of tree except for io2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/Makefile.am

    r46782ab rf85bc15  
    1515###############################################################################
    1616
     17
    1718debug=yes
    1819
     
    2425concurrent='-Econcurrent'
    2526endif
     27
     28TEST_PY = python ${srcdir}/test.py
    2629
    2730# applies to both programs
     
    4144TEST_FLAGS = $(if $(test), 2> $(test), )
    4245AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS}
    43 CC = @CFA_BINDIR@/@CFA_NAME@
     46CC = ${abs_top_builddir}/src/driver/cfa -I${srcdir}
    4447
    4548.PHONY : list
    4649EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
    4750
    48 fstream_test_SOURCES = fstream_test.c
     51fstream_test_SOURCES = ${srcdir}/fstream_test.c
    4952fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
    5053
    51 avl_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
     54avl_test_SOURCES = ${srcdir}/avltree/avl_test.c ${srcdir}/avltree/avl0.c ${srcdir}/avltree/avl1.c ${srcdir}/avltree/avl2.c ${srcdir}/avltree/avl3.c ${srcdir}/avltree/avl4.c ${srcdir}/avltree/avl-private.c
    5255avl_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
    5356
    5457all-local :
    55         @+python test.py --debug=${debug} ${concurrent} ${quick_test}
     58        @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
    5659
    5760all-tests :
    58         @+python test.py --all --debug=${debug} ${concurrent}           # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
     61        @+${TEST_PY} --all --debug=${debug} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
    5962
    6063clean-local :
     
    6265
    6366list :
    64         @+python test.py --list ${concurrent}
     67        @+${TEST_PY} --list ${concurrent}
    6568
    6669concurrency :
    67         @+python test.py --debug=${debug} -Iconcurrent
     70        @+${TEST_PY} --debug=${debug} -Iconcurrent
    6871
    6972.dummy : .dummy.c @CFA_BINDIR@/@CFA_NAME@
     
    7174
    7275
    73 % : %.c @CFA_BINDIR@/@CFA_NAME@
    74         ${CC} ${AM_CFLAGS} ${CFLAGS} ${<} -o ${@}
     76% : ${srcdir}/%.c @CFA_BINDIR@/@CFA_NAME@
     77        ${CC} ${AM_CFLAGS} ${CFLAGS} $(abspath ${<}) -o ${@}
    7578
    7679declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@
    77         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     80        ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p $(abspath ${<}) -o ${@}
    7881
    7982gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@
    80         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     83        ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p $(abspath ${<}) -o ${@}
    8184
    8285extension : extension.c @CFA_BINDIR@/@CFA_NAME@
    83         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     86        ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p $(abspath ${<}) -o ${@}
    8487
    8588attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@
    86         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     89        ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p $(abspath ${<}) -o ${@}
    8790
    8891functions: functions.c @CFA_BINDIR@/@CFA_NAME@
    89         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     92        ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p $(abspath ${<}) -o ${@}
    9093
    9194KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@
    92         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     95        ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p $(abspath ${<}) -o ${@}
    9396
    9497sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@
    95         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     98        ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p $(abspath ${<}) -o ${@}
    9699
    97100gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@
    98         ${CC} ${AM_CFLAGS} ${CFLAGS} -lgmp ${<} -o ${@}
     101        ${CC} ${AM_CFLAGS} ${CFLAGS} -lgmp $(abspath ${<}) -o ${@}
    99102
    100103completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@
    101         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     104        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 $(abspath ${<}) -o ${@}
    102105
    103106typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@
    104         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     107        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 $(abspath ${<}) -o ${@}
    105108
    106109alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@
    107         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     110        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 $(abspath ${<}) -o ${@}
    108111
    109112fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@
    110         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     113        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 $(abspath ${<}) -o ${@}
    111114
    112115nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@
    113         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     116        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 $(abspath ${<}) -o ${@}
    114117
    115118nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@
    116         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR2 ${<} -o ${@}
     119        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR2 $(abspath ${<}) -o ${@}
    117120
    118121# Constructor/destructor tests
    119122raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
    120         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     123        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 $(abspath ${<}) -o ${@}
    121124
    122125raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
    123         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR2 ${<} -o ${@}
     126        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR2 $(abspath ${<}) -o ${@}
    124127
    125128raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@
    126         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     129        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 $(abspath ${<}) -o ${@}
    127130
    128131raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@
    129         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     132        ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 $(abspath ${<}) -o ${@}
    130133
    131134# Warnings
    132135warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@
    133         ${CC} ${AM_CFLAGS} ${CFLAGS} ${<} 2> ${@} -fsyntax-only
     136        ${CC} ${AM_CFLAGS} ${CFLAGS} $(abspath ${<}) 2> ${@} -fsyntax-only
    134137
    135138#builtins
    136139builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@
    137         ${CC} ${AM_CFLAGS} ${CFLAGS} ${<} 2> ${@} -fsyntax-only
     140        ${CC} ${AM_CFLAGS} ${CFLAGS} $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracChangeset for help on using the changeset viewer.