mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-14 15:55:02 +00:00
fix CI tests
This commit is contained in:
parent
07ad6bb1f7
commit
ff6a31673a
1 changed files with 9 additions and 14 deletions
|
@ -323,11 +323,12 @@ mod cli_run {
|
||||||
}
|
}
|
||||||
|
|
||||||
// when you want to run `roc test` to execute `expect`s, perhaps on a library rather than an application.
|
// when you want to run `roc test` to execute `expect`s, perhaps on a library rather than an application.
|
||||||
fn test_roc_expect(dir_name: &str, roc_filename: &str) {
|
// not currently used
|
||||||
let path = file_path_from_root(dir_name, roc_filename);
|
// fn test_roc_expect(dir_name: &str, roc_filename: &str) {
|
||||||
let out = run_roc([CMD_TEST, path.to_str().unwrap()], &[], &[]);
|
// let path = file_path_from_root(dir_name, roc_filename);
|
||||||
assert!(out.status.success());
|
// let out = run_roc([CMD_TEST, path.to_str().unwrap()], &[], &[]);
|
||||||
}
|
// assert!(out.status.success());
|
||||||
|
// }
|
||||||
|
|
||||||
// when you don't need args, stdin or extra_env
|
// when you don't need args, stdin or extra_env
|
||||||
fn test_roc_app_slim(
|
fn test_roc_app_slim(
|
||||||
|
@ -912,9 +913,9 @@ mod cli_run {
|
||||||
#[cfg_attr(windows, ignore)]
|
#[cfg_attr(windows, ignore)]
|
||||||
fn parse_movies_csv() {
|
fn parse_movies_csv() {
|
||||||
test_roc_app_slim(
|
test_roc_app_slim(
|
||||||
"examples/parser/examples",
|
"examples/parser",
|
||||||
"parse-movies-csv.roc",
|
"parse-movies-csv.roc",
|
||||||
"Parse success!\n",
|
"2 movies were found:\n\nThe movie 'Airplane!' was released in 1980 and stars Robert Hays and Julie Hagerty\nThe movie 'Caddyshack' was released in 1980 and stars Chevy Chase, Rodney Dangerfield, Ted Knight, Michael O'Keefe and Bill Murray\n\nParse success!\n\n",
|
||||||
UseValgrind::No,
|
UseValgrind::No,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -924,19 +925,13 @@ mod cli_run {
|
||||||
#[cfg_attr(windows, ignore)]
|
#[cfg_attr(windows, ignore)]
|
||||||
fn parse_letter_counts() {
|
fn parse_letter_counts() {
|
||||||
test_roc_app_slim(
|
test_roc_app_slim(
|
||||||
"examples/parser/examples",
|
"examples/parser",
|
||||||
"letter-counts.roc",
|
"letter-counts.roc",
|
||||||
"I counted 7 letter A's!\n",
|
"I counted 7 letter A's!\n",
|
||||||
UseValgrind::No,
|
UseValgrind::No,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg_attr(windows, ignore)]
|
|
||||||
fn parse_http() {
|
|
||||||
test_roc_expect("examples/parser/package", "ParserHttp.roc")
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg_attr(windows, ignore)]
|
#[cfg_attr(windows, ignore)]
|
||||||
fn inspect_logging() {
|
fn inspect_logging() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue