Skip to content

Commit 875bdb0

Browse files
authored
Merge branch 'main' into modernize-zlib-install
2 parents 4bb18da + c04e093 commit 875bdb0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+68
-51
lines changed

components/core/CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,8 @@ if(CLP_NEED_BOOST)
166166
endif()
167167

168168
if(CLP_NEED_CATCH2)
169-
find_package(Catch2 REQUIRED)
170-
if (Catch2_FOUND)
171-
message(STATUS "Found Catch2 ${Catch2_VERSION}")
172-
endif()
169+
find_package(Catch2 3.8.0 REQUIRED)
170+
message(STATUS "Found Catch2 ${Catch2_VERSION}")
173171
endif()
174172

175173
if(CLP_NEED_DATE)
@@ -703,7 +701,6 @@ set(SOURCE_FILES_unitTest
703701
tests/test-ir_parsing.cpp
704702
tests/test-ir_serializer.cpp
705703
tests/test-kql.cpp
706-
tests/test-main.cpp
707704
tests/test-math_utils.cpp
708705
tests/test-MemoryMappedFile.cpp
709706
tests/test-NetworkReader.cpp
@@ -735,7 +732,7 @@ if(CLP_BUILD_TESTING)
735732
PRIVATE
736733
absl::flat_hash_map
737734
Boost::filesystem Boost::iostreams Boost::program_options Boost::regex Boost::url
738-
Catch2::Catch2
735+
Catch2::Catch2WithMain
739736
${CURL_LIBRARIES}
740737
clp_s::search::ast
741738
clp_s::search::kql

components/core/src/clp/ffi/ir_stream/search/test/test_QueryHandlerImpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
#include <utility>
88
#include <vector>
99

10-
#include <catch2/catch.hpp>
10+
#include <catch2/catch_test_macros.hpp>
11+
#include <catch2/generators/catch_generators.hpp>
1112
#include <fmt/core.h>
1213
#include <fmt/format.h>
1314
#include <ystdlib/error_handling/Result.hpp>

components/core/src/clp/ffi/ir_stream/search/test/test_deserializer_integration.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
#include <utility>
77
#include <vector>
88

9-
#include <catch2/catch.hpp>
9+
#include <catch2/catch_template_test_macros.hpp>
10+
#include <catch2/catch_test_macros.hpp>
11+
#include <catch2/generators/catch_generators.hpp>
1012
#include <fmt/core.h>
1113
#include <nlohmann/json_fwd.hpp>
1214

components/core/src/clp/ffi/ir_stream/search/test/test_utils.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#include <utility>
1010
#include <vector>
1111

12-
#include <catch2/catch.hpp>
12+
#include <catch2/catch_test_macros.hpp>
13+
#include <catch2/generators/catch_generators.hpp>
14+
#include <catch2/generators/catch_generators_range.hpp>
1315

1416
#include "../../../../../clp_s/search/ast/BooleanLiteral.hpp"
1517
#include "../../../../../clp_s/search/ast/ColumnDescriptor.hpp"

components/core/src/clp/ffi/ir_stream/search/test/utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <utility>
1313
#include <vector>
1414

15-
#include <catch2/catch.hpp>
15+
#include <catch2/catch_test_macros.hpp>
1616
#include <msgpack.hpp>
1717
#include <ystdlib/error_handling/Result.hpp>
1818

components/core/tests/clp_s_test_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <string>
55
#include <vector>
66

7-
#include <catch2/catch.hpp>
7+
#include <catch2/catch_test_macros.hpp>
88

99
#include "../src/clp_s/ArchiveWriter.hpp"
1010
#include "../src/clp_s/InputConfig.hpp"

components/core/tests/test-BoundedReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <string>
44
#include <string_view>
55

6-
#include <catch2/catch.hpp>
6+
#include <catch2/catch_test_macros.hpp>
77

88
#include "../src/clp/BoundedReader.hpp"
99
#include "../src/clp/ErrorCode.hpp"

components/core/tests/test-BufferedFileReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <array>
22

33
#include <boost/filesystem.hpp>
4-
#include <catch2/catch.hpp>
4+
#include <catch2/catch_test_macros.hpp>
55

66
#include "../src/clp/BufferedFileReader.hpp"
77
#include "../src/clp/FileReader.hpp"

components/core/tests/test-EncodedVariableInterpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <unistd.h>
22

3-
#include <catch2/catch.hpp>
3+
#include <catch2/catch_test_macros.hpp>
44

55
#include "../src/clp/EncodedVariableInterpreter.hpp"
66
#include "../src/clp/ir/types.hpp"

components/core/tests/test-FileDescriptorReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <string_view>
55
#include <vector>
66

7-
#include <catch2/catch.hpp>
7+
#include <catch2/catch_test_macros.hpp>
88
#include <ystdlib/containers/Array.hpp>
99

1010
#include "../src/clp/FileDescriptorReader.hpp"

0 commit comments

Comments
 (0)