source: src/tests/Makefile.am @ 944a90f

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexer
Last change on this file since 944a90f was 944a90f, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

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