Unverified 提交 28ff4a73 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo 提交者: GitHub

Update Catch2 to version 3.4.0 (#1287)

上级 e4f49911
[wrap-file] [wrap-file]
directory = Catch2-2.13.7 directory = Catch2-3.4.0
source_url = https://github.com/catchorg/Catch2/archive/v2.13.7.zip source_url = https://github.com/catchorg/Catch2/archive/v3.4.0.tar.gz
source_filename = Catch2-2.13.7.zip source_filename = Catch2-3.4.0.tar.gz
source_hash = 3f3ccd90ad3a8fbb1beeb15e6db440ccdcbebe378dfd125d07a1f9a587a927e9 source_hash = 122928b814b75717316c71af69bd2b43387643ba076a6ec16e7882bfb2dfacbb
patch_filename = catch2_2.13.7-1_patch.zip source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/catch2_3.4.0-1/Catch2-3.4.0.tar.gz
patch_url = https://wrapdb.mesonbuild.com/v2/catch2_2.13.7-1/get_patch wrapdb_version = 3.4.0-1
patch_hash = 2f7369645d747e5bd866317ac1dd4c3d04dc97d3aad4fc6b864bdf75d3b57158
[provide] [provide]
catch2 = catch2_dep catch2 = catch2_dep
catch2-with-main = catch2_with_main_dep
...@@ -393,32 +393,25 @@ def test(ctx): ...@@ -393,32 +393,25 @@ def test(ctx):
shell=SHELL shell=SHELL
); );
mediasoup_worker_test = 'mediasoup-worker-test.exe' if os.name == 'nt' else 'mediasoup-worker-test';
mediasoup_test_tags = os.getenv('MEDIASOUP_TEST_TAGS') or ''; mediasoup_test_tags = os.getenv('MEDIASOUP_TEST_TAGS') or '';
# On Windows lcov doesn't work (at least not yet) and we need to add .exe to # On Windows lcov doesn't work (at least not yet).
# the binary path. if os.name != 'nt':
if os.name == 'nt':
with ctx.cd(WORKER_DIR):
ctx.run(
f'"{BUILD_DIR}/mediasoup-worker-test.exe" --invisibles --use-colour=yes {mediasoup_test_tags}',
echo=True,
pty=PTY_SUPPORTED,
shell=SHELL
);
else:
ctx.run( ctx.run(
f'"{LCOV}" --directory "{WORKER_DIR}" --zerocounters', f'"{LCOV}" --directory "{WORKER_DIR}" --zerocounters',
echo=True, echo=True,
pty=PTY_SUPPORTED, pty=PTY_SUPPORTED,
shell=SHELL shell=SHELL
); );
with ctx.cd(WORKER_DIR):
ctx.run( with ctx.cd(WORKER_DIR):
f'"{BUILD_DIR}/mediasoup-worker-test" --invisibles --use-colour=yes {mediasoup_test_tags}', ctx.run(
echo=True, f'"{BUILD_DIR}/{mediasoup_worker_test}" --invisibles --colour-mode=ansi {mediasoup_test_tags}',
pty=PTY_SUPPORTED, echo=True,
shell=SHELL pty=PTY_SUPPORTED,
); shell=SHELL
);
@task(pre=[setup, flatc]) @task(pre=[setup, flatc])
......
#include "common.hpp" #include "common.hpp"
#include "PayloadChannel/PayloadChannelNotification.hpp" #include "PayloadChannel/PayloadChannelNotification.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
SCENARIO("PayloadChannelNotification", "[channel][notification]") SCENARIO("PayloadChannelNotification", "[channel][notification]")
{ {
......
#include "common.hpp" #include "common.hpp"
#include "PayloadChannel/PayloadChannelRequest.hpp" #include "PayloadChannel/PayloadChannelRequest.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
SCENARIO("PayloadChannelRequest", "[channel][request]") SCENARIO("PayloadChannelRequest", "[channel][request]")
{ {
......
#include "common.hpp" #include "common.hpp"
#include "RTC/Codecs/H264.hpp" #include "RTC/Codecs/H264.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC; using namespace RTC;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/Codecs/H264_SVC.hpp" #include "RTC/Codecs/H264_SVC.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC; using namespace RTC;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/Codecs/VP8.hpp" #include "RTC/Codecs/VP8.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp(), std::memcpy() #include <cstring> // std::memcmp(), std::memcpy()
using namespace RTC; using namespace RTC;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/Codecs/VP9.hpp" #include "RTC/Codecs/VP9.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC; using namespace RTC;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/Bye.hpp" #include "RTC/RTCP/Bye.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
#include <string> #include <string>
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackPsAfb.hpp" #include "RTC/RTCP/FeedbackPsAfb.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackPsFir.hpp" #include "RTC/RTCP/FeedbackPsFir.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackPsLei.hpp" #include "RTC/RTCP/FeedbackPsLei.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackPsPli.hpp" #include "RTC/RTCP/FeedbackPsPli.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackPsRemb.hpp" #include "RTC/RTCP/FeedbackPsRemb.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackPsRpsi.hpp" #include "RTC/RTCP/FeedbackPsRpsi.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackPsSli.hpp" #include "RTC/RTCP/FeedbackPsSli.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackPsTst.hpp" #include "RTC/RTCP/FeedbackPsTst.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackPsVbcm.hpp" #include "RTC/RTCP/FeedbackPsVbcm.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackRtpEcn.hpp" #include "RTC/RTCP/FeedbackRtpEcn.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackRtpNack.hpp" #include "RTC/RTCP/FeedbackRtpNack.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackRtpSrReq.hpp" #include "RTC/RTCP/FeedbackRtpSrReq.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackRtpTllei.hpp" #include "RTC/RTCP/FeedbackRtpTllei.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/FeedbackRtpTmmb.hpp" #include "RTC/RTCP/FeedbackRtpTmmb.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "Logger.hpp" #include "Logger.hpp"
#include "RTC/RTCP/FeedbackRtpTransport.hpp" #include "RTC/RTCP/FeedbackRtpTransport.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/Packet.hpp" #include "RTC/RTCP/Packet.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/ReceiverReport.hpp" #include "RTC/RTCP/ReceiverReport.hpp"
#include "RTC/RTCP/SenderReport.hpp" // sizeof(SenderReport::Header) #include "RTC/RTCP/SenderReport.hpp" // sizeof(SenderReport::Header)
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/Packet.hpp" #include "RTC/RTCP/Packet.hpp"
#include "RTC/RTCP/Sdes.hpp" #include "RTC/RTCP/Sdes.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
#include <string> #include <string>
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RTCP/SenderReport.hpp" #include "RTC/RTCP/SenderReport.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "RTC/RTCP/XR.hpp" #include "RTC/RTCP/XR.hpp"
#include "RTC/RTCP/XrDelaySinceLastRr.hpp" #include "RTC/RTCP/XrDelaySinceLastRr.hpp"
#include "RTC/RTCP/XrReceiverReferenceTime.hpp" #include "RTC/RTCP/XrReceiverReferenceTime.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp(), std::memcpy() #include <cstring> // std::memcmp(), std::memcpy()
using namespace RTC::RTCP; using namespace RTC::RTCP;
......
#include "common.hpp" #include "common.hpp"
#include "DepLibUV.hpp" #include "DepLibUV.hpp"
#include "RTC/KeyFrameRequestManager.hpp" #include "RTC/KeyFrameRequestManager.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
using namespace RTC; using namespace RTC;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "RTC/Codecs/PayloadDescriptorHandler.hpp" #include "RTC/Codecs/PayloadDescriptorHandler.hpp"
#include "RTC/NackGenerator.hpp" #include "RTC/NackGenerator.hpp"
#include "RTC/RtpPacket.hpp" #include "RTC/RtpPacket.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <vector> #include <vector>
using namespace RTC; using namespace RTC;
......
#include "common.hpp" #include "common.hpp"
#include "DepLibUV.hpp" #include "DepLibUV.hpp"
#include "RTC/RateCalculator.hpp" #include "RTC/RateCalculator.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <vector> #include <vector>
using namespace RTC; using namespace RTC;
......
#include "common.hpp" #include "common.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <regex> #include <regex>
static const std::regex ScalabilityModeRegex( static const std::regex ScalabilityModeRegex(
......
#include "common.hpp" #include "common.hpp"
#include "helpers.hpp" #include "helpers.hpp"
#include "RTC/RtpPacket.hpp" #include "RTC/RtpPacket.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memset() #include <cstring> // std::memset()
#include <string> #include <string>
#include <vector> #include <vector>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "helpers.hpp" #include "helpers.hpp"
#include "RTC/Codecs/H264_SVC.hpp" #include "RTC/Codecs/H264_SVC.hpp"
#include "RTC/RtpPacket.hpp" #include "RTC/RtpPacket.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memset() #include <cstring> // std::memset()
#include <sstream> #include <sstream>
#include <string> #include <string>
......
#include "common.hpp" #include "common.hpp"
#include "RTC/RtpPacket.hpp" #include "RTC/RtpPacket.hpp"
#include "RTC/RtpRetransmissionBuffer.hpp" #include "RTC/RtpRetransmissionBuffer.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <vector> #include <vector>
using namespace RTC; using namespace RTC;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "RTC/RtpPacket.hpp" #include "RTC/RtpPacket.hpp"
#include "RTC/RtpStream.hpp" #include "RTC/RtpStream.hpp"
#include "RTC/RtpStreamRecv.hpp" #include "RTC/RtpStreamRecv.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <vector> #include <vector>
using namespace RTC; using namespace RTC;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "RTC/RtpPacket.hpp" #include "RTC/RtpPacket.hpp"
#include "RTC/RtpStream.hpp" #include "RTC/RtpStream.hpp"
#include "RTC/RtpStreamSend.hpp" #include "RTC/RtpStreamSend.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <vector> #include <vector>
// #define PERFORMANCE_TEST 1 // #define PERFORMANCE_TEST 1
......
#include "common.hpp" #include "common.hpp"
#include "RTC/SeqManager.hpp" #include "RTC/SeqManager.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <string> #include <string>
#include <vector> #include <vector>
......
#include "common.hpp" #include "common.hpp"
#include "RTC/TrendCalculator.hpp" #include "RTC/TrendCalculator.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
using namespace RTC; using namespace RTC;
......
#include "common.hpp" #include "common.hpp"
#include "Utils.hpp" #include "Utils.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
SCENARIO("Utils::Bits::CountSetBits()") SCENARIO("Utils::Bits::CountSetBits()")
{ {
......
#include "common.hpp" #include "common.hpp"
#include "Utils.hpp" #include "Utils.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
SCENARIO("Utils::Byte") SCENARIO("Utils::Byte")
{ {
......
#include "common.hpp" #include "common.hpp"
#include "MediaSoupErrors.hpp" #include "MediaSoupErrors.hpp"
#include "Utils.hpp" #include "Utils.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memset() #include <cstring> // std::memset()
#ifdef _WIN32 #ifdef _WIN32
#include <winsock2.h> #include <winsock2.h>
......
#include "common.hpp" #include "common.hpp"
#include "Utils.hpp" #include "Utils.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
#include <cstring> // std::memcmp() #include <cstring> // std::memcmp()
using namespace Utils; using namespace Utils;
......
#include "common.hpp" #include "common.hpp"
#include "DepLibUV.hpp" #include "DepLibUV.hpp"
#include "Utils.hpp" #include "Utils.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_test_macros.hpp>
using namespace Utils; using namespace Utils;
......
#define CATCH_CONFIG_RUNNER
#include "DepLibSRTP.hpp" #include "DepLibSRTP.hpp"
#include "DepLibUV.hpp" #include "DepLibUV.hpp"
#include "DepLibWebRTC.hpp" #include "DepLibWebRTC.hpp"
...@@ -8,7 +6,7 @@ ...@@ -8,7 +6,7 @@
#include "LogLevel.hpp" #include "LogLevel.hpp"
#include "Settings.hpp" #include "Settings.hpp"
#include "Utils.hpp" #include "Utils.hpp"
#include <catch2/catch.hpp> #include <catch2/catch_session.hpp>
#include <cstdlib> // std::getenv() #include <cstdlib> // std::getenv()
int main(int argc, char* argv[]) int main(int argc, char* argv[])
...@@ -53,7 +51,9 @@ int main(int argc, char* argv[]) ...@@ -53,7 +51,9 @@ int main(int argc, char* argv[])
DepLibWebRTC::ClassInit(); DepLibWebRTC::ClassInit();
Utils::Crypto::ClassInit(); Utils::Crypto::ClassInit();
int status = Catch::Session().run(argc, argv); Catch::Session session;
int status = session.run(argc, argv);
// Free static stuff. // Free static stuff.
DepLibSRTP::ClassDestroy(); DepLibSRTP::ClassDestroy();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论