Switch tests to not rely on requires checks

This commit is contained in:
Glen Fernandes 2021-10-27 01:41:40 -04:00
parent 0565456622
commit 12f5f51427
7 changed files with 53 additions and 7 deletions

View File

@ -8,7 +8,6 @@
import modules ;
import testing ;
import ../../config/checks/config : requires ;
# quick test (for CI)
run quick.cpp ;
@ -270,12 +269,12 @@ run sv_lt_test.cpp ;
run sv_stream_insert_test.cpp ;
run sv_conversion_test.cpp ;
run span_test.cpp : : : [ requires cxx11_constexpr cxx11_decltype ] ;
run span_types_test.cpp : : : [ requires cxx11_constexpr cxx11_decltype ] ;
run span_constructible_test.cpp : : : [ requires cxx11_constexpr cxx11_decltype ] ;
run span_deduction_guide_test.cpp : : : [ requires cpp_deduction_guides ] ;
run as_bytes_test.cpp : : : [ requires cpp_lib_byte ] ;
run as_writable_bytes_test.cpp : : : [ requires cpp_lib_byte ] ;
run span_test.cpp ;
run span_types_test.cpp ;
run span_constructible_test.cpp ;
run span_deduction_guide_test.cpp ;
run as_bytes_test.cpp ;
run as_writable_bytes_test.cpp ;
use-project /boost/core/swap : ./swap ;
build-project ./swap ;

View File

@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <cstddef>
#ifdef __cpp_lib_byte
#include <boost/core/span.hpp>
#include <boost/core/lightweight_test.hpp>
@ -32,3 +34,9 @@ int main()
test_static();
return boost::report_errors();
}
#else
int main()
{
return 0;
}
#endif

View File

@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <cstddef>
#ifdef __cpp_lib_byte
#include <boost/core/span.hpp>
#include <boost/core/lightweight_test.hpp>
@ -32,3 +34,9 @@ int main()
test_static();
return boost::report_errors();
}
#else
int main()
{
return 0;
}
#endif

View File

@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_CONSTEXPR) && !defined(BOOST_NO_CXX11_DECLTYPE)
#include <boost/core/span.hpp>
#include <boost/core/lightweight_test_trait.hpp>
@ -190,3 +192,9 @@ int main()
test_assign();
return boost::report_errors();
}
#else
int main()
{
return 0;
}
#endif

View File

@ -5,6 +5,7 @@ Copyright 2019 Glen Joseph Fernandes
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#ifdef __cpp_deduction_guides
#include <boost/core/span.hpp>
#include <boost/core/lightweight_test.hpp>
@ -107,3 +108,9 @@ int main()
test_span_static();
return boost::report_errors();
}
#else
int main()
{
return 0;
}
#endif

View File

@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_CONSTEXPR) && !defined(BOOST_NO_CXX11_DECLTYPE)
#include <boost/core/span.hpp>
#include <boost/core/lightweight_test.hpp>
@ -423,3 +425,9 @@ int main()
test_end_span();
return boost::report_errors();
}
#else
int main()
{
return 0;
}
#endif

View File

@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_CONSTEXPR) && !defined(BOOST_NO_CXX11_DECLTYPE)
#include <boost/core/span.hpp>
#include <boost/core/lightweight_test_trait.hpp>
@ -126,3 +128,9 @@ int main()
test_const_reverse_iterator();
return boost::report_errors();
}
#else
int main()
{
return 0;
}
#endif