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