source: tests/Makefile.am @ ff1e0f38

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

Parent make now seems to properly call libcfa

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