[M6] manifest: add dev_dependencies and [build].include_dirs
This commit is contained in:
@@ -93,10 +93,18 @@ TEST_CASE("write sorts dependencies alphabetically (matches Cargo)",
|
||||
|
||||
TEST_CASE("write round-trips build settings", "[manifest][write]") {
|
||||
Manifest m{
|
||||
pkg("foo", "0.1.0"),
|
||||
{},
|
||||
BuildSettings{.warnings_as_errors = true,
|
||||
.sanitizers = {"address", "undefined"}},
|
||||
.package = pkg("foo", "0.1.0"),
|
||||
.build = BuildSettings{.warnings_as_errors = true,
|
||||
.sanitizers = {"address", "undefined"},
|
||||
.include_dirs = {"third_party"}},
|
||||
};
|
||||
REQUIRE(round_trip(m) == m);
|
||||
}
|
||||
|
||||
TEST_CASE("write round-trips dev-dependencies", "[manifest][write]") {
|
||||
Manifest m{
|
||||
.package = pkg("foo", "0.1.0"),
|
||||
.dev_dependencies = {Dependency{.name = "catch2", .version_spec = "3.5.0"}},
|
||||
};
|
||||
REQUIRE(round_trip(m) == m);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user