Files
wasmtime/cranelift/test-no_std.sh
lazypassion 747ad3c4c5 moved crates in lib/ to src/, renamed crates, modified some files' text (#660)
moved crates in lib/ to src/, renamed crates, modified some files' text (#660)
2019-01-28 15:56:54 -08:00

33 lines
791 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# This is the test script for testing the no_std configuration of
# packages which support it.
# Repository top-level directory.
topdir=$(dirname "$0")
cd "$topdir"
function banner {
echo "====== $* ======"
}
# Test those packages which have no_std support.
LIBS="cranelift-codegen cranelift-frontend cranelift-wasm \
cranelift-native cranelift-preopt cranelift-module \
cranelift-entity cranelift-bforest cranelift-umbrella"
for LIB in $LIBS; do
banner "Rust unit tests in $LIB"
pushd "$LIB" >/dev/null
# Test with just "core" enabled.
cargo +nightly test --no-default-features --features core
# Test with "core" and "std" enabled at the same time.
cargo +nightly test --features core
popd >/dev/null
done
banner "OK"