source: longrun_tests/Makefile.am @ ab1a9ea

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since ab1a9ea was 26a249c, checked in by caparsons <caparson@…>, 4 years ago

added long unified locks test to makefile

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