# Copyright 2018-2024 Emil Dotchevski and Reverge Studios, Inc. # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) import testing ; variant leaf_debug_capture0 : debug : BOOST_LEAF_CFG_CAPTURE=0 ; variant leaf_release_capture0 : release : BOOST_LEAF_CFG_CAPTURE=0 ; variant leaf_debug_diag0 : debug : BOOST_LEAF_CFG_DIAGNOSTICS=0 ; variant leaf_release_diag0 : release : BOOST_LEAF_CFG_DIAGNOSTICS=0 ; variant leaf_debug_embedded : debug : BOOST_LEAF_EMBEDDED off off ; variant leaf_release_embedded : release : BOOST_LEAF_EMBEDDED off off ; variant leaf_debug_single_header : debug : BOOST_LEAF_TEST_SINGLE_HEADER ; variant leaf_release_single_header : release : BOOST_LEAF_TEST_SINGLE_HEADER ; project : default-build 11 multi : requirements /boost/config//boost_config /boost/exception//boost_exception BOOST_LEAF_BOOST_AVAILABLE windows:_CRT_SECURE_NO_WARNINGS single:BOOST_LEAF_NO_THREADS gcc:"-Wno-delete-non-virtual-dtor -Wno-parentheses" clang:"-Wno-unused-variable -Wno-delete-non-virtual-dtor -Wno-non-virtual-dtor -Wno-dangling-else" darwin:"-Wno-unused-variable -Wno-delete-non-virtual-dtor -Wno-non-virtual-dtor -Wno-delete-non-abstract-non-virtual-dtor -Wno-dangling-else" msvc:"-wd 4267 -wd 4996 -wd 4244" ; compile _hpp_common_test.cpp ; compile _hpp_config_test.cpp ; compile _hpp_context_test.cpp ; compile _hpp_diagnostics_test.cpp ; compile _hpp_error_test.cpp ; compile _hpp_exception_test.cpp ; compile _hpp_handle_errors_test.cpp ; compile _hpp_leaf_test.cpp ; compile _hpp_on_error_test.cpp ; compile _hpp_pred_test.cpp ; compile _hpp_result_test.cpp ; compile _hpp_serialization_json_encoder_nlohmann_test.cpp ; compile _hpp_serialization_json_encoder_boost_test.cpp ; compile _hpp_to_variant_test.cpp ; run boost_exception_test.cpp ; run BOOST_LEAF_ASSIGN_test.cpp ; run BOOST_LEAF_AUTO_test.cpp ; run BOOST_LEAF_CHECK_test.cpp ; run capture_exception_async_test.cpp ; run capture_exception_result_async_test.cpp ; run capture_exception_result_unload_test.cpp ; run capture_exception_state_test.cpp ; run capture_exception_unload_test.cpp ; run capture_result_async_test.cpp ; run capture_result_state_test.cpp ; run capture_result_unload_test.cpp ; run context_activator_test.cpp ; run context_deduction_test.cpp ; run ctx_handle_all_test.cpp ; run ctx_handle_some_test.cpp ; run ctx_remote_handle_all_test.cpp ; run ctx_remote_handle_some_test.cpp ; run diagnostics_test1.cpp ; run diagnostics_test2.cpp ; run diagnostics_test3.cpp ; run diagnostics_test4.cpp ; run diagnostics_test5.cpp ; run e_errno_test.cpp ; run e_LastError_test.cpp : : : windows:BOOST_LEAF_CFG_WIN32=1 ; run error_code_test.cpp : : : clang-darwin,off,off:"-Wl,-ld_classic" ; # workaround for macos-14 linker bug run error_id_test.cpp ; run exception_test.cpp ; run exception_to_result_test.cpp ; run function_traits_test.cpp ; run github_issue53_test.cpp ; run github_issue53x_test.cpp ; run handle_all_other_result_test.cpp ; run handle_all_test.cpp ; run handle_basic_test.cpp ; run handle_some_other_result_test.cpp ; run handle_some_test.cpp ; run json_encoder_nlohmann_test.cpp : : : clang,linux,2b:no clang,linux,23:no ; run json_encoder_boost_test.cpp /boost/json//boost_json : : : off:no off:no ; run match_member_test.cpp ; run match_test.cpp ; run match_value_test.cpp ; run multiple_errors_test.cpp ; run on_error_accumulate_basic_test.cpp ; run on_error_accumulate_nested_error_exception_test.cpp ; run on_error_accumulate_nested_error_result_test.cpp ; run on_error_accumulate_nested_new_error_exception_test.cpp ; run on_error_accumulate_nested_new_error_result_test.cpp ; run on_error_accumulate_nested_success_exception_test.cpp ; run on_error_accumulate_nested_success_result_test.cpp ; run on_error_alloc_fail_test.cpp ; run on_error_defer_basic_test.cpp ; run on_error_defer_nested_error_exception_test.cpp ; run on_error_defer_nested_error_result_test.cpp ; run on_error_defer_nested_new_error_exception_test.cpp ; run on_error_defer_nested_new_error_result_test.cpp ; run on_error_defer_nested_success_exception_test.cpp ; run on_error_defer_nested_success_result_test.cpp ; run on_error_dynamic_reserve_test1.cpp ; run on_error_dynamic_reserve_test2.cpp ; run on_error_dynamic_reserve_test3.cpp ; run on_error_preload_basic_test.cpp ; run on_error_preload_exception_test.cpp ; run on_error_preload_nested_error_exception_test.cpp ; run on_error_preload_nested_error_result_test.cpp ; run on_error_preload_nested_new_error_exception_test.cpp ; run on_error_preload_nested_new_error_result_test.cpp ; run on_error_preload_nested_success_exception_test.cpp ; run on_error_preload_nested_success_result_test.cpp ; run optional_test.cpp ; run type_name_test.cpp ; run print_test.cpp ; run result_bad_result_test.cpp ; run result_implicit_conversion_test.cpp ; run result_load_test.cpp ; run result_print_test.cpp ; run result_ref_test.cpp ; run result_state_test.cpp ; run tls_array_alloc_test1.cpp ; run tls_array_alloc_test2.cpp ; run tls_array_alloc_test3.cpp ; run tls_array_test.cpp ; run to_variant_test.cpp ; run try_capture_all_test.cpp ; run try_catch_error_id_test.cpp ; run try_catch_system_error_test.cpp ; run try_catch_test.cpp ; run try_exception_and_result_test.cpp ; lib so_dll_lib1 : so_dll_lib1.cpp : shared hidden windows:BOOST_LEAF_CFG_WIN32=2 : : windows:BOOST_LEAF_CFG_WIN32=2 ; lib so_dll_lib2 : so_dll_lib2.cpp : shared hidden windows:BOOST_LEAF_CFG_WIN32=2 : : windows:BOOST_LEAF_CFG_WIN32=2 ; run so_dll_test.cpp so_dll_lib1 so_dll_lib2 : : : windows:BOOST_LEAF_CFG_WIN32=2 ; lib so_dll_static_lib1 : so_dll_lib1.cpp : static BOOST_LEAF_SO_DLL_TEST_STATIC windows:BOOST_LEAF_CFG_WIN32=2 ; lib so_dll_static_lib2 : so_dll_lib2.cpp : static BOOST_LEAF_SO_DLL_TEST_STATIC windows:BOOST_LEAF_CFG_WIN32=2 ; run so_dll_test.cpp so_dll_static_lib1 so_dll_static_lib2 : : : BOOST_LEAF_SO_DLL_TEST_STATIC windows:BOOST_LEAF_CFG_WIN32=2 : so_dll_static_test ; compile-fail _compile-fail-arg_boost_error_info_1.cpp : off:no ; compile-fail _compile-fail-arg_boost_error_info_2.cpp : off:no ; compile-fail _compile-fail-arg_catch_1.cpp ; compile-fail _compile-fail-arg_catch_2.cpp ; compile-fail _compile-fail-arg_match_1.cpp ; compile-fail _compile-fail-arg_match_2.cpp ; compile-fail _compile-fail-arg_rvalue_ref.cpp ; compile-fail _compile-fail-BOOST_LEAF_ASSIGN.cpp ; compile-fail _compile-fail-BOOST_LEAF_AUTO.cpp ; compile-fail _compile-fail-diagnostic_details.cpp ; compile-fail _compile-fail-diagnostic_info.cpp ; compile-fail _compile-fail-error_info.cpp ; compile-fail _compile-fail-error_obj_ptr.cpp ; compile-fail _compile-fail-exception_1.cpp ; compile-fail _compile-fail-exception_2.cpp ; compile-fail _compile-fail-new_error.cpp ; compile-fail _compile-fail-serialization_json_encoder_boost.cpp ; compile-fail _compile-fail-serialization_json_encoder_nlohmann.cpp ; compile-fail _compile-fail-result_1.cpp ; compile-fail _compile-fail-result_2.cpp ; compile-fail _compile-fail-result_3.cpp ; compile-fail _compile-fail-result_4.cpp ; exe try_capture_all_exceptions : ../example/try_capture_all_exceptions.cpp : single:no off:no leaf_debug_capture0:no leaf_release_capture0:no ; exe try_capture_all_result : ../example/try_capture_all_result.cpp : single:no leaf_debug_capture0:no leaf_release_capture0:no leaf_debug_embedded:no leaf_release_embedded:no ; exe error_log : ../example/error_log.cpp ; exe error_trace : ../example/error_trace.cpp ; exe exception_to_result : ../example/exception_to_result.cpp : off:no ; exe print_file_exceptions : ../example/print_file/print_file_exceptions.cpp : off:no ; exe print_file_leaf_result : ../example/print_file/print_file_leaf_result.cpp ; exe print_file_system_result : ../example/print_file/print_file_system_result.cpp : leaf_debug_embedded:no leaf_release_embedded:no ; exe print_half : ../example/print_half.cpp ;