Files
rust/library/compiler-builtins/libm/ci/script.sh

26 lines
533 B
Bash
Raw Normal View History

2018-07-12 00:44:28 -05:00
set -euxo pipefail
main() {
2018-07-12 20:19:42 -05:00
# quick check
cargo check
# check that we can source import libm into compiler-builtins
cargo check --package cb
# generate tests
2018-07-12 00:44:28 -05:00
cargo run --package test-generator --target x86_64-unknown-linux-musl
2018-07-12 20:19:42 -05:00
2018-07-12 00:53:44 -05:00
if cargo fmt --version >/dev/null 2>&1; then
2018-07-12 00:44:28 -05:00
# nicer syntax error messages (if any)
cargo fmt
fi
2018-07-12 20:19:42 -05:00
# run tests
2018-07-12 00:44:28 -05:00
cross test --target $TARGET --release
# TODO need to fix overflow issues (cf. issue #4)
# cross test --target $TARGET
2018-07-12 00:44:28 -05:00
}
main