# 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 ;
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 ] ;