pub struct TestProps {Show 49 fields
pub error_patterns: Vec<String>,
pub regex_error_patterns: Vec<String>,
pub compile_flags: Vec<String>,
pub run_flags: Vec<String>,
pub doc_flags: Vec<String>,
pub pp_exact: Option<Utf8PathBuf>,
pub(crate) aux: AuxProps,
pub rustc_env: Vec<(String, String)>,
pub unset_rustc_env: Vec<String>,
pub exec_env: Vec<(String, String)>,
pub unset_exec_env: Vec<String>,
pub build_aux_docs: bool,
pub unique_doc_out_dir: bool,
pub force_host: bool,
pub check_stdout: bool,
pub check_run_results: bool,
pub dont_check_compiler_stdout: bool,
pub dont_check_compiler_stderr: bool,
pub no_prefer_dynamic: bool,
pub pretty_mode: String,
pub pretty_compare_only: bool,
pub forbid_output: Vec<String>,
pub revisions: Vec<String>,
pub incremental_dir: Option<Utf8PathBuf>,
pub incremental: bool,
pub known_bug: bool,
pass_mode: Option<PassMode>,
ignore_pass: bool,
pub fail_mode: Option<FailMode>,
pub check_test_line_numbers_match: bool,
pub normalize_stdout: Vec<(String, String)>,
pub normalize_stderr: Vec<(String, String)>,
pub failure_status: Option<i32>,
pub dont_check_failure_status: bool,
pub run_rustfix: bool,
pub rustfix_only_machine_applicable: bool,
pub assembly_output: Option<String>,
pub should_ice: bool,
pub stderr_per_bitwidth: bool,
pub mir_unit_test: Option<String>,
pub remap_src_base: bool,
pub llvm_cov_flags: Vec<String>,
pub filecheck_flags: Vec<String>,
pub no_auto_check_cfg: bool,
pub has_enzyme: bool,
pub add_core_stubs: bool,
pub dont_require_annotations: HashSet<ErrorKind>,
pub disable_gdb_pretty_printers: bool,
pub compare_output_by_lines: bool,
}Fields§
§error_patterns: Vec<String>§regex_error_patterns: Vec<String>§compile_flags: Vec<String>§run_flags: Vec<String>§doc_flags: Vec<String>Extra flags to pass to rustdoc but not the compiler.
pp_exact: Option<Utf8PathBuf>§aux: AuxPropsAuxiliary crates that should be built and made available to this test.
rustc_env: Vec<(String, String)>§unset_rustc_env: Vec<String>§exec_env: Vec<(String, String)>§unset_exec_env: Vec<String>§build_aux_docs: bool§unique_doc_out_dir: boolBuild the documentation for each crate in a unique output directory.
Uses <root output directory>/docs/<test name>/doc.
force_host: bool§check_stdout: bool§check_run_results: bool§dont_check_compiler_stdout: bool§dont_check_compiler_stderr: bool§no_prefer_dynamic: bool§pretty_mode: String§pretty_compare_only: bool§forbid_output: Vec<String>§revisions: Vec<String>§incremental_dir: Option<Utf8PathBuf>§incremental: bool§known_bug: bool§pass_mode: Option<PassMode>§ignore_pass: bool§fail_mode: Option<FailMode>§check_test_line_numbers_match: bool§normalize_stdout: Vec<(String, String)>§normalize_stderr: Vec<(String, String)>§failure_status: Option<i32>§dont_check_failure_status: bool§run_rustfix: bool§rustfix_only_machine_applicable: bool§assembly_output: Option<String>§should_ice: bool§stderr_per_bitwidth: bool§mir_unit_test: Option<String>§remap_src_base: bool§llvm_cov_flags: Vec<String>Extra flags to pass to llvm-cov when producing coverage reports.
Only used by the “coverage-run” test mode.
filecheck_flags: Vec<String>Extra flags to pass to LLVM’s filecheck tool, in tests that use it.
no_auto_check_cfg: boolDon’t automatically insert any --check-cfg args
has_enzyme: boolRun tests which require enzyme being build
add_core_stubs: boolBuild and use minicore as core stub for no_core tests in cross-compilation scenarios
that don’t otherwise want/need -Z build-std.
dont_require_annotations: HashSet<ErrorKind>Whether line annotatins are required for the given error kind.
disable_gdb_pretty_printers: boolWhether pretty printers should be disabled in gdb.
compare_output_by_lines: boolCompare the output by lines, rather than as a single string.
Implementations§
Source§impl TestProps
impl TestProps
pub fn new() -> Self
pub fn from_aux_file( &self, testfile: &Utf8Path, revision: Option<&str>, config: &Config, ) -> Self
pub fn from_file( testfile: &Utf8Path, revision: Option<&str>, config: &Config, ) -> Self
Sourcefn load_from(
&mut self,
testfile: &Utf8Path,
test_revision: Option<&str>,
config: &Config,
)
fn load_from( &mut self, testfile: &Utf8Path, test_revision: Option<&str>, config: &Config, )
Loads properties from testfile into props. If a property is
tied to a particular revision foo (indicated by writing
//@[foo]), then the property is ignored unless test_revision is
Some("foo").
fn update_fail_mode(&mut self, ln: &str, config: &Config)
fn update_pass_mode( &mut self, ln: &str, revision: Option<&str>, config: &Config, )
pub fn pass_mode(&self, config: &Config) -> Option<PassMode>
pub fn local_pass_mode(&self) -> Option<PassMode>
pub fn update_add_core_stubs(&mut self, ln: &str, config: &Config)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestProps
impl RefUnwindSafe for TestProps
impl Send for TestProps
impl Sync for TestProps
impl Unpin for TestProps
impl UnwindSafe for TestProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 688 bytes