From 695301487416b9a04ecc738ac88795462af289fa Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Tue, 19 Sep 2023 11:42:23 -0700 Subject: [PATCH] Update self-include tests to use a significantly shorter mangling scheme for msvc targets --- test/Jamfile.v2 | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 1ab8ba6f..9ee04f10 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -56,9 +56,16 @@ path-constant BOOST_UNORDERED_TEST_DIR : . ; run quick.cpp ; -local include_root = [ path.make $(TOP)/../include ] ; +compile unordered/self_include_tests_obj.cpp + : BOOST_UNORDERED_HEADER="boost/unordered_map.hpp" + : tl_unordered_map_include_tests ; -local headers = [ path.glob-tree $(include_root)/boost : *.hpp ] ; +compile unordered/self_include_tests_obj.cpp + : BOOST_UNORDERED_HEADER="boost/unordered_set.hpp" + : tl_unordered_set_include_tests ; + +local include_root = [ path.make $(TOP)/../include ] ; +local headers = [ path.glob-tree $(include_root)/boost/unordered : *.hpp ] ; local paths ; local sanitized_paths ; @@ -66,14 +73,22 @@ local sanitized_paths ; for local header in $(headers) { local path = [ path.relative-to $(include_root) $(header) ] ; - local sanitized = [ regex.replace $(path) "[/.\\]" "_" ] ; + + local sanitized = [ path.relative-to "$(include_root)/boost/unordered" $(header) ] ; + sanitized = [ regex.replace $(sanitized) ".hpp" "" ] ; + sanitized = [ regex.replace $(sanitized) "[/.\\]" "_" ] ; + paths += $(path) ; sanitized_paths += $(sanitized) ; + compile unordered/self_include_tests_obj.cpp - : BOOST_UNORDERED_HEADER="$(path)" : foa_$(sanitized)_self_include_tests ; + : BOOST_UNORDERED_HEADER="$(path)" : $(sanitized)_include_tests ; } -alias foa_self_include_tests : foa_$(sanitized_paths)_self_include_tests ; +alias include_tests + : tl_unordered_map_include_tests + tl_unordered_set_include_tests + $(sanitized_paths)_include_tests ; local FCA_TESTS = allocator_traits @@ -305,7 +320,6 @@ alias foa_tests : foa_scoped_allocator foa_serialization_tests foa_mmap_tests - foa_self_include_tests ; local CFOA_TESTS =