structstd.Build.TestOptions[src]

Fields

name: []const u8 = "test"
max_rss: usize = 0
filter: ?[]const u8 = null

Deprecated; use .filters = &.{filter} instead of .filter = filter.

filters: []const []const u8 = &.{}
test_runner: ?Step.Compile.TestRunner = null
use_llvm: ?bool = null
use_lld: ?bool = null
zig_lib_dir: ?LazyPath = null
root_module: ?*Module = null

Prefer populating this field (using e.g. createModule) instead of populating the following fields (root_source_file etc). In a future release, those fields will be removed, and this field will become non-optional.

root_source_file: ?LazyPath = null

Deprecated; prefer populating root_module.

target: ?ResolvedTarget = null

Deprecated; prefer populating root_module.

optimize: std.builtin.OptimizeMode = .Debug

Deprecated; prefer populating root_module.

version: ?std.SemanticVersion = null

Deprecated; prefer populating root_module.

link_libc: ?bool = null

Deprecated; prefer populating root_module.

link_libcpp: ?bool = null

Deprecated; prefer populating root_module.

single_threaded: ?bool = null

Deprecated; prefer populating root_module.

pic: ?bool = null

Deprecated; prefer populating root_module.

strip: ?bool = null

Deprecated; prefer populating root_module.

unwind_tables: ?std.builtin.UnwindTables = null

Deprecated; prefer populating root_module.

omit_frame_pointer: ?bool = null

Deprecated; prefer populating root_module.

sanitize_thread: ?bool = null

Deprecated; prefer populating root_module.

error_tracing: ?bool = null

Deprecated; prefer populating root_module.

Source Code

Source code
pub const TestOptions = struct {
    name: []const u8 = "test",
    max_rss: usize = 0,
    /// Deprecated; use `.filters = &.{filter}` instead of `.filter = filter`.
    filter: ?[]const u8 = null,
    filters: []const []const u8 = &.{},
    test_runner: ?Step.Compile.TestRunner = null,
    use_llvm: ?bool = null,
    use_lld: ?bool = null,
    zig_lib_dir: ?LazyPath = null,

    /// Prefer populating this field (using e.g. `createModule`) instead of populating
    /// the following fields (`root_source_file` etc). In a future release, those fields
    /// will be removed, and this field will become non-optional.
    root_module: ?*Module = null,

    /// Deprecated; prefer populating `root_module`.
    root_source_file: ?LazyPath = null,
    /// Deprecated; prefer populating `root_module`.
    target: ?ResolvedTarget = null,
    /// Deprecated; prefer populating `root_module`.
    optimize: std.builtin.OptimizeMode = .Debug,
    /// Deprecated; prefer populating `root_module`.
    version: ?std.SemanticVersion = null,
    /// Deprecated; prefer populating `root_module`.
    link_libc: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    link_libcpp: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    single_threaded: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    pic: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    strip: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    unwind_tables: ?std.builtin.UnwindTables = null,
    /// Deprecated; prefer populating `root_module`.
    omit_frame_pointer: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    sanitize_thread: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    error_tracing: ?bool = null,
}