diff --git a/tasks/transform_conformance/src/lib.rs b/tasks/transform_conformance/src/lib.rs index bba0616aa90622..3fbe4a3bae66b5 100644 --- a/tasks/transform_conformance/src/lib.rs +++ b/tasks/transform_conformance/src/lib.rs @@ -24,6 +24,7 @@ fn test() { #[derive(Default, Clone)] pub struct TestRunnerOptions { + pub debug: bool, pub filter: Option, pub exec: bool, } diff --git a/tasks/transform_conformance/src/main.rs b/tasks/transform_conformance/src/main.rs index 92fe3bccf54811..0f0fb6b2a714e7 100644 --- a/tasks/transform_conformance/src/main.rs +++ b/tasks/transform_conformance/src/main.rs @@ -5,6 +5,7 @@ fn main() { let mut args = Arguments::from_env(); let options = TestRunnerOptions { + debug: args.contains("--debug"), filter: args.opt_value_from_str("--filter").unwrap(), exec: args.contains("--exec"), }; diff --git a/tasks/transform_conformance/src/test_case.rs b/tasks/transform_conformance/src/test_case.rs index 30665e2b23948e..88758d2eedd992 100644 --- a/tasks/transform_conformance/src/test_case.rs +++ b/tasks/transform_conformance/src/test_case.rs @@ -191,6 +191,10 @@ impl TestCase { } pub fn test(&mut self, options: &TestRunnerOptions) { + if options.debug { + println!("{}", self.path.to_string_lossy()); + } + let filtered = options.filter.is_some(); match self.kind { TestCaseKind::Conformance => self.test_conformance(filtered),