Skip to content

Commit

Permalink
fix: copy data required for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Becheler committed Jan 24, 2024
1 parent 8d03586 commit 20daf23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ find_package(range-v3)
# mp-units
find_package(mp-units CONFIG REQUIRED)

# Copy the data required by tests
file(COPY data DESTINATION ${CMAKE_BINARY_DIR}/test)

### UNIT TEST
file(GLOB TEST_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} unit_test/*.cpp)
foreach(testSrc ${TEST_SRCS})
Expand Down
6 changes: 3 additions & 3 deletions test/unit_test/geography_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace utf = boost::unit_test;

BOOST_AUTO_TEST_SUITE(geography)

BOOST_AUTO_TEST_CASE(landscape, *utf::disabled())
BOOST_AUTO_TEST_CASE(landscape)
{
using time_type = int;
using landscape_type = quetzal::geography::landscape<std::string, time_type>;
Expand Down Expand Up @@ -61,7 +61,7 @@ BOOST_AUTO_TEST_CASE(landscape, *utf::disabled())
}
}

BOOST_AUTO_TEST_CASE(raster, *utf::disabled())
BOOST_AUTO_TEST_CASE(raster)
{
using time_type = unsigned int;
using raster_type = quetzal::geography::raster<time_type>;
Expand Down Expand Up @@ -203,7 +203,7 @@ BOOST_AUTO_TEST_CASE(resolution)
assert(copy != res);
}

BOOST_AUTO_TEST_CASE(gdalcppTest, *utf::disabled())
BOOST_AUTO_TEST_CASE(gdalcppTest)
{
auto file = std::filesystem::current_path() / "test/data/bio1.tif";

Expand Down

0 comments on commit 20daf23

Please sign in to comment.