Commit ca2e17e0a1
Changed files (2)
src/Compilation.zig
@@ -255,7 +255,6 @@ mutex: if (builtin.single_threaded) struct {
} else std.Thread.Mutex = .{},
test_filters: []const []const u8,
-test_name_prefix: ?[]const u8,
link_task_wait_group: WaitGroup = .{},
link_prog_node: std.Progress.Node = std.Progress.Node.none,
@@ -1766,7 +1765,6 @@ pub const CreateOptions = struct {
clang_preprocessor_mode: ClangPreprocessorMode = .no,
reference_trace: ?u32 = null,
test_filters: []const []const u8 = &.{},
- test_name_prefix: ?[]const u8 = null,
test_runner_path: ?[]const u8 = null,
subsystem: ?std.Target.SubSystem = null,
mingw_unicode_entry_point: bool = false,
@@ -2266,7 +2264,6 @@ pub fn create(gpa: Allocator, arena: Allocator, diag: *CreateDiagnostic, options
.time_report = if (options.time_report) .init else null,
.stack_report = options.stack_report,
.test_filters = options.test_filters,
- .test_name_prefix = options.test_name_prefix,
.debug_compiler_runtime_libs = options.debug_compiler_runtime_libs,
.debug_compile_errors = options.debug_compile_errors,
.debug_incremental = options.debug_incremental,
@@ -2416,7 +2413,6 @@ pub fn create(gpa: Allocator, arena: Allocator, diag: *CreateDiagnostic, options
hash.add(options.config.dll_export_fns);
hash.add(options.config.is_test);
hash.addListOfBytes(options.test_filters);
- hash.addOptionalBytes(options.test_name_prefix);
hash.add(options.skip_linker_dependencies);
hash.add(options.emit_h != .no);
hash.add(error_limit);
@@ -3450,7 +3446,6 @@ fn addNonIncrementalStuffToCacheManifest(
// Synchronize with other matching comments: ZigOnlyHashStuff
man.hash.addListOfBytes(comp.test_filters);
- man.hash.addOptionalBytes(comp.test_name_prefix);
man.hash.add(comp.skip_linker_dependencies);
//man.hash.add(zcu.emit_h != .no);
man.hash.add(zcu.error_limit);
src/main.zig
@@ -668,10 +668,8 @@ const usage_build_generic =
\\
\\Test Options:
\\ --test-filter [text] Skip tests that do not match any filter
- \\ --test-name-prefix [text] Add prefix to all tests
\\ --test-cmd [arg] Specify test execution command one arg at a time
\\ --test-cmd-bin Appends test binary path to test cmd args
- \\ --test-evented-io Runs the test in evented I/O mode
\\ --test-no-exec Compiles test binary without running it
\\ --test-runner [path] Specify a custom test runner
\\
@@ -896,7 +894,6 @@ fn buildOutputType(
var build_id: ?std.zig.BuildId = null;
var runtime_args_start: ?usize = null;
var test_filters: std.ArrayListUnmanaged([]const u8) = .empty;
- var test_name_prefix: ?[]const u8 = null;
var test_runner_path: ?[]const u8 = null;
var override_local_cache_dir: ?[]const u8 = try EnvVar.ZIG_LOCAL_CACHE_DIR.get(arena);
var override_global_cache_dir: ?[]const u8 = try EnvVar.ZIG_GLOBAL_CACHE_DIR.get(arena);
@@ -1326,8 +1323,6 @@ fn buildOutputType(
create_module.libc_paths_file = args_iter.nextOrFatal();
} else if (mem.eql(u8, arg, "--test-filter")) {
try test_filters.append(arena, args_iter.nextOrFatal());
- } else if (mem.eql(u8, arg, "--test-name-prefix")) {
- test_name_prefix = args_iter.nextOrFatal();
} else if (mem.eql(u8, arg, "--test-runner")) {
test_runner_path = args_iter.nextOrFatal();
} else if (mem.eql(u8, arg, "--test-cmd")) {
@@ -3495,7 +3490,6 @@ fn buildOutputType(
.stack_report = stack_report,
.build_id = build_id,
.test_filters = test_filters.items,
- .test_name_prefix = test_name_prefix,
.test_runner_path = test_runner_path,
.cache_mode = cache_mode,
.subsystem = subsystem,