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