source: src/tests/Makefile.am@ 4e1572f

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr no_list persistent-indexer pthread-emulation qualifiedEnum
Last change on this file since 4e1572f was b8f6002, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

Tests no longer require installing cfa/libcfa

  • 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
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 -XCFA \
33 -t \
34 -B${abs_top_builddir}/src/driver \
35 -g \
36 -Wall \
37 -Wno-unused-function \
38 -quiet @CFA_FLAGS@ \
39 -I. \
40 -DIN_DIR="${srcdir}/.in/" \
41 -L${abs_top_builddir}/src/libcfa \
42 -I${abs_top_srcdir}/src/libcfa \
43 -I${abs_top_srcdir}/src/libcfa/containers \
44 -I${abs_top_srcdir}/src/libcfa/concurrency \
45 -I${abs_top_srcdir}/src/libcfa/stdhdr
46
47if !BUILD_DEBUG
48AM_CFLAGS += -nodebug
49else
50if !BUILD_RELEASE
51AM_CFLAGS += -debug
52else
53AM_CFLAGS += ${DEBUG_FLAGS}
54endif
55endif
56
57CC = ${abs_top_builddir}/src/driver/cfa
58
59.PHONY : list
60EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
61
62fstream_test_SOURCES = fstream_test.c
63
64avl_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
65
66all-local :
67 @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
68
69all-tests :
70 @+${TEST_PY} --all --debug=${debug} ${concurrent} # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
71
72clean-local :
73 rm -f ${EXTRA_PROGRAMS}
74
75list :
76 @+${TEST_PY} --list ${concurrent}
77
78concurrency :
79 @+${TEST_PY} --debug=${debug} -Iconcurrent
80
81% : %.c $(CC)
82 $(COMPILE) $(abspath ${<}) -o ${@}
83
84declarationSpecifier: declarationSpecifier.c $(CC)
85 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
86
87gccExtensions : gccExtensions.c $(CC)
88 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
89
90extension : extension.c $(CC)
91 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
92
93attributes : attributes.c $(CC)
94 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
95
96functions: functions.c $(CC)
97 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
98
99KRfunctions : KRfunctions.c $(CC)
100 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
101
102sched-ext-parse : sched-ext-parse.c $(CC)
103 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
104
105gmp : gmp.c $(CC)
106 $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
107
108completeTypeError : completeTypeError.c $(CC)
109 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
110
111typedefRedef-ERR1: typedefRedef.c $(CC)
112 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
113
114alloc-ERROR: alloc.c $(CC)
115 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
116
117fallthrough-ERROR: fallthrough.c $(CC)
118 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
119
120nested-types-ERR1: nested-types.c $(CC)
121 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
122
123nested-types-ERR2: nested-types.c $(CC)
124 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
125
126# Constructor/destructor tests
127raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
128 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
129
130raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
131 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
132
133raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
134 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
135
136raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
137 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
138
139# Warnings
140warnings/self-assignment: warnings/self-assignment.c $(CC)
141 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
142
143#builtins
144builtins/sync: builtins/sync.c $(CC)
145 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracBrowser for help on using the repository browser.