Skip to content

Commit

Permalink
run_benchmarks without bash script wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Jul 5, 2024
1 parent 8e4834e commit 59f3087
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions build/build/src/enso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,21 @@ impl BuiltEnso {
}

pub async fn run_benchmarks(&self, opt: BenchmarkOptions) -> Result {
self.cmd()?
.with_args(["--jvm", "--run", self.paths.repo_root.test.benchmarks.as_str()])
let filename = format!("enso{}", if TARGET_OS == OS::Windows { ".exe" } else { "" });
let enso = self
.paths
.repo_root
.built_distribution
.enso_engine_triple
.engine_package
.bin
.join(filename);
let benchmarks = Command::new(&enso)
.args(["--jvm", "--run", self.paths.repo_root.test.benchmarks.as_str()])
.set_env(ENSO_BENCHMARK_TEST_DRY_RUN, &Boolean::from(opt.dry_run))?
.run_ok()
.await
.await;
Ok(benchmarks?)
}

pub fn run_test(&self, test_path: impl AsRef<Path>, ir_caches: IrCaches) -> Result<Command> {
Expand Down

0 comments on commit 59f3087

Please sign in to comment.