source: src/tests/preempt_longrun/Makefile.am @ bf5a6477

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexer
Last change on this file since bf5a6477 was bf5a6477, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Converted missing makefile to use CFACC as the compiler

  • Property mode set to 100644
File size: 1.9 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
21type=LONG
22
23REPEAT = ${abs_top_srcdir}/tools/repeat
24WATCHDOG = ${abs_top_srcdir}/tools/watchdog
25TIME = /usr/bin/time -f "%E"
26
27# $(shell ./update-type $(type))
28# ./update-type $(type)
29
30UPDATED_TYPE = $(shell ./update-type $(type))
31
32BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -I.. -I. -DTEST_$(shell cat .type | tr a-z A-Z)
33CFLAGS = ${BUILD_FLAGS}
34CC = @CFACC@
35
36TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
37
38# .INTERMEDIATE: ${TESTS}
39
40all-local: ${TESTS:=.run}
41
42runall : ${TESTS:=.run}
43        @ echo "All programs terminated normally"
44
45watchall : ${TESTS:=.watch}
46        @ echo "All programs terminated normally"
47
48compileall : ${TESTS}
49        @ echo "Compiled"
50
51clean-local:
52        rm -f ${TESTS} core* out.log .type
53
54% : %.c ${CC} ${UPDATED_TYPE}
55        ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@}
56
57%.run : % ${REPEAT}
58        @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<}
59        @ rm ${<}
60        @ echo -e "${<}: SUCCESS\n"
61
62%.watch : % ${WATCHDOG}
63        @ time ${WATCHDOG} ./${<}
64        @ rm ${<}
65        @ echo -e "${<}: SUCCESS\n"
66
67%.time : % ${REPEAT}
68        @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<}
69        @ rm ${<}
70        @ echo -e "${<}: SUCCESS\n"
71
72${REPEAT}: ${abs_top_srcdir}/tools/Makefile
73        @+make -C ${abs_top_srcdir}/tools/
74
75${WATCHDOG}: ${abs_top_srcdir}/tools/Makefile
76        @+make -C ${abs_top_srcdir}/tools/
Note: See TracBrowser for help on using the repository browser.