new-env
Last change
on this file since 6d53e779 was
b9da9585,
checked in by Thierry Delisle <tdelisle@…>, 6 years ago
|
Fixed long run tests
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[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 | |
---|
| 17 | repeats=10 |
---|
[d6ff3ff] | 18 | max_time=600 |
---|
[b9da9585] | 19 | preempt=10ul\`ms |
---|
[827a190] | 20 | debug=-debug |
---|
[cc3e4d0] | 21 | |
---|
[1449d83] | 22 | REPEAT = ${abs_top_srcdir}/tools/repeat |
---|
[0394c31] | 23 | TIME = /usr/bin/time -f "%E" |
---|
[cc3e4d0] | 24 | |
---|
[70969f8] | 25 | BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST |
---|
[cc3e4d0] | 26 | CFLAGS = ${BUILD_FLAGS} |
---|
| 27 | CC = @CFA_BINDIR@/@CFA_NAME@ |
---|
| 28 | |
---|
[827a190] | 29 | TESTS = block coroutine create disjoint enter enter3 processor stack wait yield |
---|
[cc3e4d0] | 30 | |
---|
| 31 | .INTERMEDIATE: ${TESTS} |
---|
| 32 | |
---|
| 33 | all-local: ${TESTS:=.run} |
---|
| 34 | |
---|
[0764cfb] | 35 | clean-local: |
---|
| 36 | rm -f ${TESTS} |
---|
| 37 | |
---|
[0e44184] | 38 | % : %.c ${CC} |
---|
[827a190] | 39 | ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@} |
---|
[cc3e4d0] | 40 | |
---|
[1449d83] | 41 | %.run : % ${REPEAT} |
---|
| 42 | @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<} |
---|
[cc3e4d0] | 43 | @ rm ${<} |
---|
[1449d83] | 44 | @ echo -e "${<}: SUCCESS\n" |
---|
| 45 | |
---|
[0394c31] | 46 | %.time : % ${REPEAT} |
---|
| 47 | @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<} |
---|
| 48 | @ rm ${<} |
---|
| 49 | @ echo -e "${<}: SUCCESS\n" |
---|
| 50 | |
---|
| 51 | ${REPEAT}: |
---|
[1449d83] | 52 | @+make -C ${abs_top_srcdir}/tools/ |
---|
Note: See
TracBrowser
for help on using the repository browser.