source: longrun_tests/Makefile.am @ 20de6fb

ADTarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 20de6fb was e8fe5e0, checked in by tdelisle <tdelisle@…>, 6 years ago

Fixing longrun_tests to compile

  • Property mode set to 100644
File size: 2.0 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
[0c1b566]17AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
[107b01a]18ACLOCAL_AMFLAGS  = -I automake
[0c1b566]19
[e8fe5e0]20include $(top_srcdir)/src/cfa.make
21
[cc3e4d0]22repeats=10
[d6ff3ff]23max_time=600
[b9da9585]24preempt=10ul\`ms
[827a190]25debug=-debug
[7bdcac1]26type=LONG
[cc3e4d0]27
[e8fe5e0]28REPEAT = $(abs_top_builddir)/tools/repeat
29WATCHDOG = $(abs_top_builddir)/tools/watchdog
[0394c31]30TIME = /usr/bin/time -f "%E"
[cc3e4d0]31
[e8fe5e0]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        -in-tree
[cc3e4d0]46
[827a190]47TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
[cc3e4d0]48
[e8fe5e0]49# .INTERMEDIATE: $(TESTS)
[cc3e4d0]50
[e8fe5e0]51all-local: $(TESTS:=.run)
[cc3e4d0]52
[e8fe5e0]53runall : $(TESTS:=.run)
[7bdcac1]54        @ echo "All programs terminated normally"
55
[e8fe5e0]56watchall : $(TESTS:=.watch)
[7bdcac1]57        @ echo "All programs terminated normally"
58
[e8fe5e0]59compileall : $(TESTS)
[7bdcac1]60        @ echo "Compiled"
61
[0764cfb]62clean-local:
[e8fe5e0]63        rm -f $(TESTS) core* out.log .type
[0764cfb]64
[e8fe5e0]65% : %.cfa $(CFACC) $(UPDATED_TYPE)
66        $(AM_V_CFA)$(CFACOMPILE) $(<) $(debug) -o $(@)
[cc3e4d0]67
[e8fe5e0]68%.run : % $(REPEAT)
69        @ time $(REPEAT) -r out.log -i -s $(repeats) timeout $(max_time) ./$(<)
70        @ rm $(<)
71        @ echo -e "$(<): SUCCESS\n"
[1449d83]72
[e8fe5e0]73%.watch : % $(WATCHDOG)
74        @ time $(WATCHDOG} ./$(<)
75        @ rm $(<)
76        @ echo -e "$(<): SUCCESS\n"
[7bdcac1]77
[e8fe5e0]78%.time : % $(REPEAT)
79        @ $(REPEAT) -i -s -- $(repeats) $(TIME) -a -o times.log ./$(<)
80        @ rm $(<)
81        @ echo -e "$(<): SUCCESS\n"
[0394c31]82
[e8fe5e0]83$(REPEAT): $(abs_top_builddir)/tools/Makefile
84        @+make -C $(abs_top_builddir)/tools/
[7bdcac1]85
[e8fe5e0]86$(WATCHDOG): $(abs_top_builddir)/tools/Makefile
87        @+make -C $(abs_top_builddir)/tools/
Note: See TracBrowser for help on using the repository browser.