update all examples to basic-cli version and mark broken examples

This commit is contained in:
Brendan Hansknecht 2023-11-20 15:36:15 -08:00
parent f727aea875
commit ffda01e80b
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
9 changed files with 55 additions and 48 deletions

View file

@ -474,18 +474,6 @@ mod cli_run {
)
}
#[test]
#[serial(cli_platform)]
#[cfg_attr(windows, ignore)]
fn hello_world_no_url() {
test_roc_app_slim(
"examples",
"helloWorldNoURL.roc",
"Hello, World!\n",
UseValgrind::Yes,
)
}
#[cfg(windows)]
const LINE_ENDING: &str = "\r\n";
#[cfg(not(windows))]
@ -687,12 +675,13 @@ mod cli_run {
}
#[test]
#[ignore = "currently broken in basic-cli platform"]
#[cfg_attr(windows, ignore = "missing __udivdi3 and some other symbols")]
#[serial(cli_platform)]
fn cli_args() {
test_roc_app(
"examples/cli",
"args.roc",
"argsBROKEN.roc",
&[],
&[
Arg::PlainText("log"),
@ -713,7 +702,7 @@ mod cli_run {
#[cfg_attr(windows, ignore = "missing __udivdi3 and some other symbols")]
#[serial(cli_platform)]
fn cli_args_check() {
let path = file_path_from_root("examples/cli", "args.roc");
let path = file_path_from_root("examples/cli", "argsBROKEN.roc");
let out = run_roc([CMD_CHECK, path.to_str().unwrap()], &[], &[]);
assert!(out.status.success());
}
@ -866,7 +855,7 @@ mod cli_run {
&[],
&[],
&[],
"22424\n",
"30256\n",
UseValgrind::No,
TestCliCommands::Run,
)