source: tests/Makefile.am @ 1e995d6

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 1e995d6 was 1e995d6, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

fix cfa-suffix problem in build

  • Property mode set to 100644
File size: 5.7 KB
RevLine 
[ef7d253]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
[1e995d6]13## Last Modified On : Fri Nov 16 15:29:54 2018
14## Update Count     : 65
[ef7d253]15###############################################################################
16
[0c1b566]17AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
[f85bc15]18
[dc8511c]19include $(top_srcdir)/src/cfa.make
20
[cc640aad]21debug=yes
[ff593a3]22installed=no
[cc640aad]23
[5cacf74]24quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
[be65cca]25
[0ad0c55]26concurrent=
[b90aace]27timeouts=
[be65cca]28
[bdff89d]29TEST_PY = python ${builddir}/test.py
[f85bc15]30
[ef7d253]31# applies to both programs
[b8f6002]32AM_CFLAGS = $(if $(test), 2> $(test), ) \
33        -g \
34        -Wall \
35        -Wno-unused-function \
36        -quiet @CFA_FLAGS@ \
[a5121bf]37        -DIN_DIR="${srcdir}/.in/"
[7c03d6d]38
[575a6e5]39AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}
[50697b0]40CC = @CFACC@
[ef7d253]41
[f7d3215]42PRETTY_PATH=cd ${srcdir} &&
43
[28582b2]44.PHONY: list .validate
[1e995d6]45.INTERMEDIATE: .validate .validate.cfa
[293377c]46EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
[927e9ce]47
[dc8511c]48fstream_test_SOURCES = fstream_test.cfa
[44f44617]49
[e68b3a8]50avl_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
[a0dcd2e]51
[73abe95]52#----------------------------------------------------------------------------------------------------------------
[927e9ce]53all-local :
[b90aace]54        @+${TEST_PY} --debug=${debug}  --install=${installed} ${concurrent} ${timeouts} ${quick_test}
[df42128]55
56all-tests :
[b90aace]57        @+${TEST_PY} --debug=${debug}  --install=${installed} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
[927e9ce]58
59clean-local :
[a6dd5b0]60        rm -f ${EXTRA_PROGRAMS}
[927e9ce]61
62list :
[f85bc15]63        @+${TEST_PY} --list ${concurrent}
[927e9ce]64
[1e995d6]65.validate: .validate.cfa
66        $(CFACOMPILE) .validate.cfa -fsyntax-only -Wall -Wextra -Werror
67
68.validate.cfa:
69        @echo "int main() { return 0; }" > ${@}
[28582b2]70
[1e995d6]71dummy_hack.c:
[28582b2]72        @echo "int main() { return 0; }" > ${@}
73
[026a0f5]74concurrency :
[a5121bf]75        @+${TEST_PY} --debug=${debug}  --install=${installed} -Iconcurrent
[026a0f5]76
[73abe95]77#----------------------------------------------------------------------------------------------------------------
[dc8511c]78
[4f18de3]79# implicit rule so not all test require a rule
[1e995d6]80% : %.c $(CFACC)
81        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
82
83% : %.cfa $(CFACC)
84        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[8f8af30]85
[1e995d6]86declarationSpecifier: declarationSpecifier.cfa $(CFACC)
87        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[950f7a7]88
[1e995d6]89gccExtensions : gccExtensions.cfa $(CFACC)
90        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[d9b499c]91
[1e995d6]92extension : extension.cfa $(CFACC)
93        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[d9b499c]94
[1e995d6]95attributes : attributes.cfa $(CFACC)
96        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[481115f]97
[1e995d6]98functions: functions.cfa $(CFACC)
99        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[c0aa336]100
[1e995d6]101KRfunctions : KRfunctions.cfa $(CFACC)
102        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[3a5131ed]103
[1e995d6]104sched-ext-parse : sched-ext-parse.c $(CFACC)
105        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[a843067]106
[1e995d6]107gmp : gmp.cfa $(CFACC)
108        $(PRETTY_PATH) $(CFACOMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[f7d3215]109
110#builtins
[1e995d6]111builtins/sync: builtins/sync.c $(CFACC)
112        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
[4c8f86b3]113
[f7d3215]114#------------------------------------------------------------------------------
[dc8511c]115
[f7d3215]116#To make errors path independent we need to cd into the correct directories
[1e995d6]117completeTypeError : completeTypeError.cfa $(CFACC)
118        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[486341f]119
[1e995d6]120typedefRedef-ERR1: typedefRedef.cfa $(CFACC)
121        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[b93a3de]122
[1e995d6]123alloc-ERROR: alloc.cfa $(CFACC)
124        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[70529dc]125
[1e995d6]126fallthrough-ERROR: fallthrough.cfa $(CFACC)
127        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[e2c70ab]128
[1e995d6]129nested-types-ERR1: nested-types.cfa $(CFACC)
130        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[49e1275]131
[1e995d6]132nested-types-ERR2: nested-types.cfa $(CFACC)
133        $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[49e1275]134
[80e8582]135# Constructor/destructor tests
[1e995d6]136raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CFACC)
137        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[cdbfab0]138
[1e995d6]139raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CFACC)
140        $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[80e8582]141
[1e995d6]142raii/memberCtors-ERR1: raii/memberCtors.c $(CFACC)
143        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[80e8582]144
[1e995d6]145raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CFACC)
146        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[80e8582]147
[1feb535f]148# Warnings
[1e995d6]149warnings/self-assignment: warnings/self-assignment.c $(CFACC)
150        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
Note: See TracBrowser for help on using the repository browser.