tangled
alpha
login
or
join now
altagos.dev
/
aether
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
make it easier to add tests to test step
altagos.dev
9 months ago
ef43edf7
6f097d91
verified
This commit was signed with the committer's
known signature
.
altagos.dev
SSH Key Fingerprint:
SHA256:UbTjEcCZlc6GzQWLCuDK3D//HESWD2xFPkzue9XMras=
+11
-11
2 changed files
expand all
collapse all
unified
split
README.md
build.zig
+3
README.md
···
1
1
+
# Aeather
2
2
+
3
3
+
+8
-11
build.zig
···
36
36
run_cmd.addArgs(args);
37
37
}
38
38
39
39
+
const test_step = b.step("test", "Run tests");
40
40
+
addTest(b, test_step, mod, "aether");
41
41
+
addTest(b, test_step, mod_exe, "aether-exe");
42
42
+
}
43
43
+
44
44
+
fn addTest(b: *std.Build, step: *std.Build.Step, mod: *std.Build.Module, name: ?[]const u8) void {
39
45
const mod_tests = b.addTest(.{
40
46
.root_module = mod,
47
47
+
.name = if (name) |n| n else "test",
41
48
});
42
42
-
43
49
const run_mod_tests = b.addRunArtifact(mod_tests);
44
44
-
45
45
-
const exe_tests = b.addTest(.{
46
46
-
.root_module = exe.root_module,
47
47
-
});
48
48
-
49
49
-
const run_exe_tests = b.addRunArtifact(exe_tests);
50
50
-
51
51
-
const test_step = b.step("test", "Run tests");
52
52
-
test_step.dependOn(&run_mod_tests.step);
53
53
-
test_step.dependOn(&run_exe_tests.step);
50
50
+
step.dependOn(&run_mod_tests.step);
54
51
}