Skip to content

Commit

Permalink
feature: create a subdirectory per mode in debug/
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zhirkov authored and Igor Zhirkov committed Apr 13, 2024
1 parent d0d2562 commit 58d2852
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions compiler_tester/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,17 @@ impl CompilerTester {
let _: Vec<()> = tests
.into_par_iter()
.map(|(test, compiler, mode)| {
let mode_string = mode.clone().to_string();
let specialized_debug_config = self
.debug_config
.clone()
.and_then(|config| config.create_subdirectory(mode_string.as_str()).ok());
if let Some(test) = test.build_for_eravm(
mode,
compiler,
self.summary.clone(),
&self.filters,
self.debug_config.clone(),
specialized_debug_config,
) {
test.run::<D, M>(self.summary.clone(), vm.clone());
}
Expand All @@ -143,12 +148,17 @@ impl CompilerTester {
let _: Vec<()> = tests
.into_par_iter()
.map(|(test, compiler, mode)| {
let mode_string = mode.clone().to_string();
let specialized_debug_config = self
.debug_config
.clone()
.and_then(|config| config.create_subdirectory(mode_string.as_str()).ok());
if let Some(test) = test.build_for_evm(
mode,
compiler,
self.summary.clone(),
&self.filters,
self.debug_config.clone(),
specialized_debug_config,
) {
test.run(self.summary.clone());
}
Expand Down

0 comments on commit 58d2852

Please sign in to comment.