source: src/tests/preempt_longrun/Makefile.am @ 934d200

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 934d200 was 3fc59bdb, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[cc3e4d0]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
[f3c1737]12## Last Modified By :
13## Last Modified On :
[cc3e4d0]14## Update Count     : 0
15###############################################################################
16
17repeats=10
[d6ff3ff]18max_time=600
[b9da9585]19preempt=10ul\`ms
[827a190]20debug=-debug
[7bdcac1]21type=LONG
[cc3e4d0]22
[1449d83]23REPEAT = ${abs_top_srcdir}/tools/repeat
[7bdcac1]24WATCHDOG = ${abs_top_srcdir}/tools/watchdog
[0394c31]25TIME = /usr/bin/time -f "%E"
[cc3e4d0]26
[7bdcac1]27BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -I.. -I. -DTEST_$(shell echo $(type) | tr a-z A-Z)
[cc3e4d0]28CFLAGS = ${BUILD_FLAGS}
29CC = @CFA_BINDIR@/@CFA_NAME@
30
[827a190]31TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
[cc3e4d0]32
[7bdcac1]33# .INTERMEDIATE: ${TESTS}
[cc3e4d0]34
35all-local: ${TESTS:=.run}
36
[7bdcac1]37runall : ${TESTS:=.run}
38        @ echo "All programs terminated normally"
39
40watchall : ${TESTS:=.watch}
41        @ echo "All programs terminated normally"
42
43compileall : ${TESTS}
44        @ echo "Compiled"
45
[0764cfb]46clean-local:
[41770ed1]47        rm -f ${TESTS} core* out.log
[0764cfb]48
[0e44184]49% : %.c ${CC}
[827a190]50        ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@}
[cc3e4d0]51
[1449d83]52%.run : % ${REPEAT}
53        @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<}
[cc3e4d0]54        @ rm ${<}
[1449d83]55        @ echo -e "${<}: SUCCESS\n"
56
[7bdcac1]57%.watch : % ${WATCHDOG}
58        @ time ${WATCHDOG} ./${<}
59        @ rm ${<}
60        @ echo -e "${<}: SUCCESS\n"
61
[0394c31]62%.time : % ${REPEAT}
63        @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<}
64        @ rm ${<}
65        @ echo -e "${<}: SUCCESS\n"
66
[7bdcac1]67${REPEAT}: ${abs_top_srcdir}/tools/Makefile
[1449d83]68        @+make -C ${abs_top_srcdir}/tools/
[7bdcac1]69
70${WATCHDOG}: ${abs_top_srcdir}/tools/Makefile
71        @+make -C ${abs_top_srcdir}/tools/
Note: See TracBrowser for help on using the repository browser.