mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
init-exe template: align cli tests to new template
This commit is contained in:
parent
7ffba492a5
commit
259f407160
1 changed files with 2 additions and 1 deletions
|
|
@ -104,7 +104,8 @@ fn testZigInitLib(zig_exe: []const u8, dir_path: []const u8) !void {
|
||||||
fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void {
|
fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void {
|
||||||
_ = try exec(dir_path, true, &[_][]const u8{ zig_exe, "init-exe" });
|
_ = try exec(dir_path, true, &[_][]const u8{ zig_exe, "init-exe" });
|
||||||
const run_result = try exec(dir_path, true, &[_][]const u8{ zig_exe, "build", "run" });
|
const run_result = try exec(dir_path, true, &[_][]const u8{ zig_exe, "build", "run" });
|
||||||
try testing.expectEqualStrings("info: All your codebase are belong to us.\n", run_result.stderr);
|
try testing.expectEqualStrings("All your codebase are belong to us.\n", run_result.stderr);
|
||||||
|
try testing.expectEqualStrings("Run `zig build test` to run the tests.\n", run_result.stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) anyerror!void {
|
fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) anyerror!void {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue