mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Add CLI test for packages
This commit is contained in:
parent
94818fc6cc
commit
1d670cd0cf
8 changed files with 185 additions and 0 deletions
|
@ -1227,6 +1227,40 @@ mod cli_run {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[serial(multi_dep_thunk)]
|
||||
#[cfg_attr(windows, ignore)]
|
||||
fn run_package_unoptimized() {
|
||||
check_output_with_stdin(
|
||||
&fixture_file("packages", "app.roc"),
|
||||
&[],
|
||||
"packages-test",
|
||||
&[],
|
||||
&[],
|
||||
&[],
|
||||
"I am Dep2.value2\n",
|
||||
UseValgrind::Yes,
|
||||
TestCliCommands::Run,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[serial(multi_dep_thunk)]
|
||||
#[cfg_attr(windows, ignore)]
|
||||
fn run_package_optimized() {
|
||||
check_output_with_stdin(
|
||||
&fixture_file("packages", "app.roc"),
|
||||
&[],
|
||||
"packages-test",
|
||||
&[OPTIMIZE_FLAG],
|
||||
&[],
|
||||
&[],
|
||||
"I am Dep2.value2\n",
|
||||
UseValgrind::Yes,
|
||||
TestCliCommands::Run,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn known_type_error() {
|
||||
check_compile_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue