Skip to content

Commit 371e779

Browse files
committed
Run wasm tests like all other tests
1 parent 0bd5460 commit 371e779

File tree

12 files changed

+773
-732
lines changed

12 files changed

+773
-732
lines changed

.travis.yml

-17
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,6 @@ matrix:
3030
env: TARGET=x86_64-apple-darwin NO_ADD=1
3131
script: ci/run.sh
3232
- env: TARGET=wasm32-unknown-unknown
33-
before_script:
34-
- git clone --recursive https://github.com/WebAssembly/wabt
35-
- (cd wabt && git reset --hard a0bdeb7 && make -j4)
36-
- export PATH=$PATH:$PWD/wabt/bin
37-
- git clone https://github.com/rustwasm/wasm-bindgen
38-
- (cd wasm-bindgen && cargo install --path crates/cli)
39-
script:
40-
- cargo build --target wasm32-unknown-unknown -p stdsimd
41-
- cargo build --target wasm32-unknown-unknown -p stdsimd --release
42-
- cargo rustc --target wasm32-unknown-unknown -p stdsimd --release --example wasm -- -C lto
43-
- wasm2wat target/wasm32-unknown-unknown/release/examples/wasm.wasm -o wasm.wat
44-
- cat wasm.wat
45-
- grep current_memory wasm.wat
46-
- grep grow_memory wasm.wat
47-
- cd crates/wasm-test
48-
- cargo test --target=$TARGET
49-
- cargo test --target=$TARGET --release
5033
- env: TARGET=thumbv6m-none-eabi NOSTD=1
5134
- env: TARGET=thumbv7m-none-eabi NOSTD=1
5235
- env: TARGET=thumbv7em-none-eabi NOSTD=1

ci/run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ case ${TARGET} in
3939
*android*)
4040
export STDSIMD_DISABLE_ASSERT_INSTR=1
4141
;;
42+
wasm32*)
43+
# export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+simd128"
44+
;;
45+
4246
*)
4347
;;
4448
esac

coresimd/wasm32/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
//! WASM32 intrinsics
22
33
#[macro_use]
4+
#[cfg(not(test))]
45
mod simd128;
6+
#[cfg(test)]
7+
pub mod simd128;
58
pub use self::simd128::*;
69

710
extern "C" {

0 commit comments

Comments
 (0)