[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
|
---|
[956ad355] | 13 | ## Last Modified On : Thu Dec 19 22:11:14 2024
|
---|
| 14 | ## Update Count : 200
|
---|
[ef7d253] | 15 | ###############################################################################
|
---|
| 16 |
|
---|
[0c1b566] | 17 | AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names
|
---|
[107b01a] | 18 | ACLOCAL_AMFLAGS = -I automake
|
---|
[f85bc15] | 19 |
|
---|
[bcadb26] | 20 | include $(top_srcdir)/tools/build/cfa.make
|
---|
[dc8511c] | 21 |
|
---|
[e2887a9] | 22 | DEFAULT_INCLUDES = -I${abs_srcdir}
|
---|
[74cfe054] | 23 |
|
---|
[4daf79f] | 24 | debug ?= yes
|
---|
| 25 | installed ?= no
|
---|
[e3d4fd1] | 26 | ARCH = ${if ${arch},"--arch=${arch}"}
|
---|
| 27 | arch_support = "x86/x64/arm"
|
---|
[bdbf536] | 28 | TIMEOUT = ${if ${timeout},"--timeout=${timeout}"}
|
---|
[5007618] | 29 | GLOBAL_TIMEOUT = ${if ${global-timeout},"--global-timeout=${global-timeout}"}
|
---|
| 30 | ARCHIVE_ERRORS = ${if ${archive-errors},"--archive-errors=${archive-errors}"}
|
---|
| 31 |
|
---|
[e3d4fd1] | 32 | DEBUG_FLAGS = -debug -g -O0
|
---|
[e3a5a73] | 33 |
|
---|
[e3d4fd1] | 34 | quick_test = avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes meta/dumpable
|
---|
[be65cca] | 35 |
|
---|
[e2887a9] | 36 | TEST_PY = python3 ${builddir}/test.py
|
---|
[f85bc15] | 37 |
|
---|
[faf9e19] | 38 | WFLAGS_STRICT = \
|
---|
| 39 | -Wall \
|
---|
| 40 | -Wextra \
|
---|
[656c8ac] | 41 | -Werror
|
---|
[faf9e19] | 42 |
|
---|
| 43 | WFLAGS_LAX = \
|
---|
| 44 | -Wall \
|
---|
| 45 | -Werror=return-type \
|
---|
| 46 | -Wno-unused-function \
|
---|
| 47 | -Wno-psabi
|
---|
| 48 |
|
---|
| 49 | # These tests opt for lax wflags. (By default, new tests get strict wflags.)
|
---|
| 50 | # Indented list entries are finer-grained targets under the test.
|
---|
| 51 | # Making this association implicit would be ideal, but requires learning more automake than is affordable.
|
---|
[584612d] | 52 | WFLGAS_OPT_LAX = \
|
---|
[2853d6f] | 53 | ${WFLGAS_OPT_LAX_EXPECT_WARN} \
|
---|
| 54 | ${WFLGAS_OPT_LAX_TO_INVESTIGATE}
|
---|
| 55 |
|
---|
| 56 | # Tests checking that cfa-cc raises a certain warning, so -Werror is permanently inappropriate
|
---|
| 57 | WFLGAS_OPT_LAX_EXPECT_WARN = \
|
---|
| 58 | attr-priority \
|
---|
| 59 | warnings/self-assignment
|
---|
| 60 |
|
---|
| 61 | # Tests that need investigation from the CFA team about why they require lax wflags. Goal is to eliminate this list.
|
---|
| 62 | WFLGAS_OPT_LAX_TO_INVESTIGATE = \
|
---|
[faf9e19] | 63 | attributes \
|
---|
| 64 | collections/atomic_mpsc \
|
---|
| 65 | collections/queue \
|
---|
| 66 | collections/sequence \
|
---|
| 67 | collections/stack \
|
---|
| 68 | collections/vector-demo \
|
---|
| 69 | concurrency/actors/dynamic \
|
---|
| 70 | concurrency/actors/executor \
|
---|
| 71 | concurrency/actors/inherit \
|
---|
| 72 | concurrency/actors/inline \
|
---|
| 73 | concurrency/actors/matrixMultiply \
|
---|
| 74 | concurrency/actors/pingpong \
|
---|
| 75 | concurrency/actors/poison \
|
---|
| 76 | concurrency/actors/static \
|
---|
| 77 | concurrency/actors/types \
|
---|
| 78 | concurrency/channels/churn \
|
---|
| 79 | concurrency/channels/contend \
|
---|
| 80 | concurrency/channels/daisy_chain \
|
---|
| 81 | concurrency/channels/hot_potato \
|
---|
| 82 | concurrency/channels/pub_sub \
|
---|
| 83 | concurrency/futures/multi \
|
---|
| 84 | concurrency/futures/select_future \
|
---|
| 85 | concurrency/futures/typed \
|
---|
| 86 | concurrency/lockfree_stack \
|
---|
| 87 | concurrency/pthread/bounded_buffer \
|
---|
| 88 | concurrency/pthread/pthread_attr_test \
|
---|
| 89 | concurrency/pthread/pthread_demo_create_join \
|
---|
| 90 | concurrency/pthread/pthread_demo_lock \
|
---|
| 91 | concurrency/pthread/pthread_key_test \
|
---|
| 92 | concurrency/pthread/pthread_once_test \
|
---|
| 93 | concurrency/unified_locking/block_spin_lock \
|
---|
| 94 | concurrency/unified_locking/exp_backoff \
|
---|
| 95 | concurrency/unified_locking/fast_block_lock \
|
---|
| 96 | concurrency/unified_locking/futex_mutex \
|
---|
| 97 | concurrency/unified_locking/locks \
|
---|
| 98 | concurrency/unified_locking/mcs \
|
---|
| 99 | concurrency/unified_locking/mcs_block_spin_lock \
|
---|
| 100 | concurrency/unified_locking/mcs_spin \
|
---|
| 101 | concurrency/unified_locking/pthread_locks \
|
---|
| 102 | concurrency/unified_locking/simple_owner_lock \
|
---|
| 103 | concurrency/unified_locking/spin_queue_lock \
|
---|
| 104 | concurrency/unified_locking/timeout_lock \
|
---|
| 105 | concurrency/waituntil/all_types \
|
---|
| 106 | concurrency/waituntil/basic_else \
|
---|
| 107 | concurrency/waituntil/channel_close \
|
---|
| 108 | concurrency/waituntil/channels \
|
---|
| 109 | concurrency/waituntil/futures \
|
---|
| 110 | concurrency/waituntil/locks \
|
---|
| 111 | concurrency/waituntil/repeat_close \
|
---|
| 112 | concurrency/waituntil/timeout \
|
---|
| 113 | configs/usage \
|
---|
| 114 | ctrl-flow/labelledExit \
|
---|
| 115 | ctrl-flow/loop_else \
|
---|
| 116 | designations \
|
---|
| 117 | exceptions/cardgame \
|
---|
| 118 | exceptions/defaults \
|
---|
| 119 | exceptions/defaults-threads \
|
---|
| 120 | exceptions/try-leave-catch \
|
---|
| 121 | forall \
|
---|
| 122 | function-operator \
|
---|
| 123 | gmp \
|
---|
| 124 | identParamDeclarator \
|
---|
| 125 | include/includes \
|
---|
| 126 | include/stdincludes \
|
---|
| 127 | include/vector-collections \
|
---|
| 128 | include/vector-fstream \
|
---|
| 129 | include/vector-sequence \
|
---|
| 130 | io/away_fair \
|
---|
| 131 | io/comp_basic \
|
---|
| 132 | io/comp_fair \
|
---|
| 133 | io/manipulatorsInput \
|
---|
| 134 | io/manipulatorsInput-uchunk \
|
---|
| 135 | io/many_read \
|
---|
| 136 | math \
|
---|
| 137 | minmax \
|
---|
| 138 | operators \
|
---|
| 139 | poly-many-arsz \
|
---|
| 140 | polymorphism \
|
---|
| 141 | raii/ctor-autogen \
|
---|
| 142 | raii/dtor-early-exit \
|
---|
| 143 | raii/init_once \
|
---|
| 144 | references \
|
---|
| 145 | shortCircuit \
|
---|
| 146 | sum \
|
---|
| 147 | switch \
|
---|
| 148 | tuple/tupleCast \
|
---|
| 149 | tuple/tupleMember \
|
---|
[584612d] | 150 | userLiterals \
|
---|
[2853d6f] | 151 | vector
|
---|
[faf9e19] | 152 |
|
---|
| 153 | WFLAGS=${if ${filter ${WFLGAS_OPT_LAX},${@}},${WFLAGS_LAX},${WFLAGS_STRICT}}
|
---|
| 154 |
|
---|
[ef7d253] | 155 | # applies to both programs
|
---|
[d65f92c] | 156 | # since automake doesn't have support for CFA we have to
|
---|
[e2887a9] | 157 | AM_CFLAGS = ${if ${test}, 2> ${test}, } \
|
---|
| 158 | -fdebug-prefix-map=${abspath ${abs_srcdir}}= \
|
---|
[87fc1b4] | 159 | -fdebug-prefix-map=/tmp= \
|
---|
[0a19c51] | 160 | -fno-diagnostics-show-caret \
|
---|
[b8f6002] | 161 | -g \
|
---|
[faf9e19] | 162 | $(WFLAGS) \
|
---|
[b44959f] | 163 | -quiet @CFA_FLAGS@
|
---|
[7c03d6d] | 164 |
|
---|
[7215000] | 165 | AM_CFAFLAGS = -XCFA --deterministic-out
|
---|
| 166 |
|
---|
[158b026] | 167 | # get the desired cfa to test
|
---|
[e2887a9] | 168 | TARGET_CFA = ${if ${filter ${installed},yes}, @CFACC_INSTALL@, @CFACC@}
|
---|
[158b026] | 169 |
|
---|
[34e1494] | 170 | # adjust CC to current flags
|
---|
[e2887a9] | 171 | CC = LC_ALL=C ${if ${DISTCC_CFA_PATH},distcc ${DISTCC_CFA_PATH} ${ARCH_FLAGS} ,${TARGET_CFA} ${DEBUG_FLAGS} ${ARCH_FLAGS}}
|
---|
| 172 | CFACC = ${CC}
|
---|
[ef7d253] | 173 |
|
---|
[34e1494] | 174 | # get local binary for depedencies
|
---|
| 175 | CFACCBIN = @CFACC@
|
---|
| 176 |
|
---|
| 177 | # adjusted CC but without the actual distcc call
|
---|
[e2887a9] | 178 | CFACCLOCAL = ${if ${DISTCC_CFA_PATH},${DISTCC_CFA_PATH} ${ARCH_FLAGS} ,${TARGET_CFA} ${DEBUG_FLAGS} ${ARCH_FLAGS}}
|
---|
| 179 | CFACCLINK = ${CFACCLOCAL} -quiet ${if ${test}, 2> ${test}, } ${${shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g'}}
|
---|
[34e1494] | 180 |
|
---|
[e3d4fd1] | 181 | PRETTY_PATH = mkdir -p ${dir ${abspath ${@}}} && cd ${srcdir} &&
|
---|
[f7d3215] | 182 |
|
---|
[bdbf536] | 183 | .PHONY : concurrency list .validate .test_makeflags
|
---|
[e2887a9] | 184 | .INTERMEDIATE : .validate .validate.cfa .test_makeflags
|
---|
[fd4df379] | 185 | EXTRA_PROGRAMS = array-collections/boxed avl_test linkonce linking/mangling/anon .dummy_hack # build but do not install
|
---|
[a468e1e9] | 186 | EXTRA_DIST = test.py \
|
---|
| 187 | pybin/__init__.py \
|
---|
| 188 | pybin/print-core.gdb \
|
---|
| 189 | pybin/settings.py \
|
---|
| 190 | pybin/test_run.py \
|
---|
| 191 | pybin/tools.py \
|
---|
| 192 | long_tests.hfa \
|
---|
[fd4df379] | 193 | array-collections/boxed.hfa \
|
---|
| 194 | array-collections/boxed.cases.hfa \
|
---|
[d0fa494] | 195 | avltree/avl-private.h \
|
---|
| 196 | avltree/avl.h \
|
---|
| 197 | exceptions/except-io.hfa \
|
---|
| 198 | exceptions/with-threads.hfa \
|
---|
| 199 | meta/fork+exec.hfa \
|
---|
[c26bea2a] | 200 | concurrency/clib_tls.c \
|
---|
| 201 | concurrency/clib.c \
|
---|
| 202 | concurrency/unified_locking/mutex_test.hfa \
|
---|
[9c4330d5] | 203 | concurrency/channels/parallel_harness.hfa \
|
---|
[0b8c951d] | 204 | array-collections/dimexpr-match.hfa \
|
---|
[ee16f8fc] | 205 | array-collections/dimexpr-match-detail.sh \
|
---|
| 206 | array-collections/array-raii.hfa
|
---|
[a468e1e9] | 207 |
|
---|
| 208 | dist-hook:
|
---|
| 209 | echo "Gathering test files"
|
---|
[e2887a9] | 210 | for file in `${TEST_PY} --list-dist`; do \
|
---|
[b24cbaf] | 211 | if ls ${srcdir}/$${file} > /dev/null 2>&1; then \
|
---|
[e2887a9] | 212 | ${MKDIR_P} $$(dirname ${distdir}/$${file}); \
|
---|
[b24cbaf] | 213 | cp -df ${srcdir}/$${file} $$(dirname ${distdir}/$${file}); \
|
---|
[a468e1e9] | 214 | fi; \
|
---|
| 215 | done
|
---|
[44f44617] | 216 |
|
---|
[fd4df379] | 217 | array_collections_boxed_SOURCES = array-collections/boxed.main.cfa array-collections/boxed.bookend.cfa
|
---|
[107b01a] | 218 | avl_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
|
---|
[aff7e86] | 219 | linkonce_SOURCES = link-once/main.cfa link-once/partner.cfa
|
---|
[258aaab8] | 220 | linking_mangling_anon_SOURCES = linking/mangling/header.hfa linking/mangling/lib.cfa linking/mangling/main.cfa
|
---|
[2b10f95] | 221 | # automake doesn't know we still need C/CPP rules so pretend like we have a C program
|
---|
[b7fe2e6] | 222 | nodist__dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp
|
---|
[a0dcd2e] | 223 |
|
---|
[73abe95] | 224 | #----------------------------------------------------------------------------------------------------------------
|
---|
[4daf79f] | 225 |
|
---|
[5007618] | 226 | # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
|
---|
[c083c3d] | 227 | all-local : # This name is important to automake and implies the default build target.
|
---|
[d144c26] | 228 | @+${TEST_PY} --debug=${debug} --install=${installed} ${ARCHIVE_ERRORS} ${TIMEOUT} ${GLOBAL_TIMEOUT} ${ARCH} --all
|
---|
[4daf79f] | 229 |
|
---|
[5007618] | 230 | tests : all-local # synonym
|
---|
[4daf79f] | 231 |
|
---|
[5007618] | 232 | install : all-local # synonym, PAB only
|
---|
[df42128] | 233 |
|
---|
[4daf79f] | 234 | quick :
|
---|
[5007618] | 235 | @+${TEST_PY} --debug=${debug} --install=${installed} ${ARCHIVE_ERRORS} ${ARCH} ${quick_test}
|
---|
[e2887a9] | 236 |
|
---|
| 237 | concurrency :
|
---|
[5007618] | 238 | @+${TEST_PY} --debug=${debug} --install=${installed} ${ARCHIVE_ERRORS} ${TIMEOUT} ${GLOBAL_TIMEOUT} ${ARCH} -Iconcurrency
|
---|
[e2887a9] | 239 |
|
---|
| 240 | list :
|
---|
[bdbf536] | 241 | @+${TEST_PY} --list
|
---|
[e2887a9] | 242 |
|
---|
| 243 | help :
|
---|
| 244 | @echo "user targets:"
|
---|
| 245 | @echo " Run the complete test suite."
|
---|
[5007618] | 246 | @echo " $$ make (null) / tests [debug=yes/no] [installed=yes/no] [archive-errors=dump-dir] [timeout=seconds] [global-timeout=seconds] [arch=${arch_support}]"
|
---|
[e2887a9] | 247 | @echo ""
|
---|
| 248 | @echo " Run the short (quick) test suite."
|
---|
[5007618] | 249 | @echo " $$ make quick [debug=yes/no] [installed=yes/no] [archive-errors=dump-dir] [arch=${arch_support}]"
|
---|
[e2887a9] | 250 | @echo ""
|
---|
[bdbf536] | 251 | @echo " Run the concurrency test suite."
|
---|
[5007618] | 252 | @echo " $$ make concurrency [debug=yes/no] [installed=yes/no] [archive-errors=dump-dir] [timeout=seconds] [global-timeout=seconds] [arch=${arch_support}]"
|
---|
[e2887a9] | 253 | @echo ""
|
---|
| 254 | @echo " List all tests in the test suite."
|
---|
| 255 | @echo " $$ make list"
|
---|
[927e9ce] | 256 |
|
---|
[2a59655] | 257 | mostlyclean-local :
|
---|
[e2887a9] | 258 | find ${builddir} -not -path './__pycache__/*' -path '*.o' -delete
|
---|
| 259 | find ${builddir} -not -path './__pycache__/*' -path '*/.err/*.log' -delete
|
---|
| 260 | find ${builddir} -not -path './__pycache__/*' -path '*/.out/*.log' -delete
|
---|
| 261 | rm -f ${EXTRA_PROGRAMS}
|
---|
[2a59655] | 262 | rm -rf __pycache__
|
---|
| 263 |
|
---|
| 264 | distclean-local :
|
---|
[e2887a9] | 265 | find ${builddir} -path '*.Po' -delete
|
---|
[927e9ce] | 266 |
|
---|
[fc01219] | 267 | .test_makeflags:
|
---|
[e2887a9] | 268 | @echo "${MAKEFLAGS}"
|
---|
[fc01219] | 269 |
|
---|
[1e995d6] | 270 | .validate: .validate.cfa
|
---|
[e2887a9] | 271 | ${CFACOMPILE} .validate.cfa -fsyntax-only -Wall -Wextra -Werror
|
---|
[1e995d6] | 272 |
|
---|
| 273 | .validate.cfa:
|
---|
[e2887a9] | 274 | @echo "int main() { return 0; }" > ${@}
|
---|
[28582b2] | 275 |
|
---|
[107b01a] | 276 | # automake doesn't know we still need C rules so pretend like we have a C program
|
---|
| 277 | .dummy_hack.c:
|
---|
[e2887a9] | 278 | @echo "int main() { return 0; }" > ${@}
|
---|
[28582b2] | 279 |
|
---|
[2b10f95] | 280 | .dummy_hackxx.cpp:
|
---|
[e2887a9] | 281 | @echo "int bar() { return 0; }" > ${@}
|
---|
[026a0f5] | 282 |
|
---|
[73abe95] | 283 | #----------------------------------------------------------------------------------------------------------------
|
---|
[dc8511c] | 284 |
|
---|
[e16797c] | 285 | # Use for all tests, make sure the path are correct and all flags are added
|
---|
[e2887a9] | 286 | CFACOMPILETEST=${PRETTY_PATH} ${CFACOMPILE} ${shell realpath --relative-to=${srcdir} ${<}} ${${shell echo "${@}_FLAGSCFA" | sed 's/-\|\//_/g'}}
|
---|
[d9b499c] | 287 |
|
---|
[e16797c] | 288 | #----------------------------------------------------------------------------------------------------------------
|
---|
[a843067] | 289 |
|
---|
[e16797c] | 290 | # implicit rule so not all test require a rule
|
---|
[15f9c8e] | 291 | # split into two steps to support compiling remotely using distcc
|
---|
[34e1494] | 292 | # don't use distcc to do the linking because distcc doesn't do linking
|
---|
[e2887a9] | 293 | % : %.cfa ${CFACCBIN}
|
---|
| 294 | ${CFACOMPILETEST} -c -o ${abspath ${@}}.o -DIN_DIR="${abspath ${dir ${<}}}/.in/"
|
---|
| 295 | ${CFACCLINK} ${@}.o -o ${abspath ${@}}
|
---|
| 296 | rm ${abspath ${@}}.o
|
---|
[f7d3215] | 297 |
|
---|
[34e1494] | 298 | # implicit rule for c++ test
|
---|
| 299 | # convient for testing the testsuite itself but not actuall used
|
---|
[e16797c] | 300 | % : %.cpp
|
---|
[e2887a9] | 301 | ${PRETTY_PATH} ${CXXCOMPILE} ${shell realpath --relative-to=${srcdir} ${<}} -o ${abspath ${@}}
|
---|
[4c8f86b3] | 302 |
|
---|
[f7d3215] | 303 | #------------------------------------------------------------------------------
|
---|
[34e1494] | 304 | # TARGETS WITH CUSTOM FLAGS
|
---|
[e16797c] | 305 | #------------------------------------------------------------------------------
|
---|
[34e1494] | 306 | # custom libs
|
---|
| 307 | gmp_FLAGSLD= -lgmp
|
---|
[dc8511c] | 308 |
|
---|
[e16797c] | 309 | #------------------------------------------------------------------------------
|
---|
[34e1494] | 310 | # Generated code
|
---|
| 311 | GENERATED_CODE = declarationSpecifier gccExtensions extension attributes functions KRfunctions
|
---|
[e2887a9] | 312 | ${GENERATED_CODE} : % : %.cfa ${CFACCBIN}
|
---|
| 313 | ${CFACOMPILETEST} -CFA -XCFA -p -c -fsyntax-only -o ${abspath ${@}}
|
---|
[34e1494] | 314 |
|
---|
[e16797c] | 315 | #------------------------------------------------------------------------------
|
---|
| 316 | # CUSTOM TARGET
|
---|
| 317 | #------------------------------------------------------------------------------
|
---|
[66812dd] | 318 | # tests that just validate syntax and compiler output should be compared to stderr
|
---|
[e2887a9] | 319 | CFACOMPILE_SYNTAX = ${CFACOMPILETEST} -Wno-unused-variable -Wno-unused-label -c -fsyntax-only -o ${abspath ${@}}
|
---|
[40c81e5] | 320 |
|
---|
[2853d6f] | 321 | SYNTAX_ONLY_CODE = attr-priority warnings/self-assignment
|
---|
[afb15cf] | 322 |
|
---|
[e2887a9] | 323 | ${SYNTAX_ONLY_CODE} : % : %.cfa ${CFACCBIN}
|
---|
| 324 | ${CFACOMPILE_SYNTAX}
|
---|
| 325 | ${if ${test}, cp ${test} ${abspath ${@}}, }
|
---|
[87fc1b4] | 326 |
|
---|
[34e1494] | 327 | # expected failures
|
---|
[e6cfb4e2] | 328 | # use custom target since they require a custom define *and* have a name that doesn't match the file
|
---|
[a5aa5bf] | 329 |
|
---|
| 330 | array-ERR1 : array.cfa ${CFACCBIN}
|
---|
| 331 | ${CFACOMPILE_SYNTAX} -DERR1
|
---|
| 332 | -cp ${test} ${abspath ${@}}
|
---|
| 333 |
|
---|
| 334 | array-ERR2 : array.cfa ${CFACCBIN}
|
---|
| 335 | ${CFACOMPILE_SYNTAX} -DERR2
|
---|
| 336 | -cp ${test} ${abspath ${@}}
|
---|
| 337 |
|
---|
| 338 | array-ERR3 : array.cfa ${CFACCBIN}
|
---|
| 339 | ${CFACOMPILE_SYNTAX} -DERR3
|
---|
| 340 | -cp ${test} ${abspath ${@}}
|
---|
| 341 |
|
---|
[0b8c951d] | 342 | array-collections/dimexpr-match-c-ERRS : array-collections/dimexpr-match-c.cfa
|
---|
[0f4ac10] | 343 | ${CFACOMPILE_SYNTAX} -DERRS
|
---|
| 344 | -cp ${test} ${abspath ${@}}
|
---|
| 345 |
|
---|
[0b8c951d] | 346 | array-collections/dimexpr-match-cfa-ERRS : array-collections/dimexpr-match-cfa.cfa
|
---|
[0f4ac10] | 347 | ${CFACOMPILE_SYNTAX} -DERRS
|
---|
| 348 | -cp ${test} ${abspath ${@}}
|
---|
| 349 |
|
---|
[e2887a9] | 350 | alloc-ERROR : alloc.cfa ${CFACCBIN}
|
---|
| 351 | ${CFACOMPILE_SYNTAX} -DERR1
|
---|
| 352 | -cp ${test} ${abspath ${@}}
|
---|
[b93a3de] | 353 |
|
---|
[e2887a9] | 354 | init1-ERROR : init1.cfa ${CFACCBIN}
|
---|
| 355 | ${CFACOMPILE_SYNTAX} -DERR1
|
---|
| 356 | -cp ${test} ${abspath ${@}}
|
---|
[ee858bf] | 357 |
|
---|
[e2887a9] | 358 | typedefRedef-ERR1 : typedefRedef.cfa ${CFACCBIN}
|
---|
| 359 | ${CFACOMPILE_SYNTAX} -DERR1
|
---|
| 360 | -cp ${test} ${abspath ${@}}
|
---|
[e2c70ab] | 361 |
|
---|
[e2887a9] | 362 | nested-types-ERR1 : nested-types.cfa ${CFACCBIN}
|
---|
| 363 | ${CFACOMPILE_SYNTAX} -DERR1
|
---|
| 364 | -cp ${test} ${abspath ${@}}
|
---|
[49e1275] | 365 |
|
---|
[e2887a9] | 366 | nested-types-ERR2 : nested-types.cfa ${CFACCBIN}
|
---|
| 367 | ${CFACOMPILE_SYNTAX} -DERR2
|
---|
| 368 | -cp ${test} ${abspath ${@}}
|
---|
[49e1275] | 369 |
|
---|
[e2887a9] | 370 | raii/memberCtors-ERR1 : raii/memberCtors.cfa ${CFACCBIN}
|
---|
| 371 | ${CFACOMPILE_SYNTAX} -DERR1
|
---|
| 372 | -cp ${test} ${abspath ${@}}
|
---|
[cdbfab0] | 373 |
|
---|
[e2887a9] | 374 | raii/ctor-autogen-ERR1 : raii/ctor-autogen.cfa ${CFACCBIN}
|
---|
| 375 | ${CFACOMPILE_SYNTAX} -DERR1
|
---|
| 376 | -cp ${test} ${abspath ${@}}
|
---|
[80e8582] | 377 |
|
---|
[e2887a9] | 378 | raii/dtor-early-exit-ERR1 : raii/dtor-early-exit.cfa ${CFACCBIN}
|
---|
| 379 | ${CFACOMPILE_SYNTAX} -DERR1
|
---|
| 380 | -cp ${test} ${abspath ${@}}
|
---|
[80e8582] | 381 |
|
---|
[e2887a9] | 382 | raii/dtor-early-exit-ERR2 : raii/dtor-early-exit.cfa ${CFACCBIN}
|
---|
| 383 | ${CFACOMPILE_SYNTAX} -DERR2
|
---|
| 384 | -cp ${test} ${abspath ${@}}
|
---|
[e16797c] | 385 |
|
---|
[64f3b9f] | 386 | raii/partial-ERR1 : raii/partial.cfa ${CFACCBIN}
|
---|
| 387 | ${CFACOMPILE_SYNTAX} -DERR1
|
---|
| 388 | -cp ${test} ${abspath ${@}}
|
---|
| 389 |
|
---|
[5715d43] | 390 | # Exception Tests
|
---|
| 391 | # Test with libcfathread; it changes how storage works.
|
---|
| 392 |
|
---|
[e2887a9] | 393 | exceptions/%-threads : exceptions/%.cfa ${CFACCBIN}
|
---|
| 394 | ${CFACOMPILETEST} -include exceptions/with-threads.hfa -c -o ${abspath ${@}}.o
|
---|
| 395 | ${CFACCLOCAL} ${${shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g'}} ${abspath ${@}}.o -o ${abspath ${@}}
|
---|
[5715d43] | 396 |
|
---|
[673eb7a] | 397 | # Linking tests
|
---|
| 398 | # Meta tests to make sure we see linking errors (can't compile with -O2 since it may multiply number of calls)
|
---|
[e2887a9] | 399 | linking/linkerror : linking/linkerror.cfa ${CFACCBIN}
|
---|
| 400 | ${CFACOMPILETEST} -O0 -c -o ${abspath ${@}}.o
|
---|
| 401 | ${CFACCLINK} -O0 ${@}.o -o ${abspath ${@}}
|
---|
| 402 | rm ${abspath ${@}}.o
|
---|
[673eb7a] | 403 |
|
---|
[34e1494] | 404 | #------------------------------------------------------------------------------
|
---|
| 405 | # Other targets
|
---|