Ignore:
Timestamp:
Jun 11, 2018, 10:16:04 AM (6 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
3fc59bdb
Parents:
85b1deb
Message:

Added the option to make longrun tests run until failure

File:
1 edited

Legend:

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

    r85b1deb r7bdcac1  
    1919preempt=10ul\`ms
    2020debug=-debug
     21type=LONG
    2122
    2223REPEAT = ${abs_top_srcdir}/tools/repeat
     24WATCHDOG = ${abs_top_srcdir}/tools/watchdog
    2325TIME = /usr/bin/time -f "%E"
    2426
    25 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST
     27BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -I.. -I. -DTEST_$(shell echo $(type) | tr a-z A-Z)
    2628CFLAGS = ${BUILD_FLAGS}
    2729CC = @CFA_BINDIR@/@CFA_NAME@
     
    2931TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
    3032
    31 .INTERMEDIATE: ${TESTS}
     33# .INTERMEDIATE: ${TESTS}
    3234
    3335all-local: ${TESTS:=.run}
     36
     37runall : ${TESTS:=.run}
     38        @ echo "All programs terminated normally"
     39
     40watchall : ${TESTS:=.watch}
     41        @ echo "All programs terminated normally"
     42
     43compileall : ${TESTS}
     44        @ echo "Compiled"
    3445
    3546clean-local:
     
    4455        @ echo -e "${<}: SUCCESS\n"
    4556
     57%.watch : % ${WATCHDOG}
     58        @ time ${WATCHDOG} ./${<}
     59        @ rm ${<}
     60        @ echo -e "${<}: SUCCESS\n"
     61
    4662%.time : % ${REPEAT}
    4763        @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<}
     
    4965        @ echo -e "${<}: SUCCESS\n"
    5066
    51 ${REPEAT}:
     67${REPEAT}: ${abs_top_srcdir}/tools/Makefile
    5268        @+make -C ${abs_top_srcdir}/tools/
     69
     70${WATCHDOG}: ${abs_top_srcdir}/tools/Makefile
     71        @+make -C ${abs_top_srcdir}/tools/
Note: See TracChangeset for help on using the changeset viewer.