source: src/tests/Makefile.am @ e89f4b1

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since e89f4b1 was e68b3a8, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Fixed some inconsistencies in the srcdir/builddir for tests and libcfa

  • Property mode set to 100644
File size: 4.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
[2248dc7]13## Last Modified On : Wed Jun  6 16:42:20 2018
14## Update Count     : 49
[ef7d253]15###############################################################################
16
[f85bc15]17
[cc640aad]18debug=yes
19
[5cacf74]20quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
[be65cca]21
22if BUILD_CONCURRENCY
[0ad0c55]23concurrent=
[be65cca]24else
[0ad0c55]25concurrent='-Econcurrent'
[be65cca]26endif
27
[f85bc15]28TEST_PY = python ${srcdir}/test.py
29
[ef7d253]30# applies to both programs
[b5f9829]31DEBUG_FLAGS =
[7c03d6d]32
[934d200]33BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -I.
[b5f9829]34if !BUILD_DEBUG
35BUILD_FLAGS += -nodebug
36else
37if !BUILD_RELEASE
38BUILD_FLAGS += -debug
39else
[7c03d6d]40BUILD_FLAGS += ${DEBUG_FLAGS}
[b5f9829]41endif
42endif
43
[0ad0c55]44TEST_FLAGS = $(if $(test), 2> $(test), )
[44f44617]45AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS}
[e68b3a8]46CC = ${abs_top_builddir}/src/driver/cfa -DIN_DIR="${srcdir}/.in/"
[ef7d253]47
[927e9ce]48.PHONY : list
[293377c]49EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
[927e9ce]50
[e68b3a8]51fstream_test_SOURCES = fstream_test.c
[0ad0c55]52fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
[44f44617]53
[e68b3a8]54avl_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
[0ad0c55]55avl_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
[a0dcd2e]56
[927e9ce]57all-local :
[f85bc15]58        @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
[df42128]59
60all-tests :
[f85bc15]61        @+${TEST_PY} --all --debug=${debug} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
[927e9ce]62
63clean-local :
[a6dd5b0]64        rm -f ${EXTRA_PROGRAMS}
[927e9ce]65
66list :
[f85bc15]67        @+${TEST_PY} --list ${concurrent}
[927e9ce]68
[026a0f5]69concurrency :
[f85bc15]70        @+${TEST_PY} --debug=${debug} -Iconcurrent
[026a0f5]71
[f85bc15]72% : ${srcdir}/%.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]73        $(COMPILE) $(abspath ${<}) -o ${@}
[8f8af30]74
75declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]76        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[950f7a7]77
[8f8af30]78gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]79        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[d9b499c]80
[8f8af30]81extension : extension.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]82        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[d9b499c]83
[8f8af30]84attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]85        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[481115f]86
87functions: functions.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]88        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[c0aa336]89
[8f8af30]90KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]91        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[3a5131ed]92
[a843067]93sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]94        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[a843067]95
[8f8af30]96gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]97        $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
[4c8f86b3]98
[80e8582]99completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]100        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[486341f]101
[80e8582]102typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]103        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[b93a3de]104
[80e8582]105alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]106        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[70529dc]107
[e2c70ab]108fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]109        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[e2c70ab]110
[49e1275]111nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]112        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[49e1275]113
114nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]115        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
[49e1275]116
[80e8582]117# Constructor/destructor tests
118raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]119        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[cdbfab0]120
[80e8582]121raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]122        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
[80e8582]123
124raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]125        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[80e8582]126
127raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]128        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[80e8582]129
[1feb535f]130# Warnings
[6bc76537]131warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]132        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
[13073be]133
134#builtins
135builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@
[e68b3a8]136        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracBrowser for help on using the repository browser.