- File:
-
- 1 edited
-
src/tests/preempt_longrun/Makefile.am (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/Makefile.am
rd35e796 rb9da9585 19 19 preempt=10ul\`ms 20 20 debug=-debug 21 type=LONG22 21 23 22 REPEAT = ${abs_top_srcdir}/tools/repeat 24 WATCHDOG = ${abs_top_srcdir}/tools/watchdog25 23 TIME = /usr/bin/time -f "%E" 26 24 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) 25 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST 33 26 CFLAGS = ${BUILD_FLAGS} 34 27 CC = @CFA_BINDIR@/@CFA_NAME@ … … 36 29 TESTS = block coroutine create disjoint enter enter3 processor stack wait yield 37 30 38 #.INTERMEDIATE: ${TESTS}31 .INTERMEDIATE: ${TESTS} 39 32 40 33 all-local: ${TESTS:=.run} 41 34 42 runall : ${TESTS:=.run} 43 @ echo "All programs terminated normally"35 clean-local: 36 rm -f ${TESTS} 44 37 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} 55 39 ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@} 56 40 57 41 %.run : % ${REPEAT} 58 42 @ 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} ./${<}64 43 @ rm ${<} 65 44 @ echo -e "${<}: SUCCESS\n" … … 70 49 @ echo -e "${<}: SUCCESS\n" 71 50 72 ${REPEAT}: ${abs_top_srcdir}/tools/Makefile51 ${REPEAT}: 73 52 @+make -C ${abs_top_srcdir}/tools/ 74 75 ${WATCHDOG}: ${abs_top_srcdir}/tools/Makefile76 @+make -C ${abs_top_srcdir}/tools/
Note:
See TracChangeset
for help on using the changeset viewer.