2006-11-07 02:19:13 +00:00
|
|
|
# Boost System Library test Jamfile
|
|
|
|
|
|
|
|
# Copyright Beman Dawes 2003, 2006
|
2021-09-16 18:47:05 +03:00
|
|
|
# Copyright 2017-2021 Peter Dimov
|
2006-11-07 02:19:13 +00:00
|
|
|
|
|
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
|
|
# See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt
|
|
|
|
|
|
|
|
# See library home page at http://www.boost.org/libs/system
|
|
|
|
|
2017-06-13 20:12:21 +03:00
|
|
|
import testing ;
|
2018-01-21 18:21:34 +02:00
|
|
|
|
2021-09-16 18:47:05 +03:00
|
|
|
project
|
|
|
|
: default-build
|
|
|
|
|
|
|
|
<warnings>extra
|
|
|
|
|
|
|
|
: requirements
|
|
|
|
|
2024-08-09 20:26:47 -05:00
|
|
|
<library>/boost/system//boost_system
|
2024-07-20 21:26:25 -05:00
|
|
|
<library>/boost/core//boost_core
|
2024-03-11 08:38:16 -05:00
|
|
|
|
2021-09-16 18:47:05 +03:00
|
|
|
<toolset>msvc:<warnings-as-errors>on
|
|
|
|
<toolset>gcc:<warnings-as-errors>on
|
|
|
|
<toolset>clang:<warnings-as-errors>on
|
2022-02-06 22:29:28 +02:00
|
|
|
|
|
|
|
<toolset>gcc-4.4:<cxxflags>-Wno-sign-compare
|
2021-09-16 18:47:05 +03:00
|
|
|
;
|
|
|
|
|
2019-02-27 06:23:16 +02:00
|
|
|
rule system-run ( sources + )
|
|
|
|
{
|
|
|
|
local result ;
|
|
|
|
|
|
|
|
result += [ run $(sources) ] ;
|
|
|
|
result += [ run $(sources) : : : <library>/boost/system//boost_system <link>static : $(sources[1]:B)_static ] ;
|
|
|
|
result += [ run $(sources) : : : <library>/boost/system//boost_system <link>shared : $(sources[1]:B)_shared ] ;
|
|
|
|
result += [ run $(sources) : : : <define>BOOST_NO_ANSI_APIS : $(sources[1]:B)_no_ansi ] ;
|
|
|
|
result += [ run $(sources) : : : <define>BOOST_SYSTEM_USE_UTF8 : $(sources[1]:B)_utf8 ] ;
|
2022-09-08 18:32:26 +03:00
|
|
|
result += [ run $(sources) : : : <define>BOOST_SYSTEM_DISABLE_THREADS : $(sources[1]:B)_nthr ] ;
|
2018-01-21 18:21:34 +02:00
|
|
|
|
2019-02-27 06:23:16 +02:00
|
|
|
return $(result) ;
|
2018-01-22 07:54:00 +02:00
|
|
|
}
|
2018-01-21 18:21:34 +02:00
|
|
|
|
2018-09-21 03:16:55 +03:00
|
|
|
system-run error_code_test.cpp ;
|
|
|
|
system-run error_code_user_test.cpp ;
|
|
|
|
system-run system_error_test.cpp ;
|
|
|
|
|
2019-04-24 21:15:39 +03:00
|
|
|
lib throw_test : throw_test.cpp : <link>shared:<define>THROW_DYN_LINK=1 ;
|
|
|
|
|
2019-02-27 06:23:16 +02:00
|
|
|
run dynamic_link_test.cpp throw_test : : : <link>shared : throw_test_shared ;
|
2018-09-21 03:16:55 +03:00
|
|
|
|
|
|
|
system-run initialization_test.cpp ;
|
2019-02-27 06:23:16 +02:00
|
|
|
system-run header_only_test.cpp ;
|
2018-09-21 03:16:55 +03:00
|
|
|
|
|
|
|
run config_test.cpp : : : <test-info>always_show_run_output ;
|
|
|
|
|
2019-02-27 06:23:16 +02:00
|
|
|
system-run std_interop_test.cpp ;
|
2018-09-21 03:16:55 +03:00
|
|
|
system-run std_mismatch_test.cpp ;
|
|
|
|
|
2019-04-24 21:15:39 +03:00
|
|
|
lib single_instance_lib1 : single_instance_1.cpp : <link>shared:<define>SINGLE_INSTANCE_DYN_LINK ;
|
|
|
|
lib single_instance_lib2 : single_instance_2.cpp : <link>shared:<define>SINGLE_INSTANCE_DYN_LINK ;
|
|
|
|
|
2018-09-21 03:16:55 +03:00
|
|
|
system-run single_instance_test.cpp single_instance_1.cpp single_instance_2.cpp ;
|
|
|
|
run single_instance_test.cpp single_instance_lib1 single_instance_lib2 : : : <link>static : single_instance_lib_static ;
|
|
|
|
run single_instance_test.cpp single_instance_lib1 single_instance_lib2 : : : <link>shared : single_instance_lib_shared ;
|
|
|
|
|
|
|
|
system-run before_main_test.cpp ;
|
2022-06-18 23:07:41 +03:00
|
|
|
|
|
|
|
run-fail throws_assign_fail.cpp : : :
|
|
|
|
# GCC 12 catches this at compile time with a warning
|
|
|
|
<toolset>gcc,<variant>release:<build>no ;
|
|
|
|
|
2019-02-27 06:23:16 +02:00
|
|
|
system-run constexpr_test.cpp ;
|
2018-09-21 03:16:55 +03:00
|
|
|
system-run win32_hresult_test.cpp ;
|
|
|
|
|
|
|
|
system-run error_category_test.cpp ;
|
|
|
|
system-run generic_category_test.cpp ;
|
2018-09-21 04:51:50 +03:00
|
|
|
system-run system_category_test.cpp ;
|
2018-09-22 15:40:19 +03:00
|
|
|
system-run after_main_test.cpp ;
|
2018-09-22 17:34:40 +03:00
|
|
|
system-run failed_test.cpp ;
|
2023-12-31 02:25:26 +02:00
|
|
|
run failed_constexpr_test.cpp : : :
|
|
|
|
# GCC w/ UBSAN doesn't consider `cat_ != 0` a constant expression
|
|
|
|
<toolset>gcc,<undefined-sanitizer>norecover:<build>no ;
|
2017-09-05 04:52:08 +03:00
|
|
|
|
|
|
|
# Quick (CI) test
|
|
|
|
run quick.cpp ;
|
2018-10-02 04:34:33 +03:00
|
|
|
|
2021-10-02 17:25:31 +03:00
|
|
|
run warnings_test.cpp
|
|
|
|
: : : <warnings>pedantic
|
2020-06-17 00:45:29 +03:00
|
|
|
<toolset>msvc:<warnings-as-errors>on
|
|
|
|
<toolset>gcc:<warnings-as-errors>on
|
|
|
|
<toolset>clang:<warnings-as-errors>on ;
|
2019-04-24 18:19:21 +03:00
|
|
|
|
2019-04-24 21:15:39 +03:00
|
|
|
lib std_single_instance_lib1 : std_single_instance_1.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
|
|
|
|
lib std_single_instance_lib2 : std_single_instance_2.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
|
|
|
|
|
|
|
|
system-run std_single_instance_test.cpp std_single_instance_1.cpp std_single_instance_2.cpp ;
|
|
|
|
run std_single_instance_test.cpp std_single_instance_lib1 std_single_instance_lib2 : : : <link>static : std_single_instance_lib_static ;
|
2019-04-25 00:31:25 +03:00
|
|
|
run std_single_instance_test.cpp std_single_instance_lib1 std_single_instance_lib2 : : : <link>shared <define>STD_SINGLE_INSTANCE_SHARED : std_single_instance_lib_shared ;
|
2020-08-26 22:46:27 +03:00
|
|
|
|
|
|
|
run is_error_code_enum_test.cpp ;
|
|
|
|
run is_error_condition_enum_test.cpp ;
|
2020-08-27 00:31:45 +03:00
|
|
|
run errc_test.cpp ;
|
2020-08-28 02:00:20 +03:00
|
|
|
run errc_test2.cpp ;
|
2020-08-27 03:38:30 +03:00
|
|
|
run error_category_test2.cpp ;
|
2020-08-27 15:45:07 +03:00
|
|
|
run error_condition_test.cpp ;
|
2020-08-27 16:15:10 +03:00
|
|
|
run error_condition_test2.cpp ;
|
2020-08-27 16:35:32 +03:00
|
|
|
run generic_category_test2.cpp ;
|
2020-08-27 17:41:33 +03:00
|
|
|
run generic_category_test3.cpp ;
|
2020-08-27 17:22:24 +03:00
|
|
|
run system_category_test2.cpp ;
|
2020-08-27 17:47:06 +03:00
|
|
|
run system_category_test3.cpp ;
|
2020-10-06 03:19:48 +03:00
|
|
|
|
|
|
|
run windows_error_test.cpp ;
|
|
|
|
run linux_error_test.cpp ;
|
2021-06-13 18:42:59 +03:00
|
|
|
|
|
|
|
link errc_test3.cpp ;
|
2021-06-13 18:58:50 +03:00
|
|
|
|
|
|
|
run snprintf_test.cpp ;
|
2021-06-13 19:47:37 +03:00
|
|
|
|
|
|
|
run std_interop_test2.cpp ;
|
|
|
|
run std_interop_test3.cpp ;
|
|
|
|
run std_interop_test4.cpp ;
|
2021-06-14 18:07:06 +03:00
|
|
|
run std_interop_test5.cpp
|
|
|
|
: : :
|
|
|
|
# crash on xenial, but the real g++ 4.8 on both centos 7 and trusty works
|
|
|
|
<toolset>gcc-4.8:<build>no
|
2021-06-14 19:04:15 +03:00
|
|
|
<toolset>gcc-4.9:<build>no
|
2021-06-14 18:07:06 +03:00
|
|
|
;
|
|
|
|
|
2021-06-14 04:09:24 +03:00
|
|
|
run std_interop_test6.cpp ;
|
2021-06-14 22:25:31 +03:00
|
|
|
run std_interop_test7.cpp ;
|
2021-06-15 01:43:49 +03:00
|
|
|
run std_interop_test8.cpp ;
|
2021-06-15 01:59:51 +03:00
|
|
|
run std_interop_test9.cpp ;
|
2021-09-15 07:03:18 +03:00
|
|
|
|
|
|
|
run ec_location_test.cpp ;
|
2021-09-16 18:47:05 +03:00
|
|
|
|
2021-09-19 15:26:19 +03:00
|
|
|
run error_condition_test3.cpp ;
|
2021-09-19 15:41:20 +03:00
|
|
|
run error_code_test2.cpp ;
|
2021-09-20 17:41:34 +03:00
|
|
|
run system_error_test2.cpp ;
|
2021-09-21 15:57:39 +03:00
|
|
|
run std_interop_test10.cpp ;
|
2021-09-19 15:26:19 +03:00
|
|
|
|
2021-10-01 23:04:04 +03:00
|
|
|
run ec_location_test2.cpp ;
|
2021-10-02 14:41:27 +03:00
|
|
|
run ec_what_test.cpp ;
|
2021-10-02 15:00:40 +03:00
|
|
|
run system_error_test3.cpp ;
|
2021-10-01 23:04:04 +03:00
|
|
|
|
2021-10-11 02:02:22 +03:00
|
|
|
run std_interop_test11.cpp ;
|
|
|
|
|
2021-12-21 19:51:08 +02:00
|
|
|
run ec_wstream_test.cpp ;
|
|
|
|
|
2022-02-07 04:30:50 +02:00
|
|
|
run std_interop_test12.cpp ;
|
|
|
|
|
2022-02-09 20:41:34 +02:00
|
|
|
run errc_test4.cpp ;
|
|
|
|
|
2022-03-17 21:18:34 +02:00
|
|
|
run std_interop_test13.cpp ;
|
2022-03-17 21:22:22 +02:00
|
|
|
run std_interop_test14.cpp ;
|
2022-03-17 21:18:34 +02:00
|
|
|
|
2022-05-05 05:02:37 +03:00
|
|
|
run ec_location_test3.cpp ;
|
|
|
|
run ec_location_test4.cpp ;
|
|
|
|
|
2022-08-21 19:13:12 +03:00
|
|
|
compile constexpr_test2.cpp ;
|
|
|
|
|
2022-08-24 20:54:20 +03:00
|
|
|
run error_code_test3.cpp ;
|
2022-08-24 21:40:20 +03:00
|
|
|
run std_interop_test15.cpp ;
|
2022-08-24 20:54:20 +03:00
|
|
|
|
2022-12-10 18:24:34 +02:00
|
|
|
run win32_generic_test.cpp ;
|
|
|
|
|
2023-01-07 19:42:59 +02:00
|
|
|
run ec_hash_value_test.cpp ;
|
|
|
|
|
2023-01-19 05:46:11 +02:00
|
|
|
run std_interop_test16.cpp ;
|
|
|
|
|
2021-09-16 18:47:05 +03:00
|
|
|
# result
|
|
|
|
|
2024-01-17 07:17:30 +02:00
|
|
|
run result_default_construct.cpp ;
|
|
|
|
run result_value_construct.cpp ;
|
|
|
|
run result_error_construct.cpp ;
|
|
|
|
run result_copy_construct.cpp ;
|
|
|
|
run result_move_construct.cpp ;
|
|
|
|
run result_copy_assign.cpp ;
|
|
|
|
run result_move_assign.cpp ;
|
|
|
|
run result_value_access.cpp ;
|
|
|
|
run result_error_access.cpp ;
|
|
|
|
run result_swap.cpp : : : <toolset>gcc-10:<cxxflags>"-Wno-maybe-uninitialized" ;
|
|
|
|
run result_eq.cpp ;
|
|
|
|
run result_range_for.cpp ;
|
|
|
|
run result_value_construct2.cpp ;
|
|
|
|
run result_error_construct2.cpp ;
|
|
|
|
run result_errc_construct.cpp ;
|
|
|
|
run result_convert_construct.cpp ;
|
|
|
|
run result_typedefs.cpp ;
|
|
|
|
run result_value_construct3.cpp ;
|
|
|
|
run result_error_construct3.cpp ;
|
|
|
|
run result_emplace.cpp ;
|
|
|
|
run result_error_construct4.cpp ;
|
|
|
|
run result_value_construct4.cpp ;
|
|
|
|
run result_value_construct5.cpp ;
|
|
|
|
run result_error_move.cpp ;
|
|
|
|
run result_value_construct6.cpp ;
|
|
|
|
run result_value_construct7.cpp ;
|
|
|
|
run result_error_construct5.cpp ;
|
|
|
|
run result_or_value.cpp ;
|
|
|
|
compile-fail result_or_value_fail.cpp ;
|
|
|
|
compile-fail result_or_value_fail2.cpp ;
|
|
|
|
run result_or_fn0v.cpp ;
|
|
|
|
run result_or_fn0r.cpp ;
|
|
|
|
run result_and_fn1v.cpp ;
|
|
|
|
run result_and_fn1r.cpp ;
|
|
|
|
run result_and_eq_fn1v.cpp ;
|
|
|
|
run result_and_eq_fn1r.cpp ;
|
|
|
|
run result_in_place_use.cpp ;
|
2024-02-01 06:40:47 +02:00
|
|
|
run result_or_eq_value.cpp ;
|
2024-02-01 06:49:23 +02:00
|
|
|
run result_or_eq_fn0v.cpp ;
|
2024-02-01 07:18:41 +02:00
|
|
|
run result_or_eq_fn0r.cpp ;
|