33 lines
955 B
C++
33 lines
955 B
C++
|
|
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 = "./";
|
||
|
|
cfg.name = "rc-meta";
|
||
|
|
cfg.outputName = "rc-meta";
|
||
|
|
cfg.target = "x86_64-pc-linux-gnu";
|
||
|
|
cfg.type = ConfigurationType::Executable;
|
||
|
|
|
||
|
|
auto addTest = [&](std::string name) {
|
||
|
|
Test t;
|
||
|
|
t.config.path = "./";
|
||
|
|
t.config.name = name;
|
||
|
|
t.config.outputName = name;
|
||
|
|
t.config.target = "x86_64-pc-linux-gnu";
|
||
|
|
t.config.type = ConfigurationType::Executable;
|
||
|
|
std::array<fs::path, 0> empty = {};
|
||
|
|
std::array<fs::path, 1> impls = { fs::path("tests") / name };
|
||
|
|
t.config.GetInterfacesAndImplementations(empty, impls);
|
||
|
|
cfg.tests.push_back(std::move(t));
|
||
|
|
};
|
||
|
|
|
||
|
|
addTest("Pass");
|
||
|
|
addTest("Fail");
|
||
|
|
addTest("Crash");
|
||
|
|
addTest("Hang");
|
||
|
|
|
||
|
|
return cfg;
|
||
|
|
}
|