mirror of
https://github.com/boostorg/core.git
synced 2025-05-11 05:07:39 +00:00
Switch tests to not rely on requires checks
This commit is contained in:
parent
0565456622
commit
12f5f51427
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
import modules ;
|
import modules ;
|
||||||
import testing ;
|
import testing ;
|
||||||
import ../../config/checks/config : requires ;
|
|
||||||
|
|
||||||
# quick test (for CI)
|
# quick test (for CI)
|
||||||
run quick.cpp ;
|
run quick.cpp ;
|
||||||
@ -270,12 +269,12 @@ run sv_lt_test.cpp ;
|
|||||||
run sv_stream_insert_test.cpp ;
|
run sv_stream_insert_test.cpp ;
|
||||||
run sv_conversion_test.cpp ;
|
run sv_conversion_test.cpp ;
|
||||||
|
|
||||||
run span_test.cpp : : : [ requires cxx11_constexpr cxx11_decltype ] ;
|
run span_test.cpp ;
|
||||||
run span_types_test.cpp : : : [ requires cxx11_constexpr cxx11_decltype ] ;
|
run span_types_test.cpp ;
|
||||||
run span_constructible_test.cpp : : : [ requires cxx11_constexpr cxx11_decltype ] ;
|
run span_constructible_test.cpp ;
|
||||||
run span_deduction_guide_test.cpp : : : [ requires cpp_deduction_guides ] ;
|
run span_deduction_guide_test.cpp ;
|
||||||
run as_bytes_test.cpp : : : [ requires cpp_lib_byte ] ;
|
run as_bytes_test.cpp ;
|
||||||
run as_writable_bytes_test.cpp : : : [ requires cpp_lib_byte ] ;
|
run as_writable_bytes_test.cpp ;
|
||||||
|
|
||||||
use-project /boost/core/swap : ./swap ;
|
use-project /boost/core/swap : ./swap ;
|
||||||
build-project ./swap ;
|
build-project ./swap ;
|
||||||
|
@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
|
|||||||
Distributed under the Boost Software License, Version 1.0.
|
Distributed under the Boost Software License, Version 1.0.
|
||||||
(http://www.boost.org/LICENSE_1_0.txt)
|
(http://www.boost.org/LICENSE_1_0.txt)
|
||||||
*/
|
*/
|
||||||
|
#include <cstddef>
|
||||||
|
#ifdef __cpp_lib_byte
|
||||||
#include <boost/core/span.hpp>
|
#include <boost/core/span.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
@ -32,3 +34,9 @@ int main()
|
|||||||
test_static();
|
test_static();
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
|
|||||||
Distributed under the Boost Software License, Version 1.0.
|
Distributed under the Boost Software License, Version 1.0.
|
||||||
(http://www.boost.org/LICENSE_1_0.txt)
|
(http://www.boost.org/LICENSE_1_0.txt)
|
||||||
*/
|
*/
|
||||||
|
#include <cstddef>
|
||||||
|
#ifdef __cpp_lib_byte
|
||||||
#include <boost/core/span.hpp>
|
#include <boost/core/span.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
@ -32,3 +34,9 @@ int main()
|
|||||||
test_static();
|
test_static();
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
|
|||||||
Distributed under the Boost Software License, Version 1.0.
|
Distributed under the Boost Software License, Version 1.0.
|
||||||
(http://www.boost.org/LICENSE_1_0.txt)
|
(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/span.hpp>
|
||||||
#include <boost/core/lightweight_test_trait.hpp>
|
#include <boost/core/lightweight_test_trait.hpp>
|
||||||
|
|
||||||
@ -190,3 +192,9 @@ int main()
|
|||||||
test_assign();
|
test_assign();
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@ -5,6 +5,7 @@ Copyright 2019 Glen Joseph Fernandes
|
|||||||
Distributed under the Boost Software License, Version 1.0.
|
Distributed under the Boost Software License, Version 1.0.
|
||||||
(http://www.boost.org/LICENSE_1_0.txt)
|
(http://www.boost.org/LICENSE_1_0.txt)
|
||||||
*/
|
*/
|
||||||
|
#ifdef __cpp_deduction_guides
|
||||||
#include <boost/core/span.hpp>
|
#include <boost/core/span.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
@ -107,3 +108,9 @@ int main()
|
|||||||
test_span_static();
|
test_span_static();
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
|
|||||||
Distributed under the Boost Software License, Version 1.0.
|
Distributed under the Boost Software License, Version 1.0.
|
||||||
(http://www.boost.org/LICENSE_1_0.txt)
|
(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/span.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
@ -423,3 +425,9 @@ int main()
|
|||||||
test_end_span();
|
test_end_span();
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@ -5,6 +5,8 @@ Copyright 2019 Glen Joseph Fernandes
|
|||||||
Distributed under the Boost Software License, Version 1.0.
|
Distributed under the Boost Software License, Version 1.0.
|
||||||
(http://www.boost.org/LICENSE_1_0.txt)
|
(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/span.hpp>
|
||||||
#include <boost/core/lightweight_test_trait.hpp>
|
#include <boost/core/lightweight_test_trait.hpp>
|
||||||
|
|
||||||
@ -126,3 +128,9 @@ int main()
|
|||||||
test_const_reverse_iterator();
|
test_const_reverse_iterator();
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user