source: src/tests/preempt_longrun/Makefile.am @ 6eb131c

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
17repeats=10
18max_time=600
19preempt=10ul\`ms
20debug=-debug
21
22REPEAT = ${abs_top_srcdir}/tools/repeat
23TIME = /usr/bin/time -f "%E"
24
25BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST
26CFLAGS = ${BUILD_FLAGS}
27CC = @CFA_BINDIR@/@CFA_NAME@
28
29TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
30
31.INTERMEDIATE: ${TESTS}
32
33all-local: ${TESTS:=.run}
34
35clean-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.