Skip to content

Commit

Permalink
Update Catch2 to v3.2.1. (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineKhaldi authored Mar 14, 2023
1 parent cd44884 commit a2049c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,11 @@ ENDIF()
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.7
GIT_TAG v3.2.1
)
FetchContent_MakeAvailable(Catch2)

add_executable(RunTests
tests/test-main.cpp
tests/test.cpp
src/chacha8.c
${BLAKE3_SRC}
Expand Down
16 changes: 0 additions & 16 deletions tests/test-main.cpp

This file was deleted.

10 changes: 9 additions & 1 deletion tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#include <set>

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/catch_session.hpp>
#include <catch2/matchers/catch_matchers.hpp>

#include "../lib/include/picosha2.hpp"
#include "calculate_bucket.hpp"
Expand Down Expand Up @@ -1168,3 +1170,9 @@ TEST_CASE("FilteredDisk")
*/
remove("test_file.bin");
}

int main(int argc, char* argv[])
{
int result = Catch::Session().run(argc, argv);
return result;
}

0 comments on commit a2049c5

Please sign in to comment.