Add install step to tests in build script
This commit is contained in:
parent
7c5dcc1cde
commit
8ab80f07b8
|
@ -23,7 +23,7 @@
|
||||||
"name": "Test",
|
"name": "Test",
|
||||||
"type": "gdb",
|
"type": "gdb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"target": "${workspaceFolder}/zig-cache/o/2c2b6e0f85a1dcd7caa00765b05ec679/test",
|
"target": "${workspaceFolder}/zig-cache/o/acfc38b60cc59a70f8386ac73748d92a/test",
|
||||||
"arguments": "main.zig",
|
"arguments": "main.zig",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"valuesFormatting": "parseText",
|
"valuesFormatting": "parseText",
|
||||||
|
|
|
@ -39,6 +39,7 @@ pub fn build(builder: *std.build.Builder) void {
|
||||||
tests.addPackage(core_pkg);
|
tests.addPackage(core_pkg);
|
||||||
tests.setTarget(target);
|
tests.setTarget(target);
|
||||||
tests.setBuildMode(mode);
|
tests.setBuildMode(mode);
|
||||||
|
tests.install();
|
||||||
builder.step("test", "Run unit tests").dependOn(&tests.step);
|
builder.step("test", "Run unit tests").dependOn(&tests.step);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue