source: tests/preempt_longrun/Makefile.am @ 80a9898

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 80a9898 was 107b01a, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Several changes to the makefiles

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