Skip to content

Commit

Permalink
Add test for --jvm arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Nov 13, 2024
1 parent 46022f2 commit ea3af5f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion build/build/src/engine/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ pub async fn runner_sanity_test(
.bin
.join("enso")
.with_executable_extension();

let test_base = Command::new(&enso)
.args(["--run", repo_root.test.join("Base_Tests").as_str()])
.set_env(ENSO_DATA_DIRECTORY, engine_package)?
Expand All @@ -686,7 +687,20 @@ pub async fn runner_sanity_test(
.run_ok()
.await;

test_base.and(test_internal_base).and(test_geo)
// The following test does not actually run anything, it just checks if the engine
// can accept `--jvm` argument and evaluates something.
let test_jvm_arg = Command::new(&enso)
.args([
"--jvm",
"--run",
repo_root.test.join("Base_Tests").as_str(),
"__NON_EXISTING_TEST__",
])
.set_env(ENSO_DATA_DIRECTORY, engine_package)?
.run_ok()
.await;

test_base.and(test_internal_base).and(test_geo).and(test_jvm_arg)
} else {
Ok(())
}
Expand Down

0 comments on commit ea3af5f

Please sign in to comment.