Changeset e8fe5e0 for longrun_tests/Makefile.am
- Timestamp:
- Mar 28, 2019, 11:49:44 AM (4 years ago)
- Branches:
- arm-eh, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- ea62265
- Parents:
- 1241851
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
longrun_tests/Makefile.am
r1241851 re8fe5e0 18 18 ACLOCAL_AMFLAGS = -I automake 19 19 20 include $(top_srcdir)/src/cfa.make 21 20 22 repeats=10 21 23 max_time=600 … … 24 26 type=LONG 25 27 26 REPEAT = $ {abs_top_srcdir}/tools/repeat27 WATCHDOG = $ {abs_top_srcdir}/tools/watchdog28 REPEAT = $(abs_top_builddir)/tools/repeat 29 WATCHDOG = $(abs_top_builddir)/tools/watchdog 28 30 TIME = /usr/bin/time -f "%E" 29 31 30 # $(shell ./update-type $(type)) 31 # ./update-type $(type) 32 UPDATED_TYPE = $(shell $(srcdir)/update-type $(type)) 32 33 33 UPDATED_TYPE = $(shell ./update-type $(type)) 34 35 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -I../tests -I. -DTEST_$(shell cat .type | tr a-z A-Z) 36 CFLAGS = ${BUILD_FLAGS} 37 CC = @CFACC@ 34 BUILD_FLAGS = 35 AM_CFAFLAGS = \ 36 -g \ 37 -Wall \ 38 -Wno-unused-function \ 39 -quiet \ 40 -O2 \ 41 -DPREEMPTION_RATE=$(preempt) \ 42 -I$(abs_top_srcdir)/tests \ 43 -I$(srcdir) \ 44 -DTEST_$(shell cat .type | tr a-z A-Z) \ 45 -in-tree 38 46 39 47 TESTS = block coroutine create disjoint enter enter3 processor stack wait yield 40 48 41 # .INTERMEDIATE: $ {TESTS}49 # .INTERMEDIATE: $(TESTS) 42 50 43 all-local: $ {TESTS:=.run}51 all-local: $(TESTS:=.run) 44 52 45 runall : $ {TESTS:=.run}53 runall : $(TESTS:=.run) 46 54 @ echo "All programs terminated normally" 47 55 48 watchall : $ {TESTS:=.watch}56 watchall : $(TESTS:=.watch) 49 57 @ echo "All programs terminated normally" 50 58 51 compileall : $ {TESTS}59 compileall : $(TESTS) 52 60 @ echo "Compiled" 53 61 54 62 clean-local: 55 rm -f $ {TESTS}core* out.log .type63 rm -f $(TESTS) core* out.log .type 56 64 57 % : %.c ${CC} ${UPDATED_TYPE}58 $ {AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@}65 % : %.cfa $(CFACC) $(UPDATED_TYPE) 66 $(AM_V_CFA)$(CFACOMPILE) $(<) $(debug) -o $(@) 59 67 60 %.run : % $ {REPEAT}61 @ time $ {REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<}62 @ rm $ {<}63 @ echo -e "$ {<}: SUCCESS\n"68 %.run : % $(REPEAT) 69 @ time $(REPEAT) -r out.log -i -s $(repeats) timeout $(max_time) ./$(<) 70 @ rm $(<) 71 @ echo -e "$(<): SUCCESS\n" 64 72 65 %.watch : % $ {WATCHDOG}66 @ time $ {WATCHDOG} ./${<}67 @ rm $ {<}68 @ echo -e "$ {<}: SUCCESS\n"73 %.watch : % $(WATCHDOG) 74 @ time $(WATCHDOG} ./$(<) 75 @ rm $(<) 76 @ echo -e "$(<): SUCCESS\n" 69 77 70 %.time : % $ {REPEAT}71 @ $ {REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<}72 @ rm $ {<}73 @ echo -e "$ {<}: SUCCESS\n"78 %.time : % $(REPEAT) 79 @ $(REPEAT) -i -s -- $(repeats) $(TIME) -a -o times.log ./$(<) 80 @ rm $(<) 81 @ echo -e "$(<): SUCCESS\n" 74 82 75 $ {REPEAT}: ${abs_top_srcdir}/tools/Makefile76 @+make -C $ {abs_top_srcdir}/tools/83 $(REPEAT): $(abs_top_builddir)/tools/Makefile 84 @+make -C $(abs_top_builddir)/tools/ 77 85 78 $ {WATCHDOG}: ${abs_top_srcdir}/tools/Makefile79 @+make -C $ {abs_top_srcdir}/tools/86 $(WATCHDOG): $(abs_top_builddir)/tools/Makefile 87 @+make -C $(abs_top_builddir)/tools/
Note: See TracChangeset
for help on using the changeset viewer.