Skip to content

Commit

Permalink
Upgrade to Catch2 version 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bifurcation committed Dec 14, 2023
1 parent a700ffb commit 60b54a4
Show file tree
Hide file tree
Showing 27 changed files with 37 additions and 27 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ endif ()
if(TESTING)
enable_testing()

find_package(Catch2 REQUIRED)
find_package(Catch2 3 REQUIRED)

include(CTest)
include(Catch)
Expand Down
8 changes: 7 additions & 1 deletion alternatives/boringssl/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
"catch2",
"nlohmann-json"
],
"builtin-baseline": "3b3bd424827a1f7f4813216f6b32b6c61e386b2e"
"builtin-baseline": "eb33d2f7583405fca184bcdf7fdd5828ec88ac05",
"overrides": [
{
"name": "catch2",
"version": "3.5.0"
}
]
}
2 changes: 1 addition & 1 deletion alternatives/openssl_1.1/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"catch2",
"nlohmann-json"
],
"builtin-baseline": "3b3bd424827a1f7f4813216f6b32b6c61e386b2e",
"builtin-baseline": "eb33d2f7583405fca184bcdf7fdd5828ec88ac05",
"overrides": [
{
"name": "openssl",
Expand Down
6 changes: 5 additions & 1 deletion alternatives/openssl_3/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
"catch2",
"nlohmann-json"
],
"builtin-baseline": "3b3bd424827a1f7f4813216f6b32b6c61e386b2e",
"builtin-baseline": "eb33d2f7583405fca184bcdf7fdd5828ec88ac05",
"overrides": [
{
"name": "openssl",
"version": "3.0.7"
},
{
"name": "catch2",
"version": "3.5.0"
}
]
}
2 changes: 1 addition & 1 deletion lib/bytes/test/bytes.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <bytes/bytes.h>
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <memory>
#include <sstream>

Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/aead.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 <hpke/hpke.h>

#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/base64.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 <hpke/base64.h>

using namespace MLS_NAMESPACE::hpke;
Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/certificate.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 <hpke/certificate.h>

#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <set>
#include <stdexcept>

#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <openssl/crypto.h>

#if defined(WITH_OPENSSL3)
Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/hpke.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 <hpke/hpke.h>
#include <namespace.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/kdf.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 <hpke/hpke.h>

#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/kem.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 <hpke/hpke.h>

#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/random.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 <hpke/random.h>

#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/signature.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 <hpke/signature.h>
#include <nlohmann/json.hpp>

Expand Down
2 changes: 1 addition & 1 deletion lib/hpke/test/userinfo_vc.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 <hpke/userinfo_vc.h>
#include <nlohmann/json.hpp>

Expand Down
2 changes: 1 addition & 1 deletion lib/mls_vectors/test/mls_vectors.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 <mls_vectors/mls_vectors.h>
#include <tls/tls_syntax.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/tls_syntax/test/tls_syntax.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <bytes/bytes.h>
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <namespace.h>
#include <tls/tls_syntax.h>

Expand Down
2 changes: 1 addition & 1 deletion test/credential.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 <mls/credential.h>

using namespace MLS_NAMESPACE;
Expand Down
2 changes: 1 addition & 1 deletion test/crypto.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 <mls/crypto.h>
#include <mls_vectors/mls_vectors.h>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion test/grease.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "grease.h"
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <mls/core_types.h>
#include <mls/messages.h>

Expand Down
2 changes: 1 addition & 1 deletion test/key_schedule.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 <mls/state.h>
#include <mls_vectors/mls_vectors.h>

Expand Down
2 changes: 1 addition & 1 deletion test/messages.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 <mls/messages.h>
#include <mls/state.h>
#include <mls_vectors/mls_vectors.h>
Expand Down
2 changes: 1 addition & 1 deletion test/session.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 <hpke/random.h>
#include <mls/session.h>

Expand Down
2 changes: 1 addition & 1 deletion test/state.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 <hpke/random.h>
#include <mls/common.h>
#include <mls/state.h>
Expand Down
2 changes: 1 addition & 1 deletion test/tree_math.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 <mls_vectors/mls_vectors.h>

#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion test/treekem.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 <hpke/random.h>
#include <mls/common.h>
#include <mls/treekem.h>
Expand Down
2 changes: 1 addition & 1 deletion vcpkg
Submodule vcpkg updated 1566 files

0 comments on commit 60b54a4

Please sign in to comment.