Skip to content

Commit

Permalink
Merge pull request #632 from cybaol/update_to_catch2_v3
Browse files Browse the repository at this point in the history
Update to Catch2 v3
  • Loading branch information
gummif authored Aug 11, 2024
2 parents 6164cf7 + 7736438 commit d537960
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (NOT Catch2_FOUND)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.9)
GIT_TAG v3.5.3)

FetchContent_MakeAvailable(Catch2)

Expand All @@ -35,7 +35,7 @@ add_executable(
target_include_directories(unit_tests PUBLIC ${CATCH_MODULE_PATH})
target_link_libraries(
unit_tests
PRIVATE Catch2::Catch2
PRIVATE Catch2::Catch2WithMain
PRIVATE cppzmq
PRIVATE ${CMAKE_THREAD_LIBS_INIT}
)
Expand Down
2 changes: 1 addition & 1 deletion tests/buffer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>

#ifdef ZMQ_CPP17
Expand Down
2 changes: 1 addition & 1 deletion tests/codec_multipart.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq_addon.hpp>

#ifdef ZMQ_CPP11
Expand Down
2 changes: 1 addition & 1 deletion tests/context.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>

#if (__cplusplus >= 201703L)
Expand Down
3 changes: 1 addition & 2 deletions tests/message.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>

#if defined(ZMQ_CPP11)
Expand Down
2 changes: 1 addition & 1 deletion tests/multipart.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq_addon.hpp>

#ifdef ZMQ_HAS_RVALUE_REFS
Expand Down
2 changes: 1 addition & 1 deletion tests/recv_multipart.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq_addon.hpp>
#ifdef ZMQ_CPP11

Expand Down
2 changes: 1 addition & 1 deletion tests/send_multipart.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq_addon.hpp>
#ifdef ZMQ_CPP11

Expand Down
2 changes: 1 addition & 1 deletion tests/socket.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
#ifdef ZMQ_CPP11
#include <future>
Expand Down
2 changes: 1 addition & 1 deletion tests/socket_ref.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
#ifdef ZMQ_CPP11

Expand Down
2 changes: 1 addition & 1 deletion tests/testutil.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>

#if defined(ZMQ_CPP11)
Expand Down
2 changes: 1 addition & 1 deletion tests/utilities.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>

#if defined(ZMQ_CPP11) && !defined(ZMQ_CPP11_PARTIAL)
Expand Down

0 comments on commit d537960

Please sign in to comment.