Add macosx end-to-end smoke test

This test case will grow as the linker gets more functionality.

Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
This commit is contained in:
Jakub Konka 2020-08-20 17:25:39 +02:00
parent e0a38f7f3e
commit 243b5c7a88

View File

@ -8,6 +8,11 @@ const linux_x64 = std.zig.CrossTarget{
.os_tag = .linux,
};
const macosx_x64 = std.zig.CrossTarget{
.cpu_arch = .x86_64,
.os_tag = .macosx,
};
const linux_riscv64 = std.zig.CrossTarget{
.cpu_arch = .riscv64,
.os_tag = .linux,
@ -133,6 +138,11 @@ pub fn addCases(ctx: *TestContext) !void {
);
}
{
var case = ctx.exe("hello world", macosx_x64);
case.addError("", &[_][]const u8{":1:1: error: no entry point found"});
}
{
var case = ctx.exe("hello world", linux_riscv64);
// Regular old hello world