authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-04 20:34:11+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-04 20:51:07+02:00
logc68f9bc207e04bb17fe7594f62c202dfd3ccbae4
tree3984705e4683b55bbe0a7d1596c369f115b85936
parentb5ec75b7e7343b04a7b7734ed5a1726e121225aa
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test: remove some tests that are now covered well enough by test-stack-traces

The amount of cross compilation required for these tests was too time-consuming for how much value they added. test-stack-traces now cover these well enough, especially as we add more exotic machines to the CI fleet to run native tests.

7 files changed, 0 insertions(+), 125 deletions(-)

test/cases/pic_freestanding.zig deleted-14
......@@ -1,14 +0,0 @@
1const builtin = @import("builtin");
2const std = @import("std");
3
4pub fn _start() callconv(.naked) void {}
5
6comptime {
7 @export(&_start, .{ .name = if (builtin.cpu.arch.isMIPS()) "__start" else "_start" });
8}
9
10// compile
11// backend=selfhosted,llvm
12// target=arm-freestanding,armeb-freestanding,thumb-freestanding,thumbeb-freestanding,aarch64-freestanding,aarch64_be-freestanding,loongarch64-freestanding,mips-freestanding,mipsel-freestanding,mips64-freestanding,mips64el-freestanding,powerpc-freestanding,powerpcle-freestanding,powerpc64-freestanding,powerpc64le-freestanding,riscv32-freestanding,riscv64-freestanding,s390x-freestanding,x86-freestanding,x86_64-freestanding
13// pic=true
14// output_mode=Exe
test/cases/pic_linux.zig deleted-14
......@@ -1,14 +0,0 @@
1const std = @import("std");
2
3// Eventually, this test should be made to work without libc by providing our
4// own `__tls_get_addr` implementation. powerpcle-linux should be added to the
5// target list here when that happens.
6//
7// https://github.com/ziglang/zig/issues/20625
8pub fn main() void {}
9
10// run
11// backend=selfhosted,llvm
12// target=arm-linux,armeb-linux,thumb-linux,thumbeb-linux,aarch64-linux,aarch64_be-linux,loongarch64-linux,mips-linux,mipsel-linux,mips64-linux,mips64el-linux,powerpc-linux,powerpc64-linux,powerpc64le-linux,riscv32-linux,riscv64-linux,s390x-linux,x86-linux,x86_64-linux
13// pic=true
14// link_libc=true
test/cases/pie_freestanding.zig deleted-16
......@@ -1,16 +0,0 @@
1const builtin = @import("builtin");
2const std = @import("std");
3
4// The self-hosted backends currently output a bunch of bad relocations for PIE,
5// so this test is LLVM only for now.
6fn _start() callconv(.naked) void {}
7
8comptime {
9 @export(&_start, .{ .name = if (builtin.cpu.arch.isMIPS()) "__start" else "_start" });
10}
11
12// compile
13// backend=llvm
14// target=arm-freestanding,armeb-freestanding,thumb-freestanding,thumbeb-freestanding,aarch64-freestanding,aarch64_be-freestanding,loongarch64-freestanding,mips-freestanding,mipsel-freestanding,mips64-freestanding,mips64el-freestanding,powerpc-freestanding,powerpcle-freestanding,powerpc64-freestanding,powerpc64le-freestanding,riscv32-freestanding,riscv64-freestanding,s390x-freestanding,x86-freestanding,x86_64-freestanding
15// pie=true
16// output_mode=Exe
test/cases/pie_linux.zig deleted-10
......@@ -1,10 +0,0 @@
1const std = @import("std");
2
3// The self-hosted backends can't handle `.hidden _DYNAMIC` and `.weak _DYNAMIC`
4// directives in inline assembly yet, so this test is LLVM only for now.
5pub fn main() void {}
6
7// run
8// backend=llvm
9// target=arm-linux,armeb-linux,thumb-linux,thumbeb-linux,aarch64-linux,aarch64_be-linux,loongarch64-linux,mips-linux,mipsel-linux,mips64-linux,mips64el-linux,powerpc-linux,powerpcle-linux,powerpc64-linux,powerpc64le-linux,riscv32-linux,riscv64-linux,s390x-linux,x86-linux,x86_64-linux
10// pie=true
test/standalone/build.zig.zon-3
......@@ -193,9 +193,6 @@
193193 .empty_global_error_set = .{
194194 .path = "empty_global_error_set",
195195 },
196 .omit_cfi = .{
197 .path = "omit_cfi",
198 },
199196 .config_header = .{
200197 .path = "config_header",
201198 },
test/standalone/omit_cfi/build.zig deleted-67
......@@ -1,67 +0,0 @@
1const std = @import("std");
2
3pub fn build(b: *std.Build) void {
4 inline for (.{
5 .aarch64,
6 .aarch64_be,
7 .hexagon,
8 .loongarch64,
9 .mips,
10 .mipsel,
11 .mips64,
12 .mips64el,
13 .powerpc,
14 .powerpcle,
15 .powerpc64,
16 .powerpc64le,
17 .riscv32,
18 .riscv64,
19 .s390x,
20 .sparc64,
21 .x86,
22 .x86_64,
23 }) |arch| {
24 const target = b.resolveTargetQuery(.{
25 .cpu_arch = arch,
26 .os_tag = .linux,
27 });
28
29 const omit_dbg = b.addExecutable(.{
30 .name = b.fmt("{s}-linux-omit-dbg", .{@tagName(arch)}),
31 .root_module = b.createModule(.{
32 .root_source_file = b.path("main.zig"),
33 .target = target,
34 .optimize = .Debug,
35 // We are mainly concerned with CFI directives in our non-libc startup code and syscall
36 // code, so make it explicit that we don't want libc.
37 .link_libc = false,
38 .strip = true,
39 }),
40 });
41
42 const omit_uwt = b.addExecutable(.{
43 .name = b.fmt("{s}-linux-omit-uwt", .{@tagName(arch)}),
44 .root_module = b.createModule(.{
45 .root_source_file = b.path("main.zig"),
46 .target = target,
47 .optimize = .Debug,
48 .link_libc = false,
49 .unwind_tables = .none,
50 }),
51 });
52
53 const omit_both = b.addExecutable(.{
54 .name = b.fmt("{s}-linux-omit-both", .{@tagName(arch)}),
55 .root_module = b.createModule(.{
56 .root_source_file = b.path("main.zig"),
57 .target = target,
58 .optimize = .Debug,
59 .link_libc = false,
60 .strip = true,
61 .unwind_tables = .none,
62 }),
63 });
64
65 inline for (.{ omit_dbg, omit_uwt, omit_both }) |step| b.installArtifact(step);
66 }
67}
test/standalone/omit_cfi/main.zig deleted-1
......@@ -1 +0,0 @@
1pub fn main() void {}