source: tests/Makefile.am @ dc8511c

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

first attempt at updating suffixes for test programs

  • Property mode set to 100644
File size: 5.4 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
[dc8511c]13## Last Modified On : Wed Nov  7 12:03:29 2018
14## Update Count     : 59
[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}
[b5f9829]40
[50697b0]41CC = @CFACC@
[ef7d253]42
[f7d3215]43PRETTY_PATH=cd ${srcdir} &&
44
[28582b2]45.PHONY: list .validate
46.INTERMEDIATE: .validate .validate.c
[293377c]47EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
[927e9ce]48
[dc8511c]49fstream_test_SOURCES = fstream_test.cfa
[44f44617]50
[e68b3a8]51avl_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]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
[28582b2]66.validate: .validate.c
[575a6e5]67        $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror
[28582b2]68
69.validate.c:
70        @echo "int main() { return 0; }" > ${@}
71
[026a0f5]72concurrency :
[a5121bf]73        @+${TEST_PY} --debug=${debug}  --install=${installed} -Iconcurrent
[026a0f5]74
[73abe95]75#----------------------------------------------------------------------------------------------------------------
[dc8511c]76
[4f18de3]77# implicit rule so not all test require a rule
[b8f6002]78% : %.c $(CC)
[f7d3215]79        $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[8f8af30]80
[dc8511c]81declarationSpecifier: declarationSpecifier.cfa $(CC)
[f7d3215]82        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[950f7a7]83
[dc8511c]84gccExtensions : gccExtensions.cfa $(CC)
[f7d3215]85        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[d9b499c]86
[dc8511c]87extension : extension.cfa $(CC)
[f7d3215]88        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[d9b499c]89
[dc8511c]90attributes : attributes.cfa $(CC)
[f7d3215]91        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[481115f]92
[dc8511c]93functions: functions.cfa $(CC)
[f7d3215]94        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[c0aa336]95
[dc8511c]96KRfunctions : KRfunctions.cfa $(CC)
[f7d3215]97        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[3a5131ed]98
[b8f6002]99sched-ext-parse : sched-ext-parse.c $(CC)
[f7d3215]100        $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[a843067]101
[dc8511c]102gmp : gmp.cfa $(CC)
[f7d3215]103        $(PRETTY_PATH) $(COMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
104
105#builtins
106builtins/sync: builtins/sync.c $(CC)
107        $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
[4c8f86b]108
[f7d3215]109#------------------------------------------------------------------------------
[dc8511c]110
[f7d3215]111#To make errors path independent we need to cd into the correct directories
[dc8511c]112completeTypeError : completeTypeError.cfa $(CC)
[f7d3215]113        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[486341f]114
[dc8511c]115typedefRedef-ERR1: typedefRedef.cfa $(CC)
[f7d3215]116        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[b93a3de]117
[dc8511c]118alloc-ERROR: alloc.cfa $(CC)
[f7d3215]119        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[70529dc]120
[dc8511c]121fallthrough-ERROR: fallthrough.cfa $(CC)
[f7d3215]122        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[e2c70ab]123
[dc8511c]124nested-types-ERR1: nested-types.cfa $(CC)
[f7d3215]125        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[49e1275]126
[dc8511c]127nested-types-ERR2: nested-types.cfa $(CC)
[f7d3215]128        $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[49e1275]129
[80e8582]130# Constructor/destructor tests
[b8f6002]131raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
[f7d3215]132        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[cdbfab0]133
[b8f6002]134raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
[f7d3215]135        $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[80e8582]136
[b8f6002]137raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
[f7d3215]138        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[80e8582]139
[b8f6002]140raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
[f7d3215]141        $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[80e8582]142
[1feb535f]143# Warnings
[b8f6002]144warnings/self-assignment: warnings/self-assignment.c $(CC)
[f7d3215]145        $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
Note: See TracBrowser for help on using the repository browser.