Add support for running tests in no_std mode.

This commit is contained in:
Dan Gohman
2018-01-18 22:05:51 -08:00
parent 023f8d7980
commit 61db54c447
43 changed files with 101 additions and 13 deletions

28
cranelift/test-no_std.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
# This is the test script for testing the no_std configuration of
# packages which support it.
# Exit immediately on errors.
set -e
# Repository top-level directory.
cd $(dirname "$0")
topdir=$(pwd)
function banner() {
echo "====== $@ ======"
}
# Test those packages which have no_std support.
LIBS="cretonne frontend wasm native"
cd "$topdir"
for LIB in $LIBS
do
banner "Rust unit tests in $LIB"
cd "lib/$LIB"
cargo test --features no_std
cd "$topdir"
done
banner "OK"