Replace Catch header by a xmake package
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Audio/Algorithm.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <array>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Audio/Audio.hpp>
|
||||
#include <Nazara/Audio/Music.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Audio/SoundBuffer.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
std::filesystem::path GetResourceDir();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Audio/Sound.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
std::filesystem::path GetResourceDir();
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Audio/Audio.hpp>
|
||||
#include <Nazara/Audio/Sound.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/AbstractHash.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <Nazara/Core/ByteArray.hpp>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <Nazara/Core/Algorithm.hpp>
|
||||
#include <Nazara/Core/StringExt.hpp>
|
||||
#include <Nazara/Math/Vector2.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
TEST_CASE("Apply", "[CORE][ALGORITHM]")
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Core/Algorithm.hpp>
|
||||
#include <Nazara/Core/Bitset.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <array>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/ByteArray.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/ByteStream.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <array>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/Clock.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/Color.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
const float epsilon = 1.f;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/Error.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Error", "[CORE][ERROR]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/File.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
std::filesystem::path GetResourceDir();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/MemoryPool.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <Nazara/Math/Vector2.hpp>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Core/HandledObject.hpp>
|
||||
#include <Nazara/Core/ObjectHandle.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
struct ObjectHandle_Test : public Nz::HandledObject<ObjectHandle_Test>
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/ObjectRef.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
class Test : public Nz::RefCounted
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/ParameterList.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
void nullAction(void*)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/PrimitiveList.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("PrimitiveList", "[CORE][PRIMITIVELIST]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/RefCounted.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("RefCounted", "[CORE][REFCOUNTED]")
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <Nazara/Math/Ray.hpp>
|
||||
#include <array>
|
||||
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Serialization", "[CORE][SERIALIZATION]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/Signal.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
struct Incrementer
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/SparsePtr.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <array>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Core/MovablePtr.hpp>
|
||||
#include <Nazara/Core/StackVector.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <array>
|
||||
#include <numeric>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Core/StringExt.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("String", "[CORE][STRING]")
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Math/Algorithm.hpp>
|
||||
#include <Nazara/Math/Angle.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <limits>
|
||||
|
||||
TEST_CASE("Approach", "[MATH][ALGORITHM]")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <Nazara/Math/Angle.hpp>
|
||||
#include <Nazara/Math/EulerAngles.hpp>
|
||||
#include <Nazara/Math/Quaternion.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Angle", "[MATH][ANGLE]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/BoundingVolume.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("BoundingVolume", "[MATH][BOUNDINGVOLUME]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/Box.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Box", "[MATH][BOX]")
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Math/Angle.hpp>
|
||||
#include <Nazara/Math/EulerAngles.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("EulerAngles", "[MATH][EULERANGLES]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/Frustum.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Frustum", "[MATH][FRUSTUM]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/Matrix4.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <array>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/OrientedBox.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("OrientedBox", "[MATH][ORIENTEDBOX]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/Plane.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Plane", "[MATH][PLANE]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/Quaternion.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Quaternion", "[MATH][QUATERNION]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/Ray.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Ray", "[MATH][RAY]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/Rect.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Rect", "[MATH][RECT]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/Sphere.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Sphere", "[MATH][SPHERE]")
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <Nazara/Math/Vector2.hpp>
|
||||
#include <Nazara/Math/Vector4.hpp>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <Nazara/Math/Vector2.hpp>
|
||||
#include <Nazara/Math/Vector3.hpp>
|
||||
#include <Nazara/Math/Vector4.hpp>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Math/Vector4.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <Nazara/Math/Vector3.hpp>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Network/IpAddress.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("IpAddress", "[NETWORK][IPADDRESS]")
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <Nazara/Network/SocketPoller.hpp>
|
||||
#include <Nazara/Network/TcpClient.hpp>
|
||||
#include <Nazara/Network/TcpServer.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <random>
|
||||
|
||||
SCENARIO("SocketPoller", "[NETWORK][SOCKETPOLLER]")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <Nazara/Network/NetPacket.hpp>
|
||||
#include <Nazara/Network/TcpClient.hpp>
|
||||
#include <Nazara/Network/TcpServer.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <chrono>
|
||||
#include <random>
|
||||
#include <thread>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <Nazara/Math/Vector3.hpp>
|
||||
#include <Nazara/Network/UdpSocket.hpp>
|
||||
#include <Nazara/Network/NetPacket.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <random>
|
||||
|
||||
SCENARIO("UdpSocket", "[NETWORK][UDPSOCKET]")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Physics2D/Collider2D.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
SCENARIO("Collider2D", "[PHYSICS2D][COLLIDER2D]")
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Nazara/Physics2D/PhysWorld2D.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
Nz::RigidBody2D CreateBody(Nz::PhysWorld2D& world, const Nz::Vector2f& position, bool isMoving = true, const Nz::Vector2f& lengths = Nz::Vector2f::Unit());
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Physics2D/RigidBody2D.hpp>
|
||||
#include <Nazara/Physics2D/PhysWorld2D.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <Nazara/Shader/ShaderBuilder.hpp>
|
||||
#include <Nazara/Shader/SpirvPrinter.hpp>
|
||||
#include <Nazara/Shader/SpirvWriter.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <cctype>
|
||||
|
||||
void ExpectingGLSL(Nz::ShaderAst::StatementPtr& shader, std::string_view expectedOutput)
|
||||
|
||||
Reference in New Issue
Block a user