Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt_longrun/Makefile.am

    rd35e796 rb9da9585  
    1919preempt=10ul\`ms
    2020debug=-debug
    21 type=LONG
    2221
    2322REPEAT = ${abs_top_srcdir}/tools/repeat
    24 WATCHDOG = ${abs_top_srcdir}/tools/watchdog
    2523TIME = /usr/bin/time -f "%E"
    2624
    27 # $(shell ./update-type $(type))
    28 # ./update-type $(type)
    29 
    30 UPDATED_TYPE = $(shell ./update-type $(type))
    31 
    32 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -I.. -I. -DTEST_$(shell cat .type | tr a-z A-Z)
     25BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST
    3326CFLAGS = ${BUILD_FLAGS}
    3427CC = @CFA_BINDIR@/@CFA_NAME@
     
    3629TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
    3730
    38 # .INTERMEDIATE: ${TESTS}
     31.INTERMEDIATE: ${TESTS}
    3932
    4033all-local: ${TESTS:=.run}
    4134
    42 runall : ${TESTS:=.run}
    43         @ echo "All programs terminated normally"
     35clean-local:
     36        rm -f ${TESTS}
    4437
    45 watchall : ${TESTS:=.watch}
    46         @ echo "All programs terminated normally"
    47 
    48 compileall : ${TESTS}
    49         @ echo "Compiled"
    50 
    51 clean-local:
    52         rm -f ${TESTS} core* out.log .type
    53 
    54 % : %.c ${CC} ${UPDATED_TYPE}
     38% : %.c ${CC}
    5539        ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@}
    5640
    5741%.run : % ${REPEAT}
    5842        @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<}
    59         @ rm ${<}
    60         @ echo -e "${<}: SUCCESS\n"
    61 
    62 %.watch : % ${WATCHDOG}
    63         @ time ${WATCHDOG} ./${<}
    6443        @ rm ${<}
    6544        @ echo -e "${<}: SUCCESS\n"
     
    7049        @ echo -e "${<}: SUCCESS\n"
    7150
    72 ${REPEAT}: ${abs_top_srcdir}/tools/Makefile
     51${REPEAT}:
    7352        @+make -C ${abs_top_srcdir}/tools/
    74 
    75 ${WATCHDOG}: ${abs_top_srcdir}/tools/Makefile
    76         @+make -C ${abs_top_srcdir}/tools/
Note: See TracChangeset for help on using the changeset viewer.