mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
updated benchmarks to new ExecCli
This commit is contained in:
parent
745c99f321
commit
82beb35d3f
25 changed files with 40 additions and 90 deletions
|
@ -14,7 +14,7 @@ const LINKER_FLAG: &str = concatcp!("--", roc_cli::FLAG_LINKER, "=", "legacy");
|
|||
#[derive(Debug, Clone)]
|
||||
pub struct ExecCli {
|
||||
sub_command: &'static str, // build, dev, test...
|
||||
roc_file_path: PathBuf,
|
||||
pub roc_file_path: PathBuf,
|
||||
args: Vec<OsString>,
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ impl ExecCli {
|
|||
}
|
||||
}
|
||||
|
||||
fn check_build_and_run(
|
||||
pub fn check_build_and_run(
|
||||
&self,
|
||||
expected_output: &'static str,
|
||||
with_valgrind: bool,
|
||||
|
@ -100,7 +100,7 @@ impl ExecCli {
|
|||
}
|
||||
|
||||
// run executable produced by e.g. `roc build`
|
||||
fn run_executable(
|
||||
pub fn run_executable(
|
||||
&self,
|
||||
with_valgrind: bool,
|
||||
app_stdin_opt: Option<&str>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue