new tests
This commit is contained in:
parent
e8630528af
commit
f5f142f993
15 changed files with 13 additions and 140 deletions
13
project.cpp
13
project.cpp
|
|
@ -106,5 +106,18 @@ extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> a
|
||||||
std::ranges::copy(networkImplementations, impls.begin());
|
std::ranges::copy(networkImplementations, impls.begin());
|
||||||
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
||||||
|
|
||||||
|
// Linux-only: msquic + POSIX socket backends. The browser path above
|
||||||
|
// returns early, so wasm builds skip these. Each test links the local
|
||||||
|
// crafter-network static lib via .Dependencies({ &cfg }).
|
||||||
|
if (cfg.target == "x86_64-pc-linux-gnu") {
|
||||||
|
cfg.AddTest("ShouldEchoWebTransport").Dependencies({ &cfg });
|
||||||
|
cfg.AddTest("ShouldSend").Dependencies({ &cfg });
|
||||||
|
cfg.AddTest("ShouldSendRecieveHTTP").Dependencies({ &cfg });
|
||||||
|
cfg.AddTest("ShouldSendRecieveKeepaliveHTTP").Dependencies({ &cfg });
|
||||||
|
cfg.AddTest("ShouldSendRecieveLargeHTTP").Dependencies({ &cfg });
|
||||||
|
cfg.AddTest("ShouldSendRecieveQUICDatagram").Dependencies({ &cfg });
|
||||||
|
cfg.AddTest("ShouldSendRecieveQUICStream").Dependencies({ &cfg });
|
||||||
|
}
|
||||||
|
|
||||||
return cfg;
|
return cfg;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import std;
|
|
||||||
import Crafter.Build;
|
|
||||||
namespace fs = std::filesystem;
|
|
||||||
using namespace Crafter;
|
|
||||||
|
|
||||||
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
|
||||||
Configuration cfg;
|
|
||||||
cfg.path = "tests/ShouldEchoWebTransport/";
|
|
||||||
cfg.name = "ShouldEchoWebTransport";
|
|
||||||
cfg.outputName = "ShouldEchoWebTransport";
|
|
||||||
cfg.target = "x86_64-pc-linux-gnu";
|
|
||||||
cfg.type = ConfigurationType::Executable;
|
|
||||||
cfg.dependencies = { ParentLib("crafter-network") };
|
|
||||||
cfg.linkFlags.push_back("-Wl,--export-dynamic");
|
|
||||||
cfg.linkFlags.push_back("-ldl");
|
|
||||||
std::array<fs::path, 0> ifaces = {};
|
|
||||||
std::array<fs::path, 1> impls = { "ShouldEchoWebTransport" };
|
|
||||||
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
|
||||||
return cfg;
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import std;
|
|
||||||
import Crafter.Build;
|
|
||||||
namespace fs = std::filesystem;
|
|
||||||
using namespace Crafter;
|
|
||||||
|
|
||||||
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
|
||||||
Configuration cfg;
|
|
||||||
cfg.path = "tests/ShouldSend/";
|
|
||||||
cfg.name = "ShouldSend";
|
|
||||||
cfg.outputName = "ShouldSend";
|
|
||||||
cfg.target = "x86_64-pc-linux-gnu";
|
|
||||||
cfg.type = ConfigurationType::Executable;
|
|
||||||
cfg.dependencies = { ParentLib("crafter-network") };
|
|
||||||
cfg.linkFlags.push_back("-Wl,--export-dynamic");
|
|
||||||
cfg.linkFlags.push_back("-ldl");
|
|
||||||
std::array<fs::path, 0> ifaces = {};
|
|
||||||
std::array<fs::path, 1> impls = { "ShouldSend" };
|
|
||||||
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
|
||||||
return cfg;
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import std;
|
|
||||||
import Crafter.Build;
|
|
||||||
namespace fs = std::filesystem;
|
|
||||||
using namespace Crafter;
|
|
||||||
|
|
||||||
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
|
||||||
Configuration cfg;
|
|
||||||
cfg.path = "tests/ShouldSendRecieveHTTP/";
|
|
||||||
cfg.name = "ShouldSendRecieveHTTP";
|
|
||||||
cfg.outputName = "ShouldSendRecieveHTTP";
|
|
||||||
cfg.target = "x86_64-pc-linux-gnu";
|
|
||||||
cfg.type = ConfigurationType::Executable;
|
|
||||||
cfg.dependencies = { ParentLib("crafter-network") };
|
|
||||||
cfg.linkFlags.push_back("-Wl,--export-dynamic");
|
|
||||||
cfg.linkFlags.push_back("-ldl");
|
|
||||||
std::array<fs::path, 0> ifaces = {};
|
|
||||||
std::array<fs::path, 1> impls = { "ShouldSendRecieveHTTP" };
|
|
||||||
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
|
||||||
return cfg;
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import std;
|
|
||||||
import Crafter.Build;
|
|
||||||
namespace fs = std::filesystem;
|
|
||||||
using namespace Crafter;
|
|
||||||
|
|
||||||
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
|
||||||
Configuration cfg;
|
|
||||||
cfg.path = "tests/ShouldSendRecieveKeepaliveHTTP/";
|
|
||||||
cfg.name = "ShouldSendRecieveKeepaliveHTTP";
|
|
||||||
cfg.outputName = "ShouldSendRecieveKeepaliveHTTP";
|
|
||||||
cfg.target = "x86_64-pc-linux-gnu";
|
|
||||||
cfg.type = ConfigurationType::Executable;
|
|
||||||
cfg.dependencies = { ParentLib("crafter-network") };
|
|
||||||
cfg.linkFlags.push_back("-Wl,--export-dynamic");
|
|
||||||
cfg.linkFlags.push_back("-ldl");
|
|
||||||
std::array<fs::path, 0> ifaces = {};
|
|
||||||
std::array<fs::path, 1> impls = { "ShouldSendRecieveKeepaliveHTTP" };
|
|
||||||
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
|
||||||
return cfg;
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import std;
|
|
||||||
import Crafter.Build;
|
|
||||||
namespace fs = std::filesystem;
|
|
||||||
using namespace Crafter;
|
|
||||||
|
|
||||||
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
|
||||||
Configuration cfg;
|
|
||||||
cfg.path = "tests/ShouldSendRecieveLargeHTTP/";
|
|
||||||
cfg.name = "ShouldSendRecieveLargeHTTP";
|
|
||||||
cfg.outputName = "ShouldSendRecieveLargeHTTP";
|
|
||||||
cfg.target = "x86_64-pc-linux-gnu";
|
|
||||||
cfg.type = ConfigurationType::Executable;
|
|
||||||
cfg.dependencies = { ParentLib("crafter-network") };
|
|
||||||
cfg.linkFlags.push_back("-Wl,--export-dynamic");
|
|
||||||
cfg.linkFlags.push_back("-ldl");
|
|
||||||
std::array<fs::path, 0> ifaces = {};
|
|
||||||
std::array<fs::path, 1> impls = { "ShouldSendRecieveLargeHTTP" };
|
|
||||||
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
|
||||||
return cfg;
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import std;
|
|
||||||
import Crafter.Build;
|
|
||||||
namespace fs = std::filesystem;
|
|
||||||
using namespace Crafter;
|
|
||||||
|
|
||||||
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
|
||||||
Configuration cfg;
|
|
||||||
cfg.path = "tests/ShouldSendRecieveQUICDatagram/";
|
|
||||||
cfg.name = "ShouldSendRecieveQUICDatagram";
|
|
||||||
cfg.outputName = "ShouldSendRecieveQUICDatagram";
|
|
||||||
cfg.target = "x86_64-pc-linux-gnu";
|
|
||||||
cfg.type = ConfigurationType::Executable;
|
|
||||||
cfg.dependencies = { ParentLib("crafter-network") };
|
|
||||||
cfg.linkFlags.push_back("-Wl,--export-dynamic");
|
|
||||||
cfg.linkFlags.push_back("-ldl");
|
|
||||||
std::array<fs::path, 0> ifaces = {};
|
|
||||||
std::array<fs::path, 1> impls = { "ShouldSendRecieveQUICDatagram" };
|
|
||||||
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
|
||||||
return cfg;
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import std;
|
|
||||||
import Crafter.Build;
|
|
||||||
namespace fs = std::filesystem;
|
|
||||||
using namespace Crafter;
|
|
||||||
|
|
||||||
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
|
||||||
Configuration cfg;
|
|
||||||
cfg.path = "tests/ShouldSendRecieveQUICStream/";
|
|
||||||
cfg.name = "ShouldSendRecieveQUICStream";
|
|
||||||
cfg.outputName = "ShouldSendRecieveQUICStream";
|
|
||||||
cfg.target = "x86_64-pc-linux-gnu";
|
|
||||||
cfg.type = ConfigurationType::Executable;
|
|
||||||
cfg.dependencies = { ParentLib("crafter-network") };
|
|
||||||
cfg.linkFlags.push_back("-Wl,--export-dynamic");
|
|
||||||
cfg.linkFlags.push_back("-ldl");
|
|
||||||
std::array<fs::path, 0> ifaces = {};
|
|
||||||
std::array<fs::path, 1> impls = { "ShouldSendRecieveQUICStream" };
|
|
||||||
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
|
||||||
return cfg;
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue