Skip to content

Commit

Permalink
Fix cmake ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
vissarion committed Aug 12, 2024
1 parent 7a34ada commit a104e7f
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,12 @@ jobs:
- name: Build tests with cmake
run: |
cd $BOOST_ROOT/libs/geometry/__build
rm -rf *
cmake -DBUILD_TESTING=ON ..
cmake --build . --target tests
- name: Run tests
run: |
cd $BOOST_ROOT/libs/geometry/__build
ctest --output-on-failure --no-tests=error
17 changes: 17 additions & 0 deletions index/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
19 changes: 19 additions & 0 deletions index/test/algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()
19 changes: 19 additions & 0 deletions index/test/rtree/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit a104e7f

Please sign in to comment.