source: tests/Makefile.am @ 30ee9efc

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

Jenkins full build now uses 10 min timeouts

  • Property mode set to 100644
File size: 5.4 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           : Peter A. Buhr
11## Created On       : Sun May 31 09:08:15 2015
12## Last Modified By : Peter A. Buhr
13## Last Modified On : Wed Jun  6 16:42:20 2018
14## Update Count     : 49
15###############################################################################
16
17AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
18
19debug=yes
20installed=no
21
22quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
23
24concurrent=
25timeouts=
26
27TEST_PY = python ${builddir}/test.py
28
29# applies to both programs
30AM_CFLAGS = $(if $(test), 2> $(test), ) \
31        -g \
32        -Wall \
33        -Wno-unused-function \
34        -quiet @CFA_FLAGS@ \
35        -DIN_DIR="${srcdir}/.in/"
36
37AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}
38
39CC = @CFACC@
40
41PRETTY_PATH=cd ${srcdir} &&
42
43.PHONY: list .validate
44.INTERMEDIATE: .validate .validate.c
45EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
46
47fstream_test_SOURCES = fstream_test.c
48
49avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c
50
51#----------------------------------------------------------------------------------------------------------------
52all-local :
53        @+${TEST_PY} --debug=${debug}  --install=${installed} ${concurrent} ${timeouts} ${quick_test}
54
55all-tests :
56        @+${TEST_PY} --debug=${debug}  --install=${installed} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
57
58clean-local :
59        rm -f ${EXTRA_PROGRAMS}
60
61list :
62        @+${TEST_PY} --list ${concurrent}
63
64.validate: .validate.c
65        $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror
66
67.validate.c:
68        @echo "int main() { return 0; }" > ${@}
69
70concurrency :
71        @+${TEST_PY} --debug=${debug}  --install=${installed} -Iconcurrent
72
73#----------------------------------------------------------------------------------------------------------------
74# implicit rule so not all test require a rule
75% : %.c $(CC)
76        $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
77
78declarationSpecifier: declarationSpecifier.c $(CC)
79        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
80
81gccExtensions : gccExtensions.c $(CC)
82        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
83
84extension : extension.c $(CC)
85        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
86
87attributes : attributes.c $(CC)
88        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
89
90functions: functions.c $(CC)
91        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
92
93KRfunctions : KRfunctions.c $(CC)
94        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
95
96sched-ext-parse : sched-ext-parse.c $(CC)
97        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
98
99gmp : gmp.c $(CC)
100        $(PRETTY_PATH) $(COMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
101
102#builtins
103builtins/sync: builtins/sync.c $(CC)
104        $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
105
106#------------------------------------------------------------------------------
107#To make errors path independent we need to cd into the correct directories
108completeTypeError : completeTypeError.c $(CC)
109        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
110
111typedefRedef-ERR1: typedefRedef.c $(CC)
112        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
113
114alloc-ERROR: alloc.c $(CC)
115        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
116
117fallthrough-ERROR: fallthrough.c $(CC)
118        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
119
120nested-types-ERR1: nested-types.c $(CC)
121        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
122
123nested-types-ERR2: nested-types.c $(CC)
124        $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
125
126# Constructor/destructor tests
127raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
128        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
129
130raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
131        $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
132
133raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
134        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
135
136raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
137        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
138
139# Warnings
140warnings/self-assignment: warnings/self-assignment.c $(CC)
141        $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
Note: See TracBrowser for help on using the repository browser.