Files
wasmtime/cranelift/test-no_std.sh
Dan Gohman d2d8b56ddb Fix test-no_std.sh to handle the case where topdir is ".".
Instead of using "cd $topdir" to get back to the top, use popd.
2018-07-02 15:17:14 -07:00

31 lines
689 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="codegen frontend wasm native module simplejit umbrella"
for LIB in $LIBS; do
banner "Rust unit tests in $LIB"
pushd "lib/$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"