diff --git a/Makefile b/Makefile index 13822cce0..12bcae46a 100644 --- a/Makefile +++ b/Makefile @@ -48,18 +48,21 @@ do-install: test: # We use one thread so the emscripten stdouts doesn't collide - cargo test --all --exclude wasmer-runtime-c-api --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-singlepass-backend --exclude wasmer-wasi -- $(runargs) + cargo test --all --exclude wasmer-runtime-c-api --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-singlepass-backend --exclude wasmer-wasi --exclude wasmer-middleware-common -- $(runargs) # cargo test --all --exclude wasmer-emscripten -- --test-threads=1 $(runargs) cargo test --manifest-path lib/spectests/Cargo.toml --features clif + cargo test --manifest-path lib/middleware-common/Cargo.toml --features clif @if [ ! -z "${CIRCLE_JOB}" ]; then rm -f /home/circleci/project/target/debug/deps/libcranelift_wasm* && rm -f /Users/distiller/project/target/debug/deps/libcranelift_wasm*; fi; cargo test --manifest-path lib/spectests/Cargo.toml --features llvm cargo test --manifest-path lib/runtime/Cargo.toml --features llvm + cargo test --manifest-path lib/middleware-common/Cargo.toml --features llvm cargo build -p wasmer-runtime-c-api cargo test -p wasmer-runtime-c-api -- --nocapture test-singlepass: cargo test --manifest-path lib/spectests/Cargo.toml --features singlepass cargo test --manifest-path lib/runtime/Cargo.toml --features singlepass + cargo test --manifest-path lib/middleware-common/Cargo.toml --features singlepass test-emscripten-llvm: cargo test --manifest-path lib/emscripten/Cargo.toml --features llvm -- --test-threads=1 $(runargs) diff --git a/lib/middleware-common/src/metering.rs b/lib/middleware-common/src/metering.rs index 2a1d1c27d..5894e4145 100644 --- a/lib/middleware-common/src/metering.rs +++ b/lib/middleware-common/src/metering.rs @@ -121,7 +121,7 @@ pub fn set_points_used(_instance: &mut Instance, _value: u64) { unimplemented!() } -#[cfg(test)] +#[cfg(all(test, feature = "singlepass"))] mod tests { use super::*; use wabt::wat2wasm;