mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 10:45:48 +08:00
test-incremental: convert tests to new format
This commit is contained in:
1 parent
4e4e8902e5
commit
ec261c5e8d
82 files changed
+1739
-2309
No files matched your search
@@ -125,7 +125,6 @@ pub fn build(b: *std.Build) !void {
|
||||
const skip_darwin = b.option(bool, "skip-darwin", "Main test suite skips targets with darwin OSs") orelse false;
|
||||
const skip_linux = b.option(bool, "skip-linux", "Main test suite skips targets with linux OS") orelse false;
|
||||
const skip_llvm = b.option(bool, "skip-llvm", "Main test suite skips targets that use LLVM backend") orelse false;
|
||||
const skip_test_incremental = b.option(bool, "skip-test-incremental", "Main test step omits dependency on test-incremental step") orelse false;
|
||||
|
||||
const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false;
|
||||
|
||||
@@ -781,22 +780,6 @@ pub fn build(b: *std.Build) !void {
|
||||
test_step.dependOn(check_oracle_step);
|
||||
}
|
||||
|
||||
const test_incremental_step = b.step("test-incremental", "Run the incremental compilation test cases");
|
||||
try tests.addIncrementalTests(b, test_incremental_step, .{
|
||||
.test_filters = test_filters,
|
||||
.test_target_filters = test_target_filters,
|
||||
.skip_non_native = skip_non_native,
|
||||
.skip_wasm = skip_wasm,
|
||||
.skip_freebsd = skip_freebsd,
|
||||
.skip_netbsd = skip_netbsd,
|
||||
.skip_openbsd = skip_openbsd,
|
||||
.skip_windows = skip_windows,
|
||||
.skip_darwin = skip_darwin,
|
||||
.skip_linux = skip_linux,
|
||||
.skip_llvm = skip_llvm,
|
||||
});
|
||||
if (!skip_test_incremental) test_step.dependOn(test_incremental_step);
|
||||
|
||||
if (tests.addLibcTestNszTests(b, .{
|
||||
.optimize_modes = optimize_modes,
|
||||
.test_filters = test_filters,
|
||||
@@ -812,7 +795,7 @@ pub fn build(b: *std.Build) !void {
|
||||
.target = b.graph.host,
|
||||
}),
|
||||
});
|
||||
test_step.dependOn(try tests.addNewIncrementalTests(b, runner, .{
|
||||
test_step.dependOn(try tests.addIncrementalTests(b, runner, .{
|
||||
.test_filters = test_filters,
|
||||
.test_target_filters = test_target_filters,
|
||||
.skip_non_native = skip_non_native,
|
||||
|
||||
Reference in new issue
Block a user