move platform-switching into cli tests

This commit is contained in:
Luke Boswell 2024-12-22 15:15:26 +11:00
parent 0bf249afcb
commit eef68e3b42
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
22 changed files with 15 additions and 12 deletions

View file

@ -55,7 +55,7 @@ mod cli_tests {
// pre-build the platform // pre-build the platform
std::process::Command::new("bash") std::process::Command::new("bash")
.arg(file_from_root( .arg(file_from_root(
"examples/platform-switching/rust-platform", "crates/cli/tests/platform-switching/rust-platform",
"build.sh", "build.sh",
)) ))
.status() .status()
@ -63,7 +63,7 @@ mod cli_tests {
let cli_build = ExecCli::new( let cli_build = ExecCli::new(
roc_cli::CMD_DEV, roc_cli::CMD_DEV,
file_from_root("examples/platform-switching", "rocLovesRust.roc"), file_from_root("crates/cli/tests/platform-switching", "rocLovesRust.roc"),
); );
let expected_output = "Roc <3 Rust!\n"; let expected_output = "Roc <3 Rust!\n";
@ -80,7 +80,7 @@ mod cli_tests {
let cli_build = ExecCli::new( let cli_build = ExecCli::new(
CMD_BUILD, CMD_BUILD,
file_from_root("examples/platform-switching", "rocLovesZig.roc"), file_from_root("crates/cli/tests/platform-switching", "rocLovesZig.roc"),
) )
.arg(BUILD_HOST_FLAG) .arg(BUILD_HOST_FLAG)
.arg(SUPPRESS_BUILD_HOST_WARNING_FLAG); .arg(SUPPRESS_BUILD_HOST_WARNING_FLAG);
@ -104,7 +104,10 @@ mod cli_tests {
// so let's just check it for now // so let's just check it for now
let cli_check = ExecCli::new( let cli_check = ExecCli::new(
CMD_CHECK, CMD_CHECK,
file_from_root("examples/platform-switching", "rocLovesWebAssembly.roc"), file_from_root(
"crates/cli/tests/platform-switching",
"rocLovesWebAssembly.roc",
),
); );
let cli_check_out = cli_check.run(); let cli_check_out = cli_check.run();

View file

@ -1,9 +1,9 @@
[toolchain] [toolchain]
channel = "1.77.2" channel = "1.77.2"
profile = "default" profile = "default"
components = [ components = [
# for usages of rust-analyzer or similar tools inside `nix develop` # for usages of rust-analyzer or similar tools inside `nix develop`
"rust-src" "rust-src"
] ]