Commit 71b81b49 authored by sevenuz's avatar sevenuz
Browse files

update catch2 to v3.7.1

parent f661386e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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
)
@@ -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
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -27,4 +27,4 @@
*/

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
+1 −1
Original line number Diff line number Diff line
@@ -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 ) {
+1 −1
Original line number Diff line number Diff line
@@ -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]" ) {
+2 −2
Original line number Diff line number Diff line
@@ -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