compiler-builtins-zynq/ci/install.sh

32 lines
506 B
Bash

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