geometry.index test: rtree exceptions test divided into smaller ones.

[SVN r84046]
This commit is contained in:
Adam Wulkiewicz 2013-04-25 14:09:02 +00:00
parent affba8cc35
commit 195fe88899
6 changed files with 88 additions and 29 deletions

View File

@ -6,8 +6,16 @@
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt) # http://www.boost.org/LICENSE_1_0.txt)
test-suite boost-geometry-index-rtree-exceptions rule test_all
: {
[ run rtree_exceptions.cpp ] local all_rules = ;
;
for local fileb in [ glob *.cpp ]
{
all_rules += [ run $(fileb) ] ;
}
return $(all_rules) ;
}
test-suite boost-geometry-index-rtree-exceptions : [ test_all r ] ;

View File

@ -0,0 +1,20 @@
// Boost.Geometry Index
// Unit Test
// Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
// Use, modification and distribution is subject to 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)
#include <rtree/exceptions/test_exceptions.hpp>
int test_main(int, char* [])
{
test_rtree_value_exceptions< bgi::linear<4, 2> >();
test_rtree_value_exceptions(bgi::dynamic_linear(4, 2));
test_rtree_elements_exceptions< bgi::linear_throwing<4, 2> >();
return 0;
}

View File

@ -0,0 +1,20 @@
// Boost.Geometry Index
// Unit Test
// Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
// Use, modification and distribution is subject to 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)
#include <rtree/exceptions/test_exceptions.hpp>
int test_main(int, char* [])
{
test_rtree_value_exceptions< bgi::quadratic<4, 2> >();
test_rtree_value_exceptions(bgi::dynamic_quadratic(4, 2));
test_rtree_elements_exceptions< bgi::quadratic_throwing<4, 2> >();
return 0;
}

View File

@ -0,0 +1,20 @@
// Boost.Geometry Index
// Unit Test
// Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
// Use, modification and distribution is subject to 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)
#include <rtree/exceptions/test_exceptions.hpp>
int test_main(int, char* [])
{
test_rtree_value_exceptions< bgi::rstar<4, 2, 0, 2> >();
test_rtree_value_exceptions(bgi::dynamic_rstar(4, 2, 0, 2));
test_rtree_elements_exceptions< bgi::rstar_throwing<4, 2, 0, 2> >();
return 0;
}

View File

@ -1,15 +1,22 @@
// Boost.Geometry Index // Boost.Geometry Index
// Unit Test //
// R-tree nodes based on runtime-polymorphism, storing static-size containers
// test version throwing exceptions on creation
//
// Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland. // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
//
// Use, modification and distribution is subject to the Boost Software License, // Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <rtree/exceptions/test_rtree_exceptions.hpp> #ifndef BOOST_GEOMETRY_INDEX_TEST_RTREE_EXCEPTIONS_HPP
#define BOOST_GEOMETRY_INDEX_TEST_RTREE_EXCEPTIONS_HPP
#include <rtree/test_rtree.hpp>
#include <rtree/exceptions/test_throwing.hpp>
#include <rtree/exceptions/test_throwing_node.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/point.hpp> #include <boost/geometry/geometries/point.hpp>
#include <boost/geometry/geometries/box.hpp> #include <boost/geometry/geometries/box.hpp>
@ -162,18 +169,4 @@ void test_rtree_elements_exceptions(Parameters const& parameters = Parameters())
} }
} }
int test_main(int, char* []) #endif // BOOST_GEOMETRY_INDEX_TEST_RTREE_EXCEPTIONS_HPP
{
test_rtree_value_exceptions< bgi::linear<4, 2> >();
test_rtree_value_exceptions(bgi::dynamic_linear(4, 2));
test_rtree_value_exceptions< bgi::quadratic<4, 2> >();
test_rtree_value_exceptions(bgi::dynamic_quadratic(4, 2));
test_rtree_value_exceptions< bgi::rstar<4, 2, 0, 2> >();
test_rtree_value_exceptions(bgi::dynamic_rstar(4, 2, 0, 2));
test_rtree_elements_exceptions< bgi::linear_throwing<4, 2> >();
test_rtree_elements_exceptions< bgi::quadratic_throwing<4, 2> >();
test_rtree_elements_exceptions< bgi::rstar_throwing<4, 2, 0, 2> >();
return 0;
}

View File

@ -9,10 +9,8 @@
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GEOMETRY_INDEX_TEST_RTREE_EXCEPTIONS_HPP #ifndef BOOST_GEOMETRY_INDEX_TEST_RTREE_THROWING_NODE_HPP
#define BOOST_GEOMETRY_INDEX_TEST_RTREE_EXCEPTIONS_HPP #define BOOST_GEOMETRY_INDEX_TEST_RTREE_THROWING_NODE_HPP
#include <rtree/test_rtree.hpp>
#include <boost/geometry/index/detail/rtree/node/dynamic_visitor.hpp> #include <boost/geometry/index/detail/rtree/node/dynamic_visitor.hpp>
@ -292,4 +290,4 @@ struct create_node<
}}} // namespace boost::geometry::index }}} // namespace boost::geometry::index
#endif // BOOST_GEOMETRY_INDEX_TEST_RTREE_EXCEPTIONS_HPP #endif // BOOST_GEOMETRY_INDEX_TEST_RTREE_THROWING_NODE_HPP