diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-05-13 00:00:20 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-05-13 14:03:20 -0700 |
| commit | 66f3efb63b4b352b1dbbaa4216fb3b0dabac3f3e (patch) | |
| tree | 5a5613dc1f64234b122883ae518ce970e5da8cec /test/tests.zig | |
| parent | f32928c50dabde1dee40b7137beef0fe72e89b49 (diff) | |
| download | zig-66f3efb63b4b352b1dbbaa4216fb3b0dabac3f3e.tar.gz zig-66f3efb63b4b352b1dbbaa4216fb3b0dabac3f3e.zip | |
migrate runtime safety tests to the new test harness
* migrate runtime safety tests to the new test harness
- this required adding compare output / execution support for stage1
to the test harness.
* rename `zig build test-stage2` to `zig build test-cases` since it now
does quite a bit of stage1 testing actually. I named it this way
since the main directory in the source tree associated with these
tests is "test/cases/".
* add some documentation for the test manifest format.
Diffstat (limited to 'test/tests.zig')
| -rw-r--r-- | test/tests.zig | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/tests.zig b/test/tests.zig index 62c437e7f7..e44b190bb4 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -18,7 +18,6 @@ const compare_output = @import("compare_output.zig"); const standalone = @import("standalone.zig"); const stack_traces = @import("stack_traces.zig"); const assemble_and_link = @import("assemble_and_link.zig"); -const runtime_safety = @import("runtime_safety.zig"); const translate_c = @import("translate_c.zig"); const run_translated_c = @import("run_translated_c.zig"); const gen_h = @import("gen_h.zig"); @@ -455,21 +454,6 @@ pub fn addStackTraceTests(b: *build.Builder, test_filter: ?[]const u8, modes: [] return cases.step; } -pub fn addRuntimeSafetyTests(b: *build.Builder, test_filter: ?[]const u8, modes: []const Mode) *build.Step { - const cases = b.allocator.create(CompareOutputContext) catch unreachable; - cases.* = CompareOutputContext{ - .b = b, - .step = b.step("test-runtime-safety", "Run the runtime safety tests"), - .test_index = 0, - .test_filter = test_filter, - .modes = modes, - }; - - runtime_safety.addCases(cases); - - return cases.step; -} - pub fn addStandaloneTests( b: *build.Builder, test_filter: ?[]const u8, |
