source: tests/Makefile.am @ 655c5fa

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

Removed dummy tests

  • Property mode set to 100644
File size: 5.1 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
[dcfedca]24archiveerrors=
[cc640aad]25
[e3a5a73]26INSTALL_FLAGS=-in-tree
27DEBUG_FLAGS=-debug -O0
28
[655c5fa]29quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
[be65cca]30
[0ad0c55]31concurrent=
[b90aace]32timeouts=
[be65cca]33
[5b993e0]34TEST_PY = python3 ${builddir}/test.py
[f85bc15]35
[ef7d253]36# applies to both programs
[b8f6002]37AM_CFLAGS = $(if $(test), 2> $(test), ) \
38        -g \
39        -Wall \
40        -Wno-unused-function \
41        -quiet @CFA_FLAGS@ \
[f806b61]42        -DIN_DIR="${abs_srcdir}/.in/"
[7c03d6d]43
[575a6e5]44AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}
[50697b0]45CC = @CFACC@
[ef7d253]46
[e16797c]47PRETTY_PATH=mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} &&
[f7d3215]48
[28582b2]49.PHONY: list .validate
[1e995d6]50.INTERMEDIATE: .validate .validate.cfa
[107b01a]51EXTRA_PROGRAMS = avl_test .dummy_hack # build but do not install
[44f44617]52
[107b01a]53avl_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
[2b10f95]54# automake doesn't know we still need C/CPP rules so pretend like we have a C program
55_dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp
[a0dcd2e]56
[73abe95]57#----------------------------------------------------------------------------------------------------------------
[927e9ce]58all-local :
[dcfedca]59        @+${TEST_PY} --debug=${debug}  --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} ${quick_test}
[df42128]60
61all-tests :
[dcfedca]62        @+${TEST_PY} --debug=${debug}  --install=${installed} --archive-errors=${archiveerrors} ${concurrent} ${timeouts} --all # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
[927e9ce]63
64clean-local :
[a6dd5b0]65        rm -f ${EXTRA_PROGRAMS}
[927e9ce]66
67list :
[f85bc15]68        @+${TEST_PY} --list ${concurrent}
[927e9ce]69
[1e995d6]70.validate: .validate.cfa
71        $(CFACOMPILE) .validate.cfa -fsyntax-only -Wall -Wextra -Werror
72
73.validate.cfa:
74        @echo "int main() { return 0; }" > ${@}
[28582b2]75
[107b01a]76# automake doesn't know we still need C rules so pretend like we have a C program
77.dummy_hack.c:
[28582b2]78        @echo "int main() { return 0; }" > ${@}
79
[2b10f95]80.dummy_hackxx.cpp:
81        @echo "int bar() { return 0; }" > ${@}
82
[026a0f5]83concurrency :
[a5121bf]84        @+${TEST_PY} --debug=${debug}  --install=${installed} -Iconcurrent
[026a0f5]85
[73abe95]86#----------------------------------------------------------------------------------------------------------------
[dc8511c]87
[e16797c]88# Use for all tests, make sure the path are correct and all flags are added
89CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g'))
[950f7a7]90
[e16797c]91# Use for tests that either generate an executable, print directyl to stdout or the make command is expected to fail
92CFATEST_STDOUT=$(CFACOMPILETEST) -o $(abspath ${@})
[d9b499c]93
[e16797c]94# Use for tests where the make command is expecte to succeed but the expected.txt should be compared to stderr
95CFATEST_STDERR=$(CFACOMPILETEST) 2> $(abspath ${@})
[d9b499c]96
[e16797c]97#----------------------------------------------------------------------------------------------------------------
[a843067]98
[e16797c]99# implicit rule so not all test require a rule
100% : %.cfa $(CFACC)
101        $(CFATEST_STDOUT)
[f7d3215]102
[e16797c]103% : %.cpp
104        $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
[4c8f86b]105
[f7d3215]106#------------------------------------------------------------------------------
[e16797c]107# TARGET WITH STANDARD RULE BUT CUSTOM FLAGS
108#------------------------------------------------------------------------------
109# Expected failures
110declarationSpecifier_FLAGS= -CFA -XCFA -p
111gccExtensions_FLAGS= -CFA -XCFA -p
112extension_FLAGS= -CFA -XCFA -p
113attributes_FLAGS= -CFA -XCFA -p
114functions_FLAGS= -CFA -XCFA -p
115KRfunctions_FLAGS= -CFA -XCFA -p
116gmp_FLAGS= -lgmp
[dc8511c]117
[e16797c]118#------------------------------------------------------------------------------
119# Expected failures
120completeTypeError_FLAGS= -DERR1
[486341f]121
[e16797c]122#------------------------------------------------------------------------------
123# CUSTOM TARGET
124#------------------------------------------------------------------------------
[1e995d6]125typedefRedef-ERR1: typedefRedef.cfa $(CFACC)
[e16797c]126        $(CFATEST_STDOUT) -DERR1
[b93a3de]127
[1e995d6]128alloc-ERROR: alloc.cfa $(CFACC)
[e16797c]129        $(CFATEST_STDOUT) -DERR1
[e2c70ab]130
[1e995d6]131nested-types-ERR1: nested-types.cfa $(CFACC)
[e16797c]132        $(CFATEST_STDOUT) -DERR1
[49e1275]133
[1e995d6]134nested-types-ERR2: nested-types.cfa $(CFACC)
[e16797c]135        $(CFATEST_STDOUT) -DERR2
[49e1275]136
[107b01a]137raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC)
[e16797c]138        $(CFATEST_STDOUT) -DERR1
[cdbfab0]139
[107b01a]140raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC)
[e16797c]141        $(CFATEST_STDOUT) -DERR2
[80e8582]142
[107b01a]143raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC)
[e16797c]144        $(CFATEST_STDOUT) -DERR1
[80e8582]145
[107b01a]146raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC)
[e16797c]147        $(CFATEST_STDOUT) -DERR1
148
149#builtins
150builtins/sync: builtins/sync.cfa $(CFACC)
151        $(CFATEST_STDERR) -fsyntax-only
[80e8582]152
[1feb535f]153# Warnings
[107b01a]154warnings/self-assignment: warnings/self-assignment.cfa $(CFACC)
[e16797c]155        $(CFATEST_STDERR) -fsyntax-only
Note: See TracBrowser for help on using the repository browser.