[M5] verify-curated-db.sh + boost recipe (header-only)
This commit is contained in:
@@ -49,16 +49,16 @@ TEST_CASE("cmd_add stores components when provided", "[cli][add]") {
|
||||
auto parent = fresh_dir();
|
||||
auto root = scaffold(parent);
|
||||
|
||||
auto r = cmd_add(root, "boost", "1.84.0", {"filesystem", "system"},
|
||||
auto r = cmd_add(root, "abseil-cpp", "20240116.0", {"strings", "base"},
|
||||
overlay_path(parent));
|
||||
REQUIRE(r.has_value());
|
||||
|
||||
auto m = manifest::parse(root / "Cargoxx.toml");
|
||||
REQUIRE(m.has_value());
|
||||
REQUIRE(m->dependencies.size() == 1);
|
||||
REQUIRE(m->dependencies[0].name == "boost");
|
||||
REQUIRE(m->dependencies[0].name == "abseil-cpp");
|
||||
REQUIRE(m->dependencies[0].components ==
|
||||
std::vector<std::string>{"filesystem", "system"});
|
||||
std::vector<std::string>{"strings", "base"});
|
||||
}
|
||||
|
||||
TEST_CASE("cmd_add accepts an empty version and stores '*'", "[cli][add]") {
|
||||
@@ -110,7 +110,7 @@ TEST_CASE("cmd_add rejects componentized package without components",
|
||||
auto parent = fresh_dir();
|
||||
auto root = scaffold(parent);
|
||||
|
||||
auto r = cmd_add(root, "boost", "1.84.0", {}, overlay_path(parent));
|
||||
auto r = cmd_add(root, "abseil-cpp", "20240116.0", {}, overlay_path(parent));
|
||||
REQUIRE_FALSE(r.has_value());
|
||||
REQUIRE(r.error().code == ErrorCode::LinkdbComponentNotSupported);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user