source: tests/Makefile.am @ 73abe95

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

Replace extension-less headers with .hfa

  • Property mode set to 100644
File size: 3.8 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
48#----------------------------------------------------------------------------------------------------------------
49all-local :
50        @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
51
52all-tests :
53        @+${TEST_PY} --all --debug=${debug} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
54
55clean-local :
56        rm -f ${EXTRA_PROGRAMS}
57
58list :
59        @+${TEST_PY} --list ${concurrent}
60
61.validate: .validate.c
62        @$(COMPILE) .validate.c -fsyntax-only
63
64.validate.c:
65        @echo "int main() { return 0; }" > ${@}
66
67concurrency :
68        @+${TEST_PY} --debug=${debug} -Iconcurrent
69
70#----------------------------------------------------------------------------------------------------------------
71# implicit rule so not all test require a rule
72% : %.c $(CC)
73        $(COMPILE) $(abspath ${<}) -o ${@}
74
75declarationSpecifier: declarationSpecifier.c $(CC)
76        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
77
78gccExtensions : gccExtensions.c $(CC)
79        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
80
81extension : extension.c $(CC)
82        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
83
84attributes : attributes.c $(CC)
85        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
86
87functions: functions.c $(CC)
88        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
89
90KRfunctions : KRfunctions.c $(CC)
91        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
92
93sched-ext-parse : sched-ext-parse.c $(CC)
94        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
95
96gmp : gmp.c $(CC)
97        $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
98
99completeTypeError : completeTypeError.c $(CC)
100        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
101
102typedefRedef-ERR1: typedefRedef.c $(CC)
103        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
104
105alloc-ERROR: alloc.c $(CC)
106        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
107
108fallthrough-ERROR: fallthrough.c $(CC)
109        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
110
111nested-types-ERR1: nested-types.c $(CC)
112        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
113
114nested-types-ERR2: nested-types.c $(CC)
115        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
116
117# Constructor/destructor tests
118raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
119        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
120
121raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
122        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
123
124raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
125        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
126
127raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
128        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
129
130# Warnings
131warnings/self-assignment: warnings/self-assignment.c $(CC)
132        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
133
134#builtins
135builtins/sync: builtins/sync.c $(CC)
136        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracBrowser for help on using the repository browser.