Loading tests/unit/CMakeLists.txt +3 −2 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ include(FetchContent) set(FETCHCONTENT_QUIET OFF) FetchContent_Declare(catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_TAG 216713a4066b79d9803d374f261ccb30c0fb451f # v2.13.8 GIT_TAG fa43b77429ba76c462b1898d6cd2f2d7a9416b14 # v3.7.1 GIT_SHALLOW ON GIT_PROGRESS ON ) Loading @@ -54,7 +54,7 @@ add_subdirectory(helpers) add_library(catch2_main STATIC) target_sources(catch2_main PRIVATE catch_main.cpp) target_link_libraries(catch2_main Catch2::Catch2 Catch2::Catch2WithMain ) # define executables for tests and make them depend on the convenience Loading @@ -64,6 +64,7 @@ target_sources(tests PRIVATE ${CMAKE_CURRENT_LIST_DIR}/test_utils_arithmetic.cpp ${CMAKE_CURRENT_LIST_DIR}/test_path.cpp ${CMAKE_CURRENT_LIST_DIR}/test_rapidhash_distributor.cpp ${CMAKE_CURRENT_LIST_DIR}/test_helpers.cpp) if (GKFS_TESTS_GUIDED_DISTRIBUTION) Loading tests/unit/catch_main.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -27,4 +27,4 @@ */ #define CATCH_CONFIG_MAIN #include <catch2/catch.hpp> #include <catch2/catch_all.hpp> tests/unit/test_example_00.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ SPDX-License-Identifier: GPL-3.0-or-later */ #include <catch2/catch.hpp> #include <catch2/catch_all.hpp> #include <fmt/format.h> unsigned int Factorial( unsigned int number ) { Loading tests/unit/test_example_01.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ SPDX-License-Identifier: GPL-3.0-or-later */ #include <catch2/catch.hpp> #include <catch2/catch_all.hpp> #include <fmt/format.h> SCENARIO( "vectors can be sized and resized", "[vector]" ) { Loading tests/unit/test_helpers.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ SPDX-License-Identifier: GPL-3.0-or-later */ #include <catch2/catch.hpp> #include <catch2/catch_all.hpp> #include "helpers/helpers.hpp" SCENARIO("random strings can be generated", "[test_helpers][random_string]") { Loading Loading
tests/unit/CMakeLists.txt +3 −2 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ include(FetchContent) set(FETCHCONTENT_QUIET OFF) FetchContent_Declare(catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_TAG 216713a4066b79d9803d374f261ccb30c0fb451f # v2.13.8 GIT_TAG fa43b77429ba76c462b1898d6cd2f2d7a9416b14 # v3.7.1 GIT_SHALLOW ON GIT_PROGRESS ON ) Loading @@ -54,7 +54,7 @@ add_subdirectory(helpers) add_library(catch2_main STATIC) target_sources(catch2_main PRIVATE catch_main.cpp) target_link_libraries(catch2_main Catch2::Catch2 Catch2::Catch2WithMain ) # define executables for tests and make them depend on the convenience Loading @@ -64,6 +64,7 @@ target_sources(tests PRIVATE ${CMAKE_CURRENT_LIST_DIR}/test_utils_arithmetic.cpp ${CMAKE_CURRENT_LIST_DIR}/test_path.cpp ${CMAKE_CURRENT_LIST_DIR}/test_rapidhash_distributor.cpp ${CMAKE_CURRENT_LIST_DIR}/test_helpers.cpp) if (GKFS_TESTS_GUIDED_DISTRIBUTION) Loading
tests/unit/catch_main.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -27,4 +27,4 @@ */ #define CATCH_CONFIG_MAIN #include <catch2/catch.hpp> #include <catch2/catch_all.hpp>
tests/unit/test_example_00.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ SPDX-License-Identifier: GPL-3.0-or-later */ #include <catch2/catch.hpp> #include <catch2/catch_all.hpp> #include <fmt/format.h> unsigned int Factorial( unsigned int number ) { Loading
tests/unit/test_example_01.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ SPDX-License-Identifier: GPL-3.0-or-later */ #include <catch2/catch.hpp> #include <catch2/catch_all.hpp> #include <fmt/format.h> SCENARIO( "vectors can be sized and resized", "[vector]" ) { Loading
tests/unit/test_helpers.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ SPDX-License-Identifier: GPL-3.0-or-later */ #include <catch2/catch.hpp> #include <catch2/catch_all.hpp> #include "helpers/helpers.hpp" SCENARIO("random strings can be generated", "[test_helpers][random_string]") { Loading