early-access version 3088

This commit is contained in:
pineappleEA
2022-11-05 15:35:56 +01:00
parent 4e4fc25ce3
commit b601909c6d
35519 changed files with 5996896 additions and 860 deletions

View File

@@ -0,0 +1,41 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision$
//
// Description : shared library usage variant with custom init test
// ***************************************************************************
// Boost.Test
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
bool init_unit_test() {
boost::unit_test::framework::master_test_suite().p_name.value = "Custom init func";
return true;
}
//____________________________________________________________________________//
int main(int argc, char* argv[])
{
return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
}
//____________________________________________________________________________//
// EOF

View File

@@ -0,0 +1,35 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision$
//
// Description : shared library usage variant with custom main test
// ***************************************************************************
// Boost.Test
#define BOOST_TEST_MODULE shared library test
#define BOOST_TEST_NO_MAIN
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
int main(int argc, char* argv[])
{
return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
}
//____________________________________________________________________________//
// EOF

View File

@@ -0,0 +1,27 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision$
//
// Description : shared library usage variant test
// ***************************************************************************
// Boost.Test
#define BOOST_TEST_MODULE shared library test
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
// EOF

View File

@@ -0,0 +1,35 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision$
//
// Description : header-only usage variant with custom init test
// ***************************************************************************
// Boost.Test
#define BOOST_TEST_ALTERNATIVE_INIT_API
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
bool init_unit_test() {
boost::unit_test::framework::master_test_suite().p_name.value = "Custom init func";
return true;
}
//____________________________________________________________________________//
// EOF

View File

@@ -0,0 +1,32 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// Description : header-only usage variant with custom main test
// ***************************************************************************
// Boost.Test
#define BOOST_TEST_MODULE header only test
#define BOOST_TEST_NO_MAIN
#define BOOST_TEST_ALTERNATIVE_INIT_API
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
int main(int argc, char* argv[])
{
return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
}
//____________________________________________________________________________//
// EOF

View File

@@ -0,0 +1,38 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// Description : header-only usage variant with multiple translation units test
// ***************************************************************************
// this test requires that the linking has not been manipulated
// Since this is way impossible to make it work from B2, the undef of the
// auto linking variables is done here in the source.
// should be done before any include and in all translation units
#if defined(BOOST_TEST_NO_LIB)
#undef BOOST_TEST_NO_LIB
#endif
#if defined(BOOST_ALL_NO_LIB)
#undef BOOST_ALL_NO_LIB
#endif
#define BOOST_TEST_MODULE header-only multiunit test
#include <boost/test/included/unit_test.hpp>
#if defined(BOOST_TEST_NO_LIB) || defined(BOOST_ALL_NO_LIB)
#error BOOST_TEST_NO_LIB/BOOST_ALL_NO_LIB defined (post boost inclusion)!!
#endif
BOOST_AUTO_TEST_CASE( test1 )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
// EOF

View File

@@ -0,0 +1,37 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
// Description : header-only usage variant with multiple translation units test
// ***************************************************************************
// this test requires that the linking has not been manipulated
// Since this is way impossible to make it work from B2, the undef of the
// auto linking variables is done here in the source.
// should be done before any include and in all translation units
#if defined(BOOST_TEST_NO_LIB)
#undef BOOST_TEST_NO_LIB
#endif
#if defined(BOOST_ALL_NO_LIB)
#undef BOOST_ALL_NO_LIB
#endif
#include <boost/test/unit_test.hpp>
#if defined(BOOST_TEST_NO_LIB) || defined(BOOST_ALL_NO_LIB)
#error BOOST_TEST_NO_LIB/BOOST_ALL_NO_LIB defined (post boost inclusion)!!
#endif
BOOST_AUTO_TEST_CASE( test2 )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
// EOF

View File

@@ -0,0 +1,24 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// Description : header-only usage variant test
// ***************************************************************************
// Boost.Test
#define BOOST_TEST_MODULE header only test
#include <boost/test/included/unit_test.hpp>
using namespace boost::unit_test;
BOOST_AUTO_TEST_CASE( test )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
// EOF

View File

@@ -0,0 +1,35 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision$
//
// Description : static library usage variant with custom init test
// ***************************************************************************
// Boost.Test
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
boost::unit_test::test_suite*
init_unit_test_suite( int /*argc*/, char* [] /*argv*/ ) {
boost::unit_test::framework::master_test_suite().p_name.value = "Custom init func";
return 0;
}
//____________________________________________________________________________//
// EOF

View File

@@ -0,0 +1,27 @@
// (C) Copyright Gennadiy Rozental 2001-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision$
//
// Description : static library usage variant test
// ***************************************************************************
// Boost.Test
#define BOOST_TEST_MODULE static library test
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test )
{
int i = 1;
BOOST_CHECK( i*i == 1 );
}
//____________________________________________________________________________//
// EOF