mirror of
https://github.com/boostorg/contract.git
synced 2026-02-26 16:42:19 +00:00
292 lines
11 KiB
Plaintext
292 lines
11 KiB
Plaintext
|
|
# Copyright (C) 2008-2016 Lorenzo Caminiti
|
|
# Distributed under the Boost Software License, Version 1.0 (see accompanying
|
|
# file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt).
|
|
# See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html
|
|
|
|
subdir-usage ;
|
|
|
|
test-suite constructor
|
|
:
|
|
[ subdir-run-with-no constructor : decl_pre_all ]
|
|
[ subdir-run-with-no constructor : decl_pre_ends ]
|
|
[ subdir-run-with-no constructor : decl_pre_mid ]
|
|
[ subdir-run-with-no constructor : decl_pre_none ]
|
|
|
|
[ subdir-run-with-no constructor : decl_post_all ]
|
|
[ subdir-run-with-no constructor : decl_post_ends ]
|
|
[ subdir-run-with-no constructor : decl_post_mid ]
|
|
[ subdir-run-with-no constructor : decl_post_none ]
|
|
|
|
[ subdir-run-with-no constructor : decl_entry_static_inv_all ]
|
|
[ subdir-run-with-no constructor : decl_entry_static_inv_ends ]
|
|
[ subdir-run-with-no constructor : decl_entry_static_inv_mid ]
|
|
[ subdir-run-with-no constructor : decl_entry_static_inv_none ]
|
|
|
|
[ subdir-run-with-no constructor : decl_exit_static_inv_all ]
|
|
[ subdir-run-with-no constructor : decl_exit_static_inv_ends ]
|
|
[ subdir-run-with-no constructor : decl_exit_static_inv_mid ]
|
|
[ subdir-run-with-no constructor : decl_exit_static_inv_none ]
|
|
|
|
# No decl_entry_static_inv_... for constructors.
|
|
|
|
[ subdir-run-with-no constructor : decl_exit_inv_all ]
|
|
[ subdir-run-with-no constructor : decl_exit_inv_ends ]
|
|
[ subdir-run-with-no constructor : decl_exit_inv_mid ]
|
|
[ subdir-run-with-no constructor : decl_exit_inv_none ]
|
|
|
|
[ subdir-run-with-no constructor : contracts ]
|
|
[ subdir-run-with-no constructor : access ]
|
|
[ subdir-run-with-no constructor : ifdef_contracts ]
|
|
|
|
[ subdir-run-with-no constructor : body_throw ]
|
|
[ subdir-run-with-no constructor : old_throw ]
|
|
|
|
[ subdir-compile-fail constructor : pre_error ]
|
|
;
|
|
|
|
test-suite destructor
|
|
:
|
|
# No decl_pre_... for destructors.
|
|
|
|
[ subdir-run-with-no destructor : decl_post_all ]
|
|
[ subdir-run-with-no destructor : decl_post_ends ]
|
|
[ subdir-run-with-no destructor : decl_post_mid ]
|
|
[ subdir-run-with-no destructor : decl_post_none ]
|
|
|
|
[ subdir-run-with-no destructor : decl_entry_static_inv_all ]
|
|
[ subdir-run-with-no destructor : decl_entry_static_inv_ends ]
|
|
[ subdir-run-with-no destructor : decl_entry_static_inv_mid ]
|
|
[ subdir-run-with-no destructor : decl_entry_static_inv_none ]
|
|
|
|
[ subdir-run-with-no destructor : decl_exit_static_inv_all ]
|
|
[ subdir-run-with-no destructor : decl_exit_static_inv_ends ]
|
|
[ subdir-run-with-no destructor : decl_exit_static_inv_mid ]
|
|
[ subdir-run-with-no destructor : decl_exit_static_inv_none ]
|
|
|
|
[ subdir-run-with-no destructor : decl_entry_inv_all ]
|
|
[ subdir-run-with-no destructor : decl_entry_inv_ends ]
|
|
[ subdir-run-with-no destructor : decl_entry_inv_mid ]
|
|
[ subdir-run-with-no destructor : decl_entry_inv_none ]
|
|
|
|
# No decl_exit_inv_... for destructors.
|
|
|
|
[ subdir-run-with-no destructor : contracts ]
|
|
[ subdir-run-with-no destructor : access ]
|
|
[ subdir-run-with-no destructor : ifdef_contracts ]
|
|
|
|
[ subdir-run-with-no destructor : body_throw ]
|
|
[ subdir-run-with-no destructor : old_throw ]
|
|
|
|
[ subdir-compile-fail destructor : pre_error ]
|
|
;
|
|
|
|
test-suite public_function
|
|
:
|
|
[ subdir-run-with-no public_function : decl_pre_all ]
|
|
[ subdir-run-with-no public_function : decl_pre_ends ]
|
|
[ subdir-run-with-no public_function : decl_pre_mid ]
|
|
[ subdir-run-with-no public_function : decl_pre_none ]
|
|
|
|
[ subdir-run-with-no public_function : decl_post_all ]
|
|
[ subdir-run-with-no public_function : decl_post_ends ]
|
|
[ subdir-run-with-no public_function : decl_post_mid ]
|
|
[ subdir-run-with-no public_function : decl_post_none ]
|
|
|
|
[ subdir-run-with-no public_function : decl_entry_static_inv_all ]
|
|
[ subdir-run-with-no public_function : decl_entry_static_inv_ends ]
|
|
[ subdir-run-with-no public_function : decl_entry_static_inv_mid ]
|
|
[ subdir-run-with-no public_function : decl_entry_static_inv_none ]
|
|
|
|
[ subdir-run-with-no public_function : decl_exit_static_inv_all ]
|
|
[ subdir-run-with-no public_function : decl_exit_static_inv_ends ]
|
|
[ subdir-run-with-no public_function : decl_exit_static_inv_mid ]
|
|
[ subdir-run-with-no public_function : decl_exit_static_inv_none ]
|
|
|
|
[ subdir-run-with-no public_function : decl_entry_inv_all ]
|
|
[ subdir-run-with-no public_function : decl_entry_inv_ends ]
|
|
[ subdir-run-with-no public_function : decl_entry_inv_mid ]
|
|
[ subdir-run-with-no public_function : decl_entry_inv_none ]
|
|
|
|
[ subdir-run-with-no public_function : decl_exit_inv_all ]
|
|
[ subdir-run-with-no public_function : decl_exit_inv_ends ]
|
|
[ subdir-run-with-no public_function : decl_exit_inv_mid ]
|
|
[ subdir-run-with-no public_function : decl_exit_inv_none ]
|
|
|
|
[ subdir-run-with-no public_function : contracts ]
|
|
|
|
[ subdir-run-with-no public_function : virtual ]
|
|
[ subdir-run-with-no public_function : virtual_branch ]
|
|
[ subdir-run-with-no public_function : virtual_sparse ]
|
|
|
|
[ subdir-run-with-no public_function : protected ]
|
|
[ subdir-compile-fail public_function : protected_error ]
|
|
|
|
[ subdir-run-with-no public_function : access ]
|
|
[ subdir-run-with-no public_function : ifdef_contracts ]
|
|
|
|
[ subdir-run-with-no public_function : body_throw ]
|
|
[ subdir-run-with-no public_function : old_throw ]
|
|
|
|
[ subdir-run-with-no public_function : max_args0 ]
|
|
[ subdir-run-with-no public_function : max_args0_no_tva ]
|
|
[ subdir-run-with-no public_function : max_args1 ]
|
|
[ subdir-run-with-no public_function : max_args1_no_tva ]
|
|
[ subdir-run-with-no public_function : max_args2 ]
|
|
[ subdir-run-with-no public_function : max_args2_no_tva ]
|
|
[ subdir-run-with-no public_function : max_args ]
|
|
[ subdir-run-with-no public_function : max_args_no_tva ]
|
|
|
|
[ subdir-run-with-no public_function : max_bases ]
|
|
|
|
[ subdir-run-with-no public_function : overload ]
|
|
[ subdir-run-with-no public_function : overload_no_tva ]
|
|
|
|
[ subdir-compile-fail public_function : override_error ]
|
|
[ subdir-run-with-no public_function : override_permissive ]
|
|
|
|
[ subdir-run-with-no public_function : static ]
|
|
[ subdir-run-with-no public_function : static_body_throw ]
|
|
[ subdir-run-with-no public_function : static_old_throw ]
|
|
[ subdir-run-with-no public_function : static_no_contracts ]
|
|
;
|
|
|
|
test-suite invariant
|
|
:
|
|
[ subdir-run-with-no invariant : decl_static_cv_const ]
|
|
[ subdir-run-with-no invariant : decl_static_cv ]
|
|
[ subdir-run-with-no invariant : decl_cv_const ]
|
|
[ subdir-run-with-no invariant : decl_static_const ]
|
|
[ subdir-run-with-no invariant : decl_static ]
|
|
[ subdir-run-with-no invariant : decl_cv ]
|
|
[ subdir-run-with-no invariant : decl_const ]
|
|
[ subdir-run-with-no invariant : decl_nothing ]
|
|
|
|
[ subdir-compile-fail invariant : static_mutable_error ]
|
|
[ subdir-run-with-no invariant : static_mutable_permissive ]
|
|
[ subdir-compile-fail invariant : static_const_error ]
|
|
[ subdir-run-with-no invariant : static_const_permissive ]
|
|
[ subdir-compile-fail invariant : static_volatile_error ]
|
|
[ subdir-run-with-no invariant : static_volatile_permissive ]
|
|
[ subdir-compile-fail invariant : static_cv_error ]
|
|
[ subdir-run-with-no invariant : static_cv_permissive ]
|
|
|
|
[ subdir-compile-fail invariant : static_error ]
|
|
[ subdir-run-with-no invariant : static_permissive ]
|
|
[ subdir-compile-fail invariant : mutable_error ]
|
|
[ subdir-run-with-no invariant : mutable_permissive ]
|
|
[ subdir-compile-fail invariant : volatile_error ]
|
|
[ subdir-run-with-no invariant : volatile_permissive ]
|
|
;
|
|
|
|
test-suite function
|
|
:
|
|
[ subdir-run-with-no function : decl_pre_all ]
|
|
[ subdir-run-with-no function : decl_pre_none ]
|
|
|
|
[ subdir-run-with-no function : decl_post_all ]
|
|
[ subdir-run-with-no function : decl_post_none ]
|
|
|
|
[ subdir-run-with-no function : contracts ]
|
|
[ subdir-run-with-no function : ifdef_contracts ]
|
|
|
|
[ subdir-run-with-no function : body_throw ]
|
|
[ subdir-run-with-no function : old_throw ]
|
|
;
|
|
|
|
test-suite result
|
|
:
|
|
[ subdir-run-with-no result : mixed_optional ]
|
|
[ subdir-run-with-no result : mixed_optional_ref ]
|
|
|
|
[ subdir-compile-fail result : type_mismatch_error ]
|
|
;
|
|
|
|
test-suite old
|
|
:
|
|
[ subdir-run-with-no old : auto ]
|
|
|
|
[ subdir-run-with-no old : no_macros ]
|
|
[ subdir-run-with-no old : no_macros_noncopyable ]
|
|
|
|
[ subdir-compile-fail old : no_make_old_error ]
|
|
[ subdir-compile-fail old : no_make_old_noncopyable_error ]
|
|
|
|
[ subdir-run-with-no old : noncopyable ]
|
|
[ subdir-compile-fail old : noncopyable_error ]
|
|
;
|
|
|
|
test-suite disable
|
|
:
|
|
[ subdir-run-with-no disable : prog ]
|
|
[ subdir-run-with-no disable : prog_pre_disable_nothing ]
|
|
|
|
[ subdir-lib disable : lib_a :
|
|
<link>shared:<define>BOOST_CONTRACT_TEST_LIB_A_DYN_LINK ]
|
|
[ subdir-lib disable : lib_b : <library>disable-lib_a
|
|
<link>shared:<define>BOOST_CONTRACT_TEST_LIB_B_DYN_LINK ]
|
|
[ subdir-run-with-no disable : lib_ab :
|
|
<library>disable-lib_a <library>disable-lib_b ]
|
|
|
|
[
|
|
subdir-lib disable : lib_x
|
|
:
|
|
<link>shared:<define>BOOST_CONTRACT_TEST_LIB_X_DYN_LINK
|
|
# Test contracts in .cpp so never post (as NO_POST here).
|
|
<define>BOOST_CONTRACT_NO_POSTCONDITIONS
|
|
]
|
|
[
|
|
subdir-lib disable : lib_y
|
|
:
|
|
<library>disable-lib_x
|
|
<link>shared:<define>BOOST_CONTRACT_TEST_LIB_Y_DYN_LINK
|
|
# Test contracts in .hpp so can have post (even if NO_POST here).
|
|
<define>BOOST_CONTRACT_NO_POSTCONDITIONS
|
|
]
|
|
[ subdir-run-with-no disable : lib_xy :
|
|
<library>disable-lib_x <library>disable-lib_y ]
|
|
;
|
|
|
|
test-suite specify
|
|
:
|
|
[ subdir-run-with-no specify : pre_old_post ]
|
|
[ subdir-run-with-no specify : pre_old ]
|
|
[ subdir-run-with-no specify : old_post ]
|
|
[ subdir-run-with-no specify : pre_post ]
|
|
[ subdir-run-with-no specify : pre ]
|
|
[ subdir-run-with-no specify : old ]
|
|
[ subdir-run-with-no specify : post ]
|
|
[ subdir-run-with-no specify : nothing ]
|
|
|
|
[ subdir-run-with-no specify : no_guard ]
|
|
|
|
[ subdir-compile-fail specify : old_pre_error ]
|
|
[ subdir-compile-fail specify : post_old_error ]
|
|
[ subdir-compile-fail specify : post_pre_error ]
|
|
;
|
|
|
|
test-suite call_if
|
|
:
|
|
[ subdir-run call_if : true_ ]
|
|
[ subdir-run call_if : false_ ]
|
|
|
|
[ subdir-run call_if : true_void ]
|
|
[ subdir-run call_if : false_void ]
|
|
|
|
[ subdir-run call_if : equal_to ]
|
|
|
|
[ subdir-run-with-no call_if : check_if ]
|
|
[ subdir-compile-fail call_if : no_check_if_error ]
|
|
;
|
|
|
|
# C++14 supported only by Clang... so in its own test-suite and explicit.
|
|
test-suite call_if-cxx14
|
|
:
|
|
[ subdir-run call_if : equal_to_cxx14 :
|
|
<toolset>clang:<cxxflags>-std=c++1y ]
|
|
[ subdir-run call_if : advance_cxx14 :
|
|
<toolset>clang:<cxxflags>-std=c++1y ]
|
|
;
|
|
explicit call_if-cxx14 ;
|
|
|