]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/winapi/test/Jamfile.v2
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / winapi / test / Jamfile.v2
index 23352dd4382773f6e66baf3adadc015e3f0f9e04..28891e9693da53f2e6d8052f2dd2dc818e01d195 100644 (file)
@@ -34,10 +34,10 @@ rule test_all
 {
    local all_rules = ;
    local file ;
-   local headers_path = [ path.make $(BOOST_ROOT)/libs/winapi/include/boost/detail ] ;
+   local headers_path = [ path.make $(BOOST_ROOT)/libs/winapi/include/boost/winapi ] ;
    for file in [ path.glob-tree $(headers_path) : *.hpp : detail ]
    {
-      local rel_file = [ path.relative-to $(headers_path) $(file) ] ;
+      local rel_file = [ path.relative-to [ path.parent $(headers_path) ] $(file) ] ;
       # Note: The test name starts with '~' in order to group these tests in the test report table, preferably at the end.
       #       All '/' are replaced with '-' because apparently test scripts have a problem with test names containing slashes.
       local test_name = [ regex.replace $(rel_file) "/" "-" ] ;
@@ -52,6 +52,27 @@ rule test_all
       all_rules += [ compile compile/windows_h_post.cpp : <define>"BOOST_WINAPI_TEST_HEADER=$(rel_file)" <dependency>$(file) : $(post_winh_test_name) ] ;
    }
 
+   headers_path = [ path.make $(BOOST_ROOT)/libs/winapi/include/boost/detail ] ;
+   for file in [ path.glob $(headers_path) : *.hpp : detail ]
+   {
+      local rel_file = [ path.relative-to $(headers_path) $(file) ] ;
+      local test_name = [ regex.replace $(rel_file) "/" "-" ] ;
+      local decl_test_name = ~hdr-decl-$(test_name) ;
+      local use_winh_test_name = ~hdr-use-winh-$(test_name) ;
+      local pre_winh_test_name = ~hdr-pre-winh-$(test_name) ;
+      local post_winh_test_name = ~hdr-post-winh-$(test_name) ;
+      #ECHO $(rel_file) ;
+      all_rules += [ compile compile/decl_header.cpp : <define>"BOOST_WINAPI_TEST_HEADER=detail/$(rel_file)" <dependency>$(file) : $(decl_test_name) ] ;
+      all_rules += [ compile compile/decl_header.cpp : <define>"BOOST_WINAPI_TEST_HEADER=detail/$(rel_file)" <define>"BOOST_USE_WINDOWS_H" <dependency>$(file) : $(use_winh_test_name) ] ;
+      all_rules += [ compile compile/windows_h_pre.cpp : <define>"BOOST_WINAPI_TEST_HEADER=detail/$(rel_file)" <dependency>$(file) : $(pre_winh_test_name) ] ;
+      all_rules += [ compile compile/windows_h_post.cpp : <define>"BOOST_WINAPI_TEST_HEADER=detail/$(rel_file)" <dependency>$(file) : $(post_winh_test_name) ] ;
+   }
+
+   for file in [ glob run/*.cpp ]
+   {
+      all_rules += [ run $(file) : : : <test-info>always_show_run_output ] ;
+   }
+
    #ECHO All rules: $(all_rules) ;
    return $(all_rules) ;
 }