Skip to content

Commit

Permalink
build: Remove filtered tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ibokuri committed Dec 27, 2023
1 parent f75ab0f commit 08337d7
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,6 @@ pub fn build(b: *std.build.Builder) void {
const test_ser_step = b.step("test-ser", "Run serialization tests");
const test_de_step = b.step("test-de", "Run deserialization tests");

// Allow a test filter to be specified.
//
// ## Examples
//
// ```
// $ zig build test -- "serialize - array"
// ```
if (b.args) |args| {
switch (args.len) {
0 => unreachable, // UNREACHABLE: b.args is null if no arguments are given.
1 => {
const cmd = b.addSystemCommand(&[_][]const u8{
"zig",
"test",
"--main-pkg-path",
"src/",
package_path,
"--test-filter",
args[0],
});

test_all_step.dependOn(&cmd.step);

return;
},
else => |len| std.debug.panic("expected 1 argument, found {}", .{len}),
}
}

// Serialization tests.
const t_ser = b.addTest(.{
.name = "serialization test",
Expand Down

0 comments on commit 08337d7

Please sign in to comment.