Runs the entire subtest for a given target, invokes [Self::run] for running individual tests.
(
&self,
testfile: &TestFile,
_: &mut FileUpdate,
_: &'a str,
_: &'a Flags,
_: Option<&'a dyn TargetIsa>,
)
| 45 | /// Runs the entire subtest for a given target, invokes [Self::run] for running |
| 46 | /// individual tests. |
| 47 | fn run_target<'a>( |
| 48 | &self, |
| 49 | testfile: &TestFile, |
| 50 | _: &mut FileUpdate, |
| 51 | _: &'a str, |
| 52 | _: &'a Flags, |
| 53 | _: Option<&'a dyn TargetIsa>, |
| 54 | ) -> anyhow::Result<()> { |
| 55 | // We can build the FunctionStore once and reuse it |
| 56 | let mut func_store = FunctionStore::default(); |
| 57 | for (func, _) in &testfile.functions { |
| 58 | func_store.add(func.name.to_string(), &func); |
| 59 | } |
| 60 | |
| 61 | for (func, details) in &testfile.functions { |
| 62 | info!("Test: {}({}) interpreter", self.name(), func.name); |
| 63 | |
| 64 | run_test(&func_store, func, details).context(self.name())?; |
| 65 | } |
| 66 | |
| 67 | Ok(()) |
| 68 | } |
| 69 | |
| 70 | fn run( |
| 71 | &self, |