MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / run_target

Method run_target

cranelift/filetests/src/subtest.rs:76–106  ·  view source on GitHub ↗

Runs the entire subtest for a given target, invokes [Self::run] for running individual tests.

(
        &self,
        testfile: &TestFile,
        file_update: &mut FileUpdate,
        file_path: &'a str,
        flags: &'a Flags,
        isa: Option<&'a dyn TargetIsa>,
    )

Source from the content-addressed store, hash-verified

74 /// Runs the entire subtest for a given target, invokes [Self::run] for running
75 /// individual tests.
76 fn run_target<'a>(
77 &self,
78 testfile: &TestFile,
79 file_update: &mut FileUpdate,
80 file_path: &'a str,
81 flags: &'a Flags,
82 isa: Option<&'a dyn TargetIsa>,
83 ) -> anyhow::Result<()> {
84 for (func, details) in &testfile.functions {
85 info!(
86 "Test: {}({}) {}",
87 self.name(),
88 func.name,
89 isa.map_or("-", TargetIsa::name)
90 );
91
92 let context = Context {
93 preamble_comments: &testfile.preamble_comments,
94 details,
95 flags,
96 isa,
97 file_path: file_path.as_ref(),
98 file_update,
99 };
100
101 self.run(Cow::Borrowed(&func), &context)
102 .context(self.name())?;
103 }
104
105 Ok(())
106 }
107
108 /// Run this test on `func`.
109 fn run(&self, func: Cow<Function>, context: &Context) -> anyhow::Result<()>;

Callers

nothing calls this directly

Implementers 13

test_run.rscranelift/filetests/src/test_run.rs
test_unwind.rscranelift/filetests/src/test_unwind.rs
test_compile.rscranelift/filetests/src/test_compile.r
test_optimize.rscranelift/filetests/src/test_optimize.
test_print_cfg.rscranelift/filetests/src/test_print_cfg
test_interpret.rscranelift/filetests/src/test_interpret
test_verifier.rscranelift/filetests/src/test_verifier.
test_alias_analysis.rscranelift/filetests/src/test_alias_ana
test_cat.rscranelift/filetests/src/test_cat.rs
test_legalizer.rscranelift/filetests/src/test_legalizer
test_safepoint.rscranelift/filetests/src/test_safepoint
test_domtree.rscranelift/filetests/src/test_domtree.r

Calls 5

OkFunction · 0.85
as_refMethod · 0.45
contextMethod · 0.45
runMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected