Skip to content

Commit

Permalink
feat: create a subdirectory per mode in debug/ (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Zhirkov <[email protected]>
  • Loading branch information
sayon and Igor Zhirkov authored Apr 22, 2024
1 parent bf943e3 commit bf43c6f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 27 deletions.
51 changes: 26 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.to_string();
let specialized_debug_config = self
.debug_config
.as_ref()
.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.to_string();
let specialized_debug_config = self
.debug_config
.as_ref()
.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 bf43c6f

Please sign in to comment.