wasmi/test.sh

22 lines
410 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -eux
EXTRA_ARGS=""
if [ -n "${TARGET-}" ]; then
# Tests build in debug mode are prohibitively
# slow when ran under emulation so that
# e.g. Travis CI will hit timeouts.
EXTRA_ARGS="--release --target=${TARGET}"
export RUSTFLAGS="--cfg debug_assertions"
fi
cd $(dirname $0)
time cargo test --all ${EXTRA_ARGS}
2019-06-19 15:22:42 +00:00
time cargo test --all --features threadsafe
cd -