source: tests/preempt_longrun/Makefile.am @ 0c1b566

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 0c1b566 was 0c1b566, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Fixed missing foreign options and tentative fix for TOP directories defines

  • Property mode set to 100644
File size: 2.0 KB
Line 
1######################## -*- Mode: Makefile-Automake -*- ######################
2##
3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
4##
5## The contents of this file are covered under the licence agreement in the
6## file "LICENCE" distributed with Cforall.
7##
8## Makefile.am --
9##
10## Author           : Thierry Delisle
11## Created On       : Fri Jun 16 10:57:34 2017
12## Last Modified By :
13## Last Modified On :
14## Update Count     : 0
15###############################################################################
16
17AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
18
19repeats=10
20max_time=600
21preempt=10ul\`ms
22debug=-debug
23type=LONG
24
25REPEAT = ${abs_top_srcdir}/tools/repeat
26WATCHDOG = ${abs_top_srcdir}/tools/watchdog
27TIME = /usr/bin/time -f "%E"
28
29# $(shell ./update-type $(type))
30# ./update-type $(type)
31
32UPDATED_TYPE = $(shell ./update-type $(type))
33
34BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -I.. -I. -DTEST_$(shell cat .type | tr a-z A-Z)
35CFLAGS = ${BUILD_FLAGS}
36CC = @CFACC@
37
38TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
39
40# .INTERMEDIATE: ${TESTS}
41
42all-local: ${TESTS:=.run}
43
44runall : ${TESTS:=.run}
45        @ echo "All programs terminated normally"
46
47watchall : ${TESTS:=.watch}
48        @ echo "All programs terminated normally"
49
50compileall : ${TESTS}
51        @ echo "Compiled"
52
53clean-local:
54        rm -f ${TESTS} core* out.log .type
55
56% : %.c ${CC} ${UPDATED_TYPE}
57        ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@}
58
59%.run : % ${REPEAT}
60        @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<}
61        @ rm ${<}
62        @ echo -e "${<}: SUCCESS\n"
63
64%.watch : % ${WATCHDOG}
65        @ time ${WATCHDOG} ./${<}
66        @ rm ${<}
67        @ echo -e "${<}: SUCCESS\n"
68
69%.time : % ${REPEAT}
70        @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<}
71        @ rm ${<}
72        @ echo -e "${<}: SUCCESS\n"
73
74${REPEAT}: ${abs_top_srcdir}/tools/Makefile
75        @+make -C ${abs_top_srcdir}/tools/
76
77${WATCHDOG}: ${abs_top_srcdir}/tools/Makefile
78        @+make -C ${abs_top_srcdir}/tools/
Note: See TracBrowser for help on using the repository browser.