ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change
on this file since 6eb131c was
41770ed1,
checked in by Thierry Delisle <tdelisle@…>, 6 years ago
|
Improve cleaning of longrun tests
|
-
Property mode set to
100644
|
File size:
1.3 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 | |
---|
17 | repeats=10 |
---|
18 | max_time=600 |
---|
19 | preempt=10ul\`ms |
---|
20 | debug=-debug |
---|
21 | |
---|
22 | REPEAT = ${abs_top_srcdir}/tools/repeat |
---|
23 | TIME = /usr/bin/time -f "%E" |
---|
24 | |
---|
25 | BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST |
---|
26 | CFLAGS = ${BUILD_FLAGS} |
---|
27 | CC = @CFA_BINDIR@/@CFA_NAME@ |
---|
28 | |
---|
29 | TESTS = block coroutine create disjoint enter enter3 processor stack wait yield |
---|
30 | |
---|
31 | .INTERMEDIATE: ${TESTS} |
---|
32 | |
---|
33 | all-local: ${TESTS:=.run} |
---|
34 | |
---|
35 | clean-local: |
---|
36 | rm -f ${TESTS} core* out.log |
---|
37 | |
---|
38 | % : %.c ${CC} |
---|
39 | ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@} |
---|
40 | |
---|
41 | %.run : % ${REPEAT} |
---|
42 | @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<} |
---|
43 | @ rm ${<} |
---|
44 | @ echo -e "${<}: SUCCESS\n" |
---|
45 | |
---|
46 | %.time : % ${REPEAT} |
---|
47 | @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<} |
---|
48 | @ rm ${<} |
---|
49 | @ echo -e "${<}: SUCCESS\n" |
---|
50 | |
---|
51 | ${REPEAT}: |
---|
52 | @+make -C ${abs_top_srcdir}/tools/ |
---|
Note: See
TracBrowser
for help on using the repository browser.