source: tests/Makefile.am @ 5b993e0

ADTarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 5b993e0 was 5b993e0, checked in by tdelisle <tdelisle@…>, 5 years ago

Updated test scripts to use python3

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