mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-30 00:51:34 +00:00
Only run runtime_core tests on Android
This commit is contained in:
2
Makefile
2
Makefile
@ -169,7 +169,7 @@ test: spectests emtests middleware wasitests test-rest examples
|
||||
|
||||
test-android:
|
||||
ci/run-docker.sh x86_64-linux-android --manifest-path=lib/singlepass-backend/Cargo.toml
|
||||
ci/run-docker.sh x86_64-linux-android
|
||||
ci/run-docker.sh x86_64-linux-android runtime_core
|
||||
|
||||
# Integration tests
|
||||
integration-tests: release-clif examples
|
||||
|
@ -1,6 +1,7 @@
|
||||
mod runtime_core_tests;
|
||||
|
||||
use runtime_core_tests::{get_compiler, wat2wasm};
|
||||
pub mod runtime_core_exception_handling {
|
||||
use super::runtime_core_tests::{get_compiler, wat2wasm};
|
||||
use wasmer_runtime_core::{compile_with, imports};
|
||||
|
||||
#[test]
|
||||
@ -21,3 +22,4 @@ fn exception_handling_works() {
|
||||
assert!(instance.call("throw_trap", &[]).is_err());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,9 @@
|
||||
mod runtime_core_tests;
|
||||
|
||||
use runtime_core_tests::{get_compiler, wat2wasm};
|
||||
#[cfg(test)]
|
||||
pub mod runtime_core_imports {
|
||||
|
||||
use super::runtime_core_tests::{get_compiler, wat2wasm};
|
||||
use std::{convert::TryInto, sync::Arc};
|
||||
use wasmer_runtime_core::{
|
||||
compile_with,
|
||||
@ -15,7 +18,7 @@ use wasmer_runtime_core::{
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn new_api_works() {
|
||||
fn runtime_core_new_api_works() {
|
||||
let wasm = r#"
|
||||
(module
|
||||
(type $type (func (param i32) (result i32)))
|
||||
@ -472,3 +475,4 @@ test!(
|
||||
function_closure_trap_with_vmctx_and_env(i32) -> i32,
|
||||
(1) == Err(RuntimeError(Box::new(format!("! {}", 2 + shift + SHIFT))))
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user