source: tests/Makefile.am @ ff593a3

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

Added support for the standard automake targets 'check' and 'installcheck'

  • Property mode set to 100644
File size: 4.1 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
17
18debug=yes
19installed=no
20
21quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
22
23concurrent=
24
25TEST_PY = python ${srcdir}/test.py
26
27# applies to both programs
28AM_CFLAGS = $(if $(test), 2> $(test), ) \
29        -g \
30        -Wall \
31        -Wno-unused-function \
32        -quiet @CFA_FLAGS@ \
33        -DIN_DIR="${srcdir}/.in/" \
34        @BUILD_IN_TREE_FLAGS@
35
36AM_CFLAGS += ${DEBUG_FLAGS}
37
38CC = @CFACC@
39
40.PHONY: list .validate
41.INTERMEDIATE: .validate .validate.c
42EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
43
44fstream_test_SOURCES = fstream_test.c
45
46avl_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
47
48all-local :
49        @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
50
51all-tests :
52        @+${TEST_PY} --all --debug=${debug} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
53
54clean-local :
55        rm -f ${EXTRA_PROGRAMS}
56
57list :
58        @+${TEST_PY} --list ${concurrent}
59
60.validate: .validate.c
61        @$(COMPILE) .validate.c -fsyntax-only
62
63.validate.c:
64        @echo "int main() { return 0; }" > ${@}
65
66concurrency :
67        @+${TEST_PY} --debug=${debug} -Iconcurrent
68
69# SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated
70# however, here it is more complicated because it must match the dependencies based on how
71# they are generated by gcc
72headers = $(shell find $(top_srcdir)/libcfa/src -type f ! -name "*.*")
73headers_real = $(shell realpath --relative-to=$(top_srcdir)/libcfa/src $(headers))
74headers_deps = $(addprefix %/, $(headers_real))
75$(headers_deps) :
76        echo "Dummy rule, should never be called"
77
78# %/stdlib:
79#       echo "Dummy rule, should never be called"
80
81# implicit rule so not all test require a rule
82% : %.c $(CC)
83        $(COMPILE) $(abspath ${<}) -o ${@}
84
85declarationSpecifier: declarationSpecifier.c $(CC)
86        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
87
88gccExtensions : gccExtensions.c $(CC)
89        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
90
91extension : extension.c $(CC)
92        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
93
94attributes : attributes.c $(CC)
95        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
96
97functions: functions.c $(CC)
98        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
99
100KRfunctions : KRfunctions.c $(CC)
101        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
102
103sched-ext-parse : sched-ext-parse.c $(CC)
104        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
105
106gmp : gmp.c $(CC)
107        $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
108
109completeTypeError : completeTypeError.c $(CC)
110        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
111
112typedefRedef-ERR1: typedefRedef.c $(CC)
113        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
114
115alloc-ERROR: alloc.c $(CC)
116        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
117
118fallthrough-ERROR: fallthrough.c $(CC)
119        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
120
121nested-types-ERR1: nested-types.c $(CC)
122        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
123
124nested-types-ERR2: nested-types.c $(CC)
125        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
126
127# Constructor/destructor tests
128raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
129        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
130
131raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
132        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
133
134raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
135        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
136
137raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
138        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
139
140# Warnings
141warnings/self-assignment: warnings/self-assignment.c $(CC)
142        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
143
144#builtins
145builtins/sync: builtins/sync.c $(CC)
146        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracBrowser for help on using the repository browser.