Add CLI test for packages

This commit is contained in:
Richard Feldman 2022-12-15 17:52:23 -05:00
parent 94818fc6cc
commit 1d670cd0cf
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
8 changed files with 185 additions and 0 deletions

View file

@ -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(