Skip to content

Commit 515e49c

Browse files
author
Mark McCaskey
committed
Use CRANELIFT instead of CLIF in test env vars
1 parent 3579d0d commit 515e49c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spectests-llvm:
4444
SPECTEST_TEST_LLVM=1 cargo test test_run_spectests --release --no-default-features --features "wasi backend-llvm wasmer-llvm-backend/test" -- --nocapture
4545

4646
spectests-all:
47-
SPECTEST_TEST_CLIF=1 SPECTEST_TEST_LLVM=1 SPECTEST_TEST_SINGLEPASS=1 \
47+
SPECTEST_TEST_CRANELIFT=1 SPECTEST_TEST_LLVM=1 SPECTEST_TEST_SINGLEPASS=1 \
4848
cargo test test_run_spectests --release --no-default-features --features "wasi backend-cranelift backend-singlepass backend-llvm wasmer-llvm-backend/test" -- --nocapture --test-threads 1
4949

5050

tests/emtests/_common.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use wasmer_runtime::Backend;
44
pub fn get_backend() -> Option<Backend> {
55
#[cfg(feature = "backend-cranelift")]
66
{
7-
if let Ok(v) = env::var("WASMER_TEST_CLIF") {
7+
if let Ok(v) = env::var("WASMER_TEST_CRANELIFT") {
88
if v == "1" {
99
return Some(Backend::Cranelift);
1010
}
@@ -40,7 +40,7 @@ macro_rules! assert_emscripten_output {
4040
use wasmer_dev_utils::stdio::StdioCapturer;
4141

4242
let wasm_bytes = include_bytes!($file);
43-
let backend = $crate::emtests::_common::get_backend().expect("Please set one of `WASMER_TEST_CLIF`, `WASMER_TEST_LLVM`, or `WASMER_TEST_SINGELPASS` to `1`.");
43+
let backend = $crate::emtests::_common::get_backend().expect("Please set one of `WASMER_TEST_CRANELIFT`, `WASMER_TEST_LLVM`, or `WASMER_TEST_SINGELPASS` to `1`.");
4444
let compiler = wasmer_runtime::compiler_for_backend(backend).expect("The desired compiler was not found!");
4545

4646
let module = wasmer_runtime::compile_with_config_with(&wasm_bytes[..], Default::default(), &*compiler).expect("WASM can't be compiled");

tests/spectest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ mod tests {
9393

9494
fn get_compilers_to_test() -> Vec<&'static str> {
9595
let mut out = vec![];
96-
if let Ok(v) = env::var("SPECTEST_TEST_CLIF") {
96+
if let Ok(v) = env::var("SPECTEST_TEST_CRANELIFT") {
9797
if v == "1" {
9898
out.push("clif");
9999
}

tests/wasitests/_common.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use wasmer_runtime::Backend;
44
pub fn get_backend() -> Option<Backend> {
55
#[cfg(feature = "backend-cranelift")]
66
{
7-
if let Ok(v) = env::var("WASMER_TEST_CLIF") {
7+
if let Ok(v) = env::var("WASMER_TEST_CRANELIFT") {
88
if v == "1" {
99
return Some(Backend::Cranelift);
1010
}
@@ -37,7 +37,7 @@ macro_rules! assert_wasi_output {
3737
use wasmer_wasi::{generate_import_object_for_version, get_wasi_version};
3838

3939
let wasm_bytes = include_bytes!($file);
40-
let backend = $crate::wasitests::_common::get_backend().expect("Please set one of `WASMER_TEST_CLIF`, `WASMER_TEST_LLVM`, or `WASMER_TEST_SINGELPASS` to `1`.");
40+
let backend = $crate::wasitests::_common::get_backend().expect("Please set one of `WASMER_TEST_CRANELIFT`, `WASMER_TEST_LLVM`, or `WASMER_TEST_SINGELPASS` to `1`.");
4141
let compiler = wasmer_runtime::compiler_for_backend(backend).expect("The desired compiler was not found!");
4242

4343
let module = wasmer_runtime::compile_with_config_with(&wasm_bytes[..], Default::default(), &*compiler).expect("WASM can't be compiled");

0 commit comments

Comments
 (0)