]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/geometry/test/robustness/overlay/areal_areal/intersection_pies.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / geometry / test / robustness / overlay / areal_areal / intersection_pies.cpp
index 2312d4cb29c528134a4a51860879397b2e611dc9..760d975bd40401ebcdb7b246d1e5dd29134d4403 100644 (file)
@@ -1,7 +1,7 @@
 // Boost.Geometry (aka GGL, Generic Geometry Library)
 // Robustness Test
 
-// Copyright (c) 2009-2020 Barend Gehrels, Amsterdam, the Netherlands.
+// Copyright (c) 2009-2021 Barend Gehrels, Amsterdam, the Netherlands.
 
 // Use, modification and distribution is subject to the Boost Software License,
 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
@@ -9,6 +9,10 @@
 
 #define BOOST_GEOMETRY_NO_BOOST_TEST
 
+#ifndef BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE
+#define BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE
+#endif
+
 #include <test_overlay_p_q.hpp>
 
 #include <sstream>
@@ -256,8 +260,10 @@ int main(int argc, char** argv)
             ("help", "Help message")
             ("multi", po::value<bool>(&multi)->default_value(false), "Multiple tangencies at one point")
             ("diff", po::value<bool>(&settings.also_difference)->default_value(false), "Include testing on difference")
+#if ! defined(BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE)
             ("ccw", po::value<bool>(&ccw)->default_value(false), "Counter clockwise polygons")
             ("open", po::value<bool>(&open)->default_value(false), "Open polygons")
+#endif
             ("wkt", po::value<bool>(&settings.wkt)->default_value(false), "Create a WKT of the inputs, for all tests")
             ("svg", po::value<bool>(&settings.svg)->default_value(false), "Create a SVG for all tests")
         ;
@@ -273,6 +279,7 @@ int main(int argc, char** argv)
         }
 
         // template par's are: CoordinateType, Clockwise, Closed
+#if ! defined(BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE)
         if (ccw && open)
         {
             test_all<default_test_type, false, false>(multi, single_selftangent, settings);
@@ -286,6 +293,7 @@ int main(int argc, char** argv)
             test_all<default_test_type, true, false>(multi, single_selftangent, settings);
         }
         else
+#endif
         {
             test_all<default_test_type, true, true>(multi, single_selftangent, settings);
         }