aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-10-19 23:21:11 +0000
committeriximeow <me@iximeow.net>2025-10-19 23:29:05 +0000
commit815efeda7830d4179decbc7f7dd66837367708d1 (patch)
tree759d4f9fba652d95d46d75ed67b23712f9922a42
parent7dda786cebec0764006ec1e7869cf1b53b34006e (diff)
adjust goodfile to exercise feature matrix more
-rw-r--r--goodfile17
1 files changed, 15 insertions, 2 deletions
diff --git a/goodfile b/goodfile
index 1105a7a..6e2073e 100644
--- a/goodfile
+++ b/goodfile
@@ -13,7 +13,20 @@ Step.advance("test")
Build.run({"cargo", "test"}, {name="test stdlib/fmt"})
Build.run({"cargo", "test", "--no-default-features"}, {name="test nostdlib/fmt"})
-Build.run({"cargo", "rustc", "--", "-C", "link-arg=-nostartfiles"}, {cwd="tests/no_std_check"})
-Build.run({"cargo", "rustc", "--release", "--", "-C", "link-arg=-nostartfiles"}, {cwd="tests/no_std_check"})
+-- testing the full set of feature combinations would be.. unwieldy
+Step.push("feature matrix (subset)")
+Build.run({"cargo", "test", "--no-default-features", "--features", "std"}, {name="test features/fmt"})
+Build.run({"cargo", "test", "--no-default-features", "--features", "alloc"}, {name="test features/alloc"})
+Build.run({"cargo", "test", "--no-default-features", "--features", "fmt"}, {name="test features/fmt"})
+Build.run({"cargo", "test", "--no-default-features", "--features", "use-serde"}, {name="test features/use-serde"})
+Build.run({"cargo", "test", "--no-default-features", "--features", "non-exhaustive-enums"}, {name="test features/non-exhaustive-enums"})
+Build.run({"cargo", "test", "--no-default-features", "--features", "std,alloc"}, {name="test features/std,alloc"})
+Build.run({"cargo", "test", "--no-default-features", "--features", "alloc,fmt"}, {name="test features/alloc,fmt"})
+Build.run({"cargo", "test", "--no-default-features", "--features", "use-serde,alloc,fmt"}, {name="test features/use-serde,alloc,fmt"})
+Step.advance("no-std checks")
+Build.run({"cargo", "rustc", "--no-default-features", "--", "-C", "link-arg=-nostartfiles"}, {cwd="tests/no_std_check"})
+Build.run({"cargo", "rustc", "--no-default-features", "--release", "--", "-C", "link-arg=-nostartfiles"}, {cwd="tests/no_std_check"})
+
+Step.advance("differential")
Build.run({"cargo", "build", "--release"}, {cwd="differential-tests", name="build capstone differential"})