authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-08-05 00:42:53+02:00
committergravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-08-05 00:42:53+02:00
log259f407160f84a1bf33c1aa7bd10318213f52ddf
tree36250015e6f4a85a69ece7287cc8dc73be4e32b9
parent7ffba492a592b5717e8dbc133373788c421c3c9d

init-exe template: align cli tests to new template


1 files changed, 2 insertions(+), 1 deletions(-)

test/cli.zig+2-1
...@@ -104,7 +104,8 @@ fn testZigInitLib(zig_exe: []const u8, dir_path: []const u8) !void {...@@ -104,7 +104,8 @@ fn testZigInitLib(zig_exe: []const u8, dir_path: []const u8) !void {
104fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void {104fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void {
105 _ = try exec(dir_path, true, &[_][]const u8{ zig_exe, "init-exe" });105 _ = try exec(dir_path, true, &[_][]const u8{ zig_exe, "init-exe" });
106 const run_result = try exec(dir_path, true, &[_][]const u8{ zig_exe, "build", "run" });106 const run_result = try exec(dir_path, true, &[_][]const u8{ zig_exe, "build", "run" });
107 try testing.expectEqualStrings("info: All your codebase are belong to us.\n", run_result.stderr);107 try testing.expectEqualStrings("All your codebase are belong to us.\n", run_result.stderr);
108 try testing.expectEqualStrings("Run `zig build test` to run the tests.\n", run_result.stdout);
108}109}
109110
110fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) anyerror!void {111fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) anyerror!void {