]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/filesystem/test/Jamfile.v2
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / filesystem / test / Jamfile.v2
index 7d66e4c23e3f34500a1470fc5976ab8d49d1d560..8dccb9fad45c43b7c5fd314fdd8179ca5c56f6e3 100644 (file)
@@ -25,6 +25,20 @@ rule check-mklink ( properties * )
         if [ MATCH (MKLINK) : $(output[1]) ]
         {
             result = <define>BOOST_FILESYSTEM_HAS_MKLINK ;
+
+            if ! $(.annouced-mklink)
+            {
+                ECHO "    - Boost.Filesystem: mklink found" ;
+                .annouced-mklink = 1 ;
+            }
+        }
+        else
+        {
+            if ! $(.annouced-mklink)
+            {
+                ECHO "    - Boost.Filesystem: mklink not found" ;
+                .annouced-mklink = 1 ;
+            }
         }
     }
 
@@ -34,6 +48,10 @@ rule check-mklink ( properties * )
 
 project
     : requirements
+      <target-os>windows:<define>_SCL_SECURE_NO_WARNINGS
+      <target-os>windows:<define>_SCL_SECURE_NO_DEPRECATE
+      <target-os>windows:<define>_CRT_SECURE_NO_WARNINGS
+      <target-os>windows:<define>_CRT_SECURE_NO_DEPRECATE
       <library>/boost/filesystem//boost_filesystem
       <conditional>@check-mklink
     ;
@@ -54,31 +72,38 @@ if [ os.environ UBSAN ]
 
 run config_info.cpp : : : <link>shared <test-info>always_show_run_output ;
 run config_info.cpp : : : <link>static <test-info>always_show_run_output : config_info_static ;
-run convenience_test.cpp ;
+run convenience_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
 compile macro_default_test.cpp ;
 run odr1_test.cpp odr2_test.cpp ;
-run deprecated_test.cpp ;
-run fstream_test.cpp : : : $(VIS) ;
-run large_file_support_test.cpp ;
-run locale_info.cpp : : : <test-info>always_show_run_output ;
-run operations_test.cpp : : : <link>shared <test-info>always_show_run_output ;
-run operations_test.cpp : : : <link>static : operations_test_static ;
-run operations_unit_test.cpp : $(HERE) : : <link>shared <test-info>always_show_run_output ;
-run copy_test.cpp ;
-run path_test.cpp : : : <link>shared ;
-run path_test.cpp : : : <link>static : path_test_static ;
-run path_unit_test.cpp : : : <link>shared $(VIS) ;
-run path_unit_test.cpp : : : <link>static $(VIS) : path_unit_test_static ;
-run relative_test.cpp ;
-run ../example/simple_ls.cpp ;
-run ../example/file_status.cpp ;
-run foreach_test.cpp ;
+run deprecated_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=3 ;
+run fstream_test.cpp : : : $(VIS) <define>BOOST_FILESYSTEM_VERSION=4 ;
+run large_file_support_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
+run locale_info.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 <test-info>always_show_run_output ;
+run operations_test.cpp : : : <link>shared <define>BOOST_FILESYSTEM_VERSION=4 <test-info>always_show_run_output ;
+run operations_test.cpp : : : <link>static <define>BOOST_FILESYSTEM_VERSION=4 : operations_test_static ;
+run operations_unit_test.cpp : $(HERE) : : <link>shared <define>BOOST_FILESYSTEM_VERSION=4 <test-info>always_show_run_output ;
+run copy_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
+run path_test.cpp : : : <link>shared <define>BOOST_FILESYSTEM_VERSION=4 ;
+run path_test.cpp : : : <link>static <define>BOOST_FILESYSTEM_VERSION=4 : path_test_static ;
+run path_test.cpp : : : <link>shared <define>BOOST_FILESYSTEM_VERSION=3 : path_test_v3 ;
+run path_unit_test.cpp : : : <link>shared $(VIS) <define>BOOST_FILESYSTEM_VERSION=4 ;
+run path_unit_test.cpp : : : <link>static $(VIS) <define>BOOST_FILESYSTEM_VERSION=4 : path_unit_test_static ;
+run path_unit_test.cpp : : : <link>shared $(VIS) <define>BOOST_FILESYSTEM_VERSION=3 : path_unit_test_v3 ;
+run relative_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
+run ../example/simple_ls.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
+run ../example/file_status.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
+run foreach_test.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
 
 # `quick` target (for CI)
-run quick.cpp ;
+run quick.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
 
 # Tests for specific issues
-run issues/70-71-copy.cpp ;
+run issues/70-71-copy.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
 
-run issues/99_canonical_with_junction_point.cpp ;
-run issues/reparse_tag_file_placeholder.cpp ;
+run issues/99_canonical_with_junction_point.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
+run issues/reparse_tag_file_placeholder.cpp : : : <define>BOOST_FILESYSTEM_VERSION=4 ;
+
+if [ os.environ BOOST_FILESYSTEM_TEST_WITH_EXAMPLES ]
+{
+    build-project ../example ;
+}