mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Remove redundant cli_testing_examples folder
This commit is contained in:
parent
813b0010b7
commit
0b6cf5cbcc
36 changed files with 38 additions and 19 deletions
38
Cargo.toml
38
Cargo.toml
|
@ -33,7 +33,6 @@ exclude = [
|
||||||
"ci/benchmarks/bench-runner",
|
"ci/benchmarks/bench-runner",
|
||||||
"ci/repl_basic_test",
|
"ci/repl_basic_test",
|
||||||
# Examples sometimes have Rust hosts in their platforms. The compiler should ignore those.
|
# Examples sometimes have Rust hosts in their platforms. The compiler should ignore those.
|
||||||
"crates/cli_testing_examples",
|
|
||||||
"examples",
|
"examples",
|
||||||
]
|
]
|
||||||
# Needed to be able to run `cargo run -p roc_cli --no-default-features` -
|
# Needed to be able to run `cargo run -p roc_cli --no-default-features` -
|
||||||
|
@ -69,7 +68,9 @@ version = "0.0.1"
|
||||||
# change the tag value in this Cargo.toml to point to that tag, and `cargo update`.
|
# change the tag value in this Cargo.toml to point to that tag, and `cargo update`.
|
||||||
# This way, GitHub Actions works and nobody's builds get broken.
|
# This way, GitHub Actions works and nobody's builds get broken.
|
||||||
# TODO: Switch this back to roc-lang/inkwell once it is updated
|
# TODO: Switch this back to roc-lang/inkwell once it is updated
|
||||||
inkwell = { git = "https://github.com/roc-lang/inkwell", branch = "inkwell-llvm-16", features = ["llvm16-0"] }
|
inkwell = { git = "https://github.com/roc-lang/inkwell", branch = "inkwell-llvm-16", features = [
|
||||||
|
"llvm16-0",
|
||||||
|
] }
|
||||||
|
|
||||||
arrayvec = "0.7.2" # update roc_std/Cargo.toml on change
|
arrayvec = "0.7.2" # update roc_std/Cargo.toml on change
|
||||||
backtrace = "0.3.67"
|
backtrace = "0.3.67"
|
||||||
|
@ -78,18 +79,27 @@ bincode = "1.3.3"
|
||||||
bitflags = "1.3.2"
|
bitflags = "1.3.2"
|
||||||
bitvec = "1.0.1"
|
bitvec = "1.0.1"
|
||||||
blake3 = "1.3.3"
|
blake3 = "1.3.3"
|
||||||
brotli = "3.3.4" # used for decompressing tarballs over HTTPS, if the server supports brotli
|
brotli = "3.3.4" # used for decompressing tarballs over HTTPS, if the server supports brotli
|
||||||
bumpalo = { version = "3.12.0", features = ["collections"] }
|
bumpalo = { version = "3.12.0", features = ["collections"] }
|
||||||
bytemuck = { version = "1.13.1", features = ["derive"] }
|
bytemuck = { version = "1.13.1", features = ["derive"] }
|
||||||
capstone = { version = "0.11.0", default-features = false }
|
capstone = { version = "0.11.0", default-features = false }
|
||||||
cgmath = "0.18.0"
|
cgmath = "0.18.0"
|
||||||
chrono = "0.4.26"
|
chrono = "0.4.26"
|
||||||
clap = { version = "4.2.7", default-features = false, features = ["std", "color", "suggestions", "help", "usage", "error-context"] }
|
clap = { version = "4.2.7", default-features = false, features = [
|
||||||
|
"std",
|
||||||
|
"color",
|
||||||
|
"suggestions",
|
||||||
|
"help",
|
||||||
|
"usage",
|
||||||
|
"error-context",
|
||||||
|
] }
|
||||||
colored = "2.0.0"
|
colored = "2.0.0"
|
||||||
console_error_panic_hook = "0.1.7"
|
console_error_panic_hook = "0.1.7"
|
||||||
const_format = { version = "0.2.30", features = ["const_generics"] }
|
const_format = { version = "0.2.30", features = ["const_generics"] }
|
||||||
copypasta = "0.8.2"
|
copypasta = "0.8.2"
|
||||||
criterion = { git = "https://github.com/Anton-4/criterion.rs", features = ["html_reports"], rev = "30ea0c5" }
|
criterion = { git = "https://github.com/Anton-4/criterion.rs", features = [
|
||||||
|
"html_reports",
|
||||||
|
], rev = "30ea0c5" }
|
||||||
criterion-perf-events = { git = "https://github.com/Anton-4/criterion-perf-events", rev = "0f38c3e" }
|
criterion-perf-events = { git = "https://github.com/Anton-4/criterion-perf-events", rev = "0f38c3e" }
|
||||||
crossbeam = "0.8.2"
|
crossbeam = "0.8.2"
|
||||||
dircpy = "0.3.14"
|
dircpy = "0.3.14"
|
||||||
|
@ -102,7 +112,12 @@ fs_extra = "1.3.0"
|
||||||
futures = "0.3.26"
|
futures = "0.3.26"
|
||||||
glyph_brush = "0.7.7"
|
glyph_brush = "0.7.7"
|
||||||
hashbrown = { version = "0.14.3" }
|
hashbrown = { version = "0.14.3" }
|
||||||
iced-x86 = { version = "1.18.0", default-features = false, features = ["std", "decoder", "op_code_info", "instr_info"] }
|
iced-x86 = { version = "1.18.0", default-features = false, features = [
|
||||||
|
"std",
|
||||||
|
"decoder",
|
||||||
|
"op_code_info",
|
||||||
|
"instr_info",
|
||||||
|
] }
|
||||||
im = "15.1.0"
|
im = "15.1.0"
|
||||||
im-rc = "15.1.0"
|
im-rc = "15.1.0"
|
||||||
indexmap = "2.1.0"
|
indexmap = "2.1.0"
|
||||||
|
@ -139,12 +154,17 @@ quote = "1.0.23"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
regex = "1.7.1"
|
regex = "1.7.1"
|
||||||
remove_dir_all = "0.8.1"
|
remove_dir_all = "0.8.1"
|
||||||
reqwest = { version = "0.11.23", default-features = false, features = ["blocking", "rustls-tls"] } # default-features=false removes libopenssl as a dependency on Linux, which might not be available!
|
reqwest = { version = "0.11.23", default-features = false, features = [
|
||||||
|
"blocking",
|
||||||
|
"rustls-tls",
|
||||||
|
] } # default-features=false removes libopenssl as a dependency on Linux, which might not be available!
|
||||||
rlimit = "0.9.1"
|
rlimit = "0.9.1"
|
||||||
rustyline = { git = "https://github.com/roc-lang/rustyline", rev = "e74333c" }
|
rustyline = { git = "https://github.com/roc-lang/rustyline", rev = "e74333c" }
|
||||||
rustyline-derive = { git = "https://github.com/roc-lang/rustyline", rev = "e74333c" }
|
rustyline-derive = { git = "https://github.com/roc-lang/rustyline", rev = "e74333c" }
|
||||||
schemars = "0.8.12"
|
schemars = "0.8.12"
|
||||||
serde = { version = "1.0.153", features = ["derive"] } # update roc_std/Cargo.toml on change
|
serde = { version = "1.0.153", features = [
|
||||||
|
"derive",
|
||||||
|
] } # update roc_std/Cargo.toml on change
|
||||||
serde-xml-rs = "0.6.0"
|
serde-xml-rs = "0.6.0"
|
||||||
serde_json = "1.0.94" # update roc_std/Cargo.toml on change
|
serde_json = "1.0.94" # update roc_std/Cargo.toml on change
|
||||||
serial_test = "1.0.0"
|
serial_test = "1.0.0"
|
||||||
|
@ -192,7 +212,7 @@ debug = true
|
||||||
|
|
||||||
[profile.release-with-lto]
|
[profile.release-with-lto]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
lto = "thin" # TODO: We could consider full here since this is only used for packaged release on github.
|
lto = "thin" # TODO: We could consider full here since this is only used for packaged release on github.
|
||||||
|
|
||||||
[profile.debug-full]
|
[profile.debug-full]
|
||||||
inherits = "dev"
|
inherits = "dev"
|
||||||
|
|
|
@ -547,14 +547,14 @@ mod cli_run {
|
||||||
// on the building of the platform
|
// on the building of the platform
|
||||||
|
|
||||||
test_roc_app(
|
test_roc_app(
|
||||||
"crates/cli/tests/cli_testing_examples/expects",
|
"crates/cli/tests/expects",
|
||||||
"expects.roc",
|
"expects.roc",
|
||||||
&[],
|
&[],
|
||||||
&[],
|
&[],
|
||||||
&[],
|
&[],
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
── EXPECT FAILED in tests/cli_testing_examples/expects/expects.roc ─────────────
|
── EXPECT FAILED in tests/expects/expects.roc ──────────────────────────────────
|
||||||
|
|
||||||
This expectation failed:
|
This expectation failed:
|
||||||
|
|
||||||
|
@ -580,14 +580,14 @@ mod cli_run {
|
||||||
);
|
);
|
||||||
|
|
||||||
test_roc_app(
|
test_roc_app(
|
||||||
"crates/cli/tests/cli_testing_examples/expects",
|
"crates/cli/tests/expects",
|
||||||
"expects.roc",
|
"expects.roc",
|
||||||
&[],
|
&[],
|
||||||
&[],
|
&[],
|
||||||
&[],
|
&[],
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
── EXPECT FAILED in tests/cli_testing_examples/expects/expects.roc ─────────────
|
── EXPECT FAILED in tests/expects/expects.roc ──────────────────────────────────
|
||||||
|
|
||||||
This expectation failed:
|
This expectation failed:
|
||||||
|
|
||||||
|
@ -599,7 +599,7 @@ mod cli_run {
|
||||||
a : Num *
|
a : Num *
|
||||||
a = 1
|
a = 1
|
||||||
|
|
||||||
── EXPECT FAILED in tests/cli_testing_examples/expects/expects.roc ─────────────
|
── EXPECT FAILED in tests/expects/expects.roc ──────────────────────────────────
|
||||||
|
|
||||||
This expectation failed:
|
This expectation failed:
|
||||||
|
|
||||||
|
@ -611,7 +611,7 @@ mod cli_run {
|
||||||
a : Num *
|
a : Num *
|
||||||
a = 1
|
a = 1
|
||||||
|
|
||||||
── EXPECT FAILED in tests/cli_testing_examples/expects/expects.roc ─────────────
|
── EXPECT FAILED in tests/expects/expects.roc ──────────────────────────────────
|
||||||
|
|
||||||
This expectation failed:
|
This expectation failed:
|
||||||
|
|
||||||
|
@ -659,7 +659,7 @@ mod cli_run {
|
||||||
)]
|
)]
|
||||||
fn fibonacci() {
|
fn fibonacci() {
|
||||||
test_roc_app_slim(
|
test_roc_app_slim(
|
||||||
"crates/cli/tests/cli_testing_examples/algorithms",
|
"crates/cli/tests/algorithms",
|
||||||
"fibonacci.roc",
|
"fibonacci.roc",
|
||||||
"",
|
"",
|
||||||
UseValgrind::Yes,
|
UseValgrind::Yes,
|
||||||
|
@ -698,7 +698,7 @@ mod cli_run {
|
||||||
#[cfg_attr(windows, ignore)]
|
#[cfg_attr(windows, ignore)]
|
||||||
fn quicksort() {
|
fn quicksort() {
|
||||||
test_roc_app_slim(
|
test_roc_app_slim(
|
||||||
"crates/cli/tests/cli_testing_examples/algorithms",
|
"crates/cli/tests/algorithms",
|
||||||
"quicksort.roc",
|
"quicksort.roc",
|
||||||
"[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2]\n",
|
"[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2]\n",
|
||||||
UseValgrind::Yes,
|
UseValgrind::Yes,
|
||||||
|
|
|
@ -404,7 +404,7 @@ pub fn extract_valgrind_errors(xml: &str) -> Result<Vec<ValgrindError>, serde_xm
|
||||||
Ok(answer)
|
Ok(answer)
|
||||||
}
|
}
|
||||||
|
|
||||||
// start the dir with crates/cli_testing_examples
|
// start the dir with crates/cli/tests
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub fn cli_testing_dir(dir_name: &str) -> PathBuf {
|
pub fn cli_testing_dir(dir_name: &str) -> PathBuf {
|
||||||
let mut path = root_dir();
|
let mut path = root_dir();
|
||||||
|
@ -413,7 +413,6 @@ pub fn cli_testing_dir(dir_name: &str) -> PathBuf {
|
||||||
path.push("crates");
|
path.push("crates");
|
||||||
path.push("cli");
|
path.push("cli");
|
||||||
path.push("tests");
|
path.push("tests");
|
||||||
path.push("cli_testing_examples");
|
|
||||||
path.extend(dir_name.split('/')); // Make slashes cross-target
|
path.extend(dir_name.split('/')); // Make slashes cross-target
|
||||||
|
|
||||||
path
|
path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue