From c47fd1722a6e923ce42cf041517ee78bc84b489c Mon Sep 17 00:00:00 2001 From: Vissarion Fisikopoulos Date: Mon, 12 Aug 2024 00:56:21 +0300 Subject: [PATCH] Fix cmake ci script --- .github/workflows/cmake.yml | 5 +++++ index/test/CMakeLists.txt | 17 +++++++++++++++++ index/test/algorithms/CMakeLists.txt | 19 +++++++++++++++++++ index/test/rtree/CMakeLists.txt | 19 +++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 index/test/CMakeLists.txt create mode 100644 index/test/algorithms/CMakeLists.txt create mode 100644 index/test/rtree/CMakeLists.txt diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index ed517a14ac..162d1eef87 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -93,9 +93,14 @@ jobs: - name: Build tests with cmake run: | + pwd + ls rm -rf * cmake -DBUILD_TESTING=ON .. cmake --build . --target tests - name: Run tests + run: | + pwd + cd __build ctest --output-on-failure --no-tests=error diff --git a/index/test/CMakeLists.txt b/index/test/CMakeLists.txt new file mode 100644 index 0000000000..755fcc47cc --- /dev/null +++ b/index/test/CMakeLists.txt @@ -0,0 +1,17 @@ +# Boost.Geometry +# Copyright (c) 2024, Oracle and/or its affiliates. +# Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle +# 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) + +foreach(item IN ITEMS + minmax_heap + varray_old + varray + ) + boost_geometry_add_unit_test("index" ${item}) +endforeach() + +add_subdirectory(algorithms) +add_subdirectory(rtree) \ No newline at end of file diff --git a/index/test/algorithms/CMakeLists.txt b/index/test/algorithms/CMakeLists.txt new file mode 100644 index 0000000000..15f808bb58 --- /dev/null +++ b/index/test/algorithms/CMakeLists.txt @@ -0,0 +1,19 @@ +# Boost.Geometry +# Copyright (c) 2024, Oracle and/or its affiliates. +# Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle +# 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) + +foreach(item IN ITEMS + content + intersection_content # this tests overlap() too + is_valid + margin + #minmaxdist + union_content + segment_intersection + path_intersection + ) + boost_geometry_add_unit_test("index" ${item}) +endforeach() \ No newline at end of file diff --git a/index/test/rtree/CMakeLists.txt b/index/test/rtree/CMakeLists.txt new file mode 100644 index 0000000000..0df65b6b11 --- /dev/null +++ b/index/test/rtree/CMakeLists.txt @@ -0,0 +1,19 @@ +# Boost.Geometry +# Copyright (c) 2024, Oracle and/or its affiliates. +# Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle +# 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) + +foreach(item IN ITEMS + rtree_contains_point + rtree_epsilon + rtree_insert_remove + rtree_intersects_geom + rtree_move_pack + rtree_non_cartesian + rtree_values + #compile-fail rtree_values_invalid + ) + boost_geometry_add_unit_test("index" ${item}) +endforeach() \ No newline at end of file