commit 815dc2c6e77eb6035921bb59fee0844b095ee064 (tree)
parent 8d5acf769336051a18c4905b4fc258349092b36e
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Wed, 27 Apr 2022 21:33:59 +0200
test: enable wasm32-wasi incremental tests
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/test.zig b/src/test.zig
@@ -165,6 +165,12 @@ const ErrorMsg = union(enum) {
}
};
+/// Default config values for known test manifest key-value pairings.
+/// Currently handled defaults are:
+/// * backend
+/// * target
+/// * output_mode
+/// * is_test
const TestManifestConfigDefaults = struct {
/// Asserts if the key doesn't exist - yep, it's an oversight alright.
fn get(@"type": TestManifest.Type, key: []const u8) []const u8 {
@@ -186,7 +192,7 @@ const TestManifestConfigDefaults = struct {
}
// Wasm
defaults = defaults ++ "wasm32-wasi";
- return defaults[0 .. defaults.len - 2];
+ return defaults;
}
} else if (std.mem.eql(u8, key, "output_mode")) {
return switch (@"type") {