]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/nowide/test/Jamfile.v2
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / nowide / test / Jamfile.v2
index 738dc0e594e2ae68d21c3c5eeacad79e93e8daa9..a8508f7eb934bbc993f494b74274476ac4e937b7 100644 (file)
@@ -1,22 +1,37 @@
 # Boost Nowide Library test Jamfile
 
-# Copyright Beman Dawes 2003, 2006, Artyom Beilis 2012
-
+# Copyright (c) 2003, 2006 Beman Dawes
+# Copyright (c) 2012 Artyom Beilis (Tonkikh)
+# Copyright (c) 2020 Alexander Grund
+# 
 # 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 accompanying file LICENSE or www.boost.org/LICENSE_1_0.txt)
 # See library home page at http://www.boost.org/libs/nowide
 
 import testing ;
+import config : requires ;
+
+rule require-windows ( properties * )
+{
+    local result ;
+    if ! <target-os>windows in $(properties)
+    {
+        result = <build>no ;
+    }
+    return $(result) ;
+}
 
 project : requirements
   <library>/boost/nowide//boost_nowide
   <warnings>pedantic
   <warnings-as-errors>on
-  <toolset>gcc:<cxxflags>-Wno-long-long
-  <toolset>darwin:<cxxflags>-Wno-long-long
-  <toolset>pathscale:<cxxflags>-Wno-long-long
-  <toolset>clang:<cxxflags>-Wno-long-long
+  [ requires
+      cxx11_defaulted_functions
+      cxx11_noexcept
+      cxx11_rvalue_references
+      cxx11_static_assert
+  ]
+  [ check-target-builds ../config//cxx11_moveable_fstreams "std::fstream is moveable and swappable" : : <build>no ] 
   ;
 
 lib shell32 ;
@@ -25,15 +40,17 @@ run test_codecvt.cpp ;
 run test_convert.cpp ;
 run test_env.cpp ;
 run test_env.cpp : : : <define>BOOST_NOWIDE_TEST_INCLUDE_WINDOWS=1 : test_env_win ;
-run test_fs.cpp : : : <library>/boost/filesystem//boost_filesystem/<warnings-as-errors>off ;
+run test_fs.cpp : : : <library>/boost/filesystem//boost_filesystem/<warnings-as-errors>off ;
 run test_fstream.cpp ;
 run test_fstream.cpp : : : <define>BOOST_NOWIDE_USE_FILEBUF_REPLACEMENT=1 <target-os>windows:<build>no : test_internal_fstream ;
 run test_fstream_cxx11.cpp  ;
 run test_fstream_cxx11.cpp : : : <define>BOOST_NOWIDE_USE_FILEBUF_REPLACEMENT=1 <target-os>windows:<build>no : test_internal_fstream_cxx11 ;
 run test_iostream.cpp ;
 run test_stackstring.cpp ;
+run test_stat.cpp ;
 run test_stdio.cpp ;
 run test_system.cpp : : : <define>BOOST_NOWIDE_TEST_USE_NARROW=1 <target-os>windows:<library>shell32 <target-os>darwin,<link>shared:<build>no : test_system_n ;
-run test_system.cpp : : : <define>BOOST_NOWIDE_TEST_USE_NARROW=0 <target-os>windows:<library>shell32 <build>no <target-os>windows:<build>yes : test_system_w ;
+run test_system.cpp : : : <define>BOOST_NOWIDE_TEST_USE_NARROW=0 <target-os>windows:<library>shell32 <conditional>@require-windows : test_system_w ;
+run test_traits.cpp : : : <define>BOOST_NOWIDE_TEST_BFS_PATH <library>/boost/filesystem//boost_filesystem/<warnings-as-errors>off ;
 
-compile benchmark_fstream.cpp : <define>BOOST_NOWIDE_USE_WIN_FSTREAM=1 <library>/boost/chrono//boost_chrono/ ;
+compile benchmark_fstream.cpp : <define>BOOST_NOWIDE_USE_WIN_FSTREAM=1 [ requires cxx11_hdr_chrono ] ;