compiler-builtins-zynq/ci/install.sh

32 lines
506 B
Bash
Raw Normal View History

2016-08-08 05:55:30 +08:00
set -ex
. $(dirname $0)/env.sh
build() {
cargo build --target $TARGET
cargo build --target $TARGET --release
}
run_tests() {
if [[ $QEMU_LD_PREFIX ]]; then
export RUST_TEST_THREADS=1
fi
cargo test --target $TARGET
cargo test --target $TARGET --release
}
inspect() {
${PREFIX}nm -g --defined-only target/**/debug/*.rlib
${PREFIX}objdump target/**/debug/*.rlib
${PREFIX}objdump target/**/release/*.rlib
}
main() {
build
run_tests
inspect
}
main