[M5] verify-curated-db.sh + boost recipe (header-only)

This commit is contained in:
2026-05-10 01:42:20 +00:00
parent b0818846b2
commit f3d18b7939
29 changed files with 412 additions and 17 deletions

View File

@@ -56,19 +56,19 @@ TEST_CASE("resolve fails for an unknown package", "[linkdb]") {
REQUIRE(rec.error().code == ErrorCode::LinkdbUnknownPackage);
}
TEST_CASE("resolve substitutes boost components", "[linkdb]") {
TEST_CASE("resolve substitutes abseil-cpp components", "[linkdb]") {
auto db = open_db();
auto rec = db.resolve("boost", "1.84.0", {"filesystem", "system"});
auto rec = db.resolve("abseil-cpp", "20240116.0", {"strings", "base"});
REQUIRE(rec.has_value());
REQUIRE(rec->find_package == "Boost REQUIRED COMPONENTS filesystem system");
REQUIRE(rec->find_package == "absl CONFIG REQUIRED");
REQUIRE(rec->targets ==
std::vector<std::string>{"Boost::filesystem", "Boost::system"});
std::vector<std::string>{"absl::strings", "absl::base"});
}
TEST_CASE("resolve fails when a componentized package gets no components",
"[linkdb]") {
auto db = open_db();
auto rec = db.resolve("boost", "1.84.0");
auto rec = db.resolve("abseil-cpp", "20240116.0");
REQUIRE_FALSE(rec.has_value());
REQUIRE(rec.error().code == ErrorCode::LinkdbComponentNotSupported);
}
@@ -102,7 +102,7 @@ TEST_CASE("resolve covers all 25 curated packages", "[linkdb]") {
{"fmt", "10.2.0", {}},
{"spdlog", "1.13.0", {}},
{"nlohmann_json", "3.11.0", {}},
{"boost", "1.84.0", {"system"}},
{"boost", "1.84.0", {}},
{"openssl", "3.2.0", {}},
{"zlib", "1.3.0", {}},
{"sqlite3", "3.45.0", {}},