test: cli 测试直调编译产物二进制,脱离 cargo run 递归
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use std::process::Command;
|
||||
|
||||
fn run_eval(js: &str) -> std::process::Output {
|
||||
Command::new("cargo")
|
||||
.args(["run", "--", "eval", js])
|
||||
Command::new(env!("CARGO_BIN_EXE_oxide"))
|
||||
.args(["eval", js])
|
||||
.output()
|
||||
.expect("failed to run oxide eval")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user