authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-07-13 12:58:42-04:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-07-13 22:26:19+02:00
log3ec337484b80647ee23217533c1d62e914afa4f1
tree989450fe99ea16bb7a882ca2a971102b3098151b
parentf2d433a19375734d744656c1c231525aab6ee59f

linker tests: add missing dependOn calls for CheckObject steps


10 files changed, 11 insertions(+), 0 deletions(-)

test/link/macho/dead_strip/build.zig+2
......@@ -16,6 +16,7 @@ pub fn build(b: *std.Build) void {
1616 const check = exe.checkObject();
1717 check.checkInSymtab();
1818 check.checkNext("{*} (__TEXT,__text) external _iAmUnused");
19 test_step.dependOn(&check.step);
1920
2021 const run = b.addRunArtifact(exe);
2122 run.skip_foreign_checks = true;
......@@ -31,6 +32,7 @@ pub fn build(b: *std.Build) void {
3132 const check = exe.checkObject();
3233 check.checkInSymtab();
3334 check.checkNotPresent("{*} (__TEXT,__text) external _iAmUnused");
35 test_step.dependOn(&check.step);
3436
3537 const run = b.addRunArtifact(exe);
3638 run.skip_foreign_checks = true;
test/link/macho/dylib/build.zig+1
......@@ -53,6 +53,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
5353
5454 check_exe.checkStart("cmd RPATH");
5555 check_exe.checkNextFileSource("path", dylib.getOutputDirectorySource());
56 test_step.dependOn(&check_exe.step);
5657
5758 const run = b.addRunArtifact(exe);
5859 run.skip_foreign_checks = true;
test/link/macho/entry/build.zig+1
......@@ -34,6 +34,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
3434 check_exe.checkNext("{n_value} (__TEXT,__text) external _non_main");
3535
3636 check_exe.checkComputeCompare("vmaddr entryoff +", .{ .op = .eq, .value = .{ .variable = "n_value" } });
37 test_step.dependOn(&check_exe.step);
3738
3839 const run = b.addRunArtifact(exe);
3940 run.skip_foreign_checks = true;
test/link/macho/entry_in_dylib/build.zig+1
......@@ -47,6 +47,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
4747 .op = .eq,
4848 .value = .{ .variable = "stubs_vmaddr" }, // The entrypoint should be a synthetic stub
4949 });
50 test_step.dependOn(&check_exe.step);
5051
5152 const run = b.addRunArtifact(exe);
5253 run.skip_foreign_checks = true;
test/link/macho/needed_library/build.zig+1
......@@ -41,6 +41,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
4141 const check = exe.checkObject();
4242 check.checkStart("cmd LOAD_DYLIB");
4343 check.checkNext("name @rpath/liba.dylib");
44 test_step.dependOn(&check.step);
4445
4546 const run = b.addRunArtifact(exe);
4647 run.skip_foreign_checks = true;
test/link/macho/search_strategy/build.zig+1
......@@ -23,6 +23,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
2323 const check = exe.checkObject();
2424 check.checkStart("cmd LOAD_DYLIB");
2525 check.checkNext("name @rpath/libsearch_dylibs_first.dylib");
26 test_step.dependOn(&check.step);
2627
2728 const run = b.addRunArtifact(exe);
2829 run.skip_foreign_checks = true;
test/link/macho/stack_size/build.zig+1
......@@ -27,6 +27,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
2727 const check_exe = exe.checkObject();
2828 check_exe.checkStart("cmd MAIN");
2929 check_exe.checkNext("stacksize 100000000");
30 test_step.dependOn(&check_exe.step);
3031
3132 const run = b.addRunArtifact(exe);
3233 run.skip_foreign_checks = true;
test/link/macho/strict_validation/build.zig+1
......@@ -121,6 +121,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
121121 },
122122 else => unreachable,
123123 }
124 test_step.dependOn(&check_exe.step);
124125
125126 const run = b.addRunArtifact(exe);
126127 run.skip_foreign_checks = true;
test/link/macho/unwind_info/build.zig+1
......@@ -46,6 +46,7 @@ fn testUnwindInfo(
4646
4747 check.checkInSymtab();
4848 check.checkNext("{*} (__TEXT,__text) external ___gxx_personality_v0");
49 test_step.dependOn(&check.step);
4950
5051 const run = b.addRunArtifact(exe);
5152 run.skip_foreign_checks = true;
test/link/macho/weak_library/build.zig+1
......@@ -45,6 +45,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
4545
4646 check.checkInSymtab();
4747 check.checkNext("(undefined) weak external _asStr (from liba)");
48 test_step.dependOn(&check.step);
4849
4950 const run = b.addRunArtifact(exe);
5051 run.skip_foreign_checks = true;