mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 13:34:15 +00:00
use initialize_zig_test_platforms in all cli_tests
This commit is contained in:
parent
f4451722e8
commit
f8304477f6
2 changed files with 14 additions and 6 deletions
|
|
@ -76,6 +76,8 @@ mod cli_tests {
|
|||
#[test]
|
||||
#[cfg_attr(windows, ignore)]
|
||||
fn platform_switching_zig() {
|
||||
copy_zig_glue::initialize_zig_test_platforms();
|
||||
|
||||
let cli_build = ExecCli::new(
|
||||
CMD_BUILD,
|
||||
file_from_root("examples/platform-switching", "rocLovesZig.roc"),
|
||||
|
|
@ -96,6 +98,8 @@ mod cli_tests {
|
|||
|
||||
#[test]
|
||||
fn platform_switching_wasm() {
|
||||
copy_zig_glue::initialize_zig_test_platforms();
|
||||
|
||||
// this is a web assembly example, but we don't test with JS at the moment
|
||||
// so let's just check it for now
|
||||
let cli_check = ExecCli::new(
|
||||
|
|
@ -113,6 +117,8 @@ mod cli_tests {
|
|||
ignore = "Flaky failure: Roc command failed with status ExitStatus(ExitStatus(3221225477))"
|
||||
)]
|
||||
fn fibonacci() {
|
||||
copy_zig_glue::initialize_zig_test_platforms();
|
||||
|
||||
let cli_build = ExecCli::new(
|
||||
CMD_BUILD,
|
||||
file_from_root("crates/cli/tests/test-projects/algorithms", "fibonacci.roc"),
|
||||
|
|
@ -134,6 +140,8 @@ mod cli_tests {
|
|||
#[test]
|
||||
#[cfg_attr(windows, ignore)]
|
||||
fn quicksort() {
|
||||
copy_zig_glue::initialize_zig_test_platforms();
|
||||
|
||||
let cli_build = ExecCli::new(
|
||||
CMD_BUILD,
|
||||
file_from_root("crates/cli/tests/test-projects/algorithms", "quicksort.roc"),
|
||||
|
|
@ -983,6 +991,8 @@ mod cli_tests {
|
|||
/// Build the platform host once for all tests in this module
|
||||
fn build_platform_host() {
|
||||
BUILD_PLATFORM_HOST.call_once(|| {
|
||||
copy_zig_glue::initialize_zig_test_platforms();
|
||||
|
||||
let cli_build = ExecCli::new(
|
||||
CMD_BUILD,
|
||||
file_from_root("crates/cli/tests/benchmarks/platform", "app.roc"),
|
||||
|
|
@ -1270,6 +1280,8 @@ mod cli_tests {
|
|||
#[cfg_attr(windows, ignore)]
|
||||
/// this tests that a platform can correctly import a package
|
||||
fn platform_requires_pkg() {
|
||||
copy_zig_glue::initialize_zig_test_platforms();
|
||||
|
||||
let cli_build = ExecCli::new(
|
||||
CMD_BUILD,
|
||||
file_from_root(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue