disable platform-switching tests for now

This commit is contained in:
Folkert 2022-07-22 15:38:38 +02:00
parent da6a6dcf1c
commit df953ca30b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -392,54 +392,54 @@ mod cli_run {
expected_ending:"Hello, World!\n",
use_valgrind: true,
},
platformSwitching:"platform-switching" => Example {
filename: "main.roc",
executable_filename: "rocLovesPlatforms",
stdin: &[],
input_file: None,
expected_ending:"Which platform am I running on now?\n",
use_valgrind: true,
},
platformSwitchingC:"platform-switching/c-platform" => Example {
filename: "rocLovesC.roc",
executable_filename: "rocLovesC",
stdin: &[],
input_file: None,
expected_ending:"Roc <3 C!\n",
use_valgrind: true,
},
platformSwitchingRust:"platform-switching/rust-platform" => Example {
filename: "rocLovesRust.roc",
executable_filename: "rocLovesRust",
stdin: &[],
input_file: None,
expected_ending:"Roc <3 Rust!\n",
use_valgrind: true,
},
platformSwitchingSwift:"platform-switching/swift-platform" => Example {
filename: "rocLovesSwift.roc",
executable_filename: "rocLovesSwift",
stdin: &[],
input_file: None,
expected_ending:"Roc <3 Swift!\n",
use_valgrind: true,
},
platformSwitchingWebAssembly:"platform-switching/web-assembly-platform" => Example {
filename: "rocLovesWebAssembly.roc",
executable_filename: "rocLovesWebAssembly",
stdin: &[],
input_file: None,
expected_ending:"Roc <3 Web Assembly!\n",
use_valgrind: true,
},
platformSwitchingZig:"platform-switching/zig-platform" => Example {
filename: "rocLovesZig.roc",
executable_filename: "rocLovesZig",
stdin: &[],
input_file: None,
expected_ending:"Roc <3 Zig!\n",
use_valgrind: true,
},
// platformSwitching:"platform-switching" => Example {
// filename: "main.roc",
// executable_filename: "rocLovesPlatforms",
// stdin: &[],
// input_file: None,
// expected_ending:"Which platform am I running on now?\n",
// use_valgrind: true,
// },
// platformSwitchingC:"platform-switching/c-platform" => Example {
// filename: "rocLovesC.roc",
// executable_filename: "rocLovesC",
// stdin: &[],
// input_file: None,
// expected_ending:"Roc <3 C!\n",
// use_valgrind: true,
// },
// platformSwitchingRust:"platform-switching/rust-platform" => Example {
// filename: "rocLovesRust.roc",
// executable_filename: "rocLovesRust",
// stdin: &[],
// input_file: None,
// expected_ending:"Roc <3 Rust!\n",
// use_valgrind: true,
// },
// platformSwitchingSwift:"platform-switching/swift-platform" => Example {
// filename: "rocLovesSwift.roc",
// executable_filename: "rocLovesSwift",
// stdin: &[],
// input_file: None,
// expected_ending:"Roc <3 Swift!\n",
// use_valgrind: true,
// },
// platformSwitchingWebAssembly:"platform-switching/web-assembly-platform" => Example {
// filename: "rocLovesWebAssembly.roc",
// executable_filename: "rocLovesWebAssembly",
// stdin: &[],
// input_file: None,
// expected_ending:"Roc <3 Web Assembly!\n",
// use_valgrind: true,
// },
// platformSwitchingZig:"platform-switching/zig-platform" => Example {
// filename: "rocLovesZig.roc",
// executable_filename: "rocLovesZig",
// stdin: &[],
// input_file: None,
// expected_ending:"Roc <3 Zig!\n",
// use_valgrind: true,
// },
fib:"algorithms" => Example {
filename: "fibonacci.roc",
executable_filename: "fibonacci",
@ -829,7 +829,8 @@ mod cli_run {
}
// We test benchmarks separately
if example_dir_name != "benchmarks" {
// TODO re-enable platform-switching
if example_dir_name != "benchmarks" && example_dir_name != "platform-switching" {
all_examples.remove(example_dir_name.as_str()).unwrap_or_else(|| {
panic!("The example directory {}/{} does not have any corresponding tests in cli_run. Please add one, so if it ever stops working, we'll know about it right away!", examples_dir, example_dir_name);
});