-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
613: Test i686-unknown-linux-gnu and aarch64-unknown-linux-gnu on CI r=jeehoonkang a=taiki-e Tests i686-unknown-linux-gnu and aarch64-unknown-linux-gnu on CI by using [cross](https://github.com/rust-embedded/cross). Closes #598 I'm surprised that it looks like we don't have to ignore channel tests. r? @jeehoonkang Co-authored-by: Taiki Endo <[email protected]>
- Loading branch information
Showing
13 changed files
with
97 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname "$0")"/.. | ||
set -ex | ||
|
||
export RUSTDOCFLAGS="-D warnings" | ||
|
||
cargo doc --no-deps --all --all-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname "$0")"/.. | ||
set -ex | ||
|
||
export RUSTFLAGS="-D warnings" | ||
|
||
if [[ -n "$TARGET" ]]; then | ||
# If TARGET is specified, use cross for testing. | ||
cargo install cross | ||
cross test --all --target "$TARGET" --exclude benchmarks | ||
|
||
# For now, the non-host target only runs tests. | ||
exit 0 | ||
fi | ||
|
||
# Otherwise, run tests and checks with the host target. | ||
cargo check --all --bins --examples --tests --exclude benchmarks | ||
cargo test --all --exclude benchmarks -- --test-threads=1 | ||
|
||
if [[ "$RUST_VERSION" == "nightly"* ]]; then | ||
# Some crates have `nightly` feature, so run tests with --all-features. | ||
cargo test --all --all-features --exclude benchmarks -- --test-threads=1 | ||
|
||
# Benchmarks are only checked on nightly because depending on unstable features. | ||
cargo check --all --benches | ||
cargo check --bins --manifest-path crossbeam-channel/benchmarks/Cargo.toml | ||
|
||
# Run address sanitizer on crossbeam-epoch | ||
# Note: this will be significantly rewritten by https://github.com/crossbeam-rs/crossbeam/pull/591. | ||
if [[ "$OSTYPE" == "linux"* ]]; then | ||
cargo clean | ||
|
||
# TODO: Once `cfg(sanitize = "..")` is stable, replace | ||
# `cfg(crossbeam_sanitize)` with `cfg(sanitize = "..")` and remove | ||
# `--cfg crossbeam_sanitize`. | ||
ASAN_OPTIONS="detect_odr_violation=0 detect_leaks=0" \ | ||
RUSTFLAGS="-Z sanitizer=address --cfg crossbeam_sanitize" \ | ||
cargo run \ | ||
--release \ | ||
--target x86_64-unknown-linux-gnu \ | ||
--features nightly \ | ||
--example sanitize \ | ||
--manifest-path crossbeam-epoch/Cargo.toml | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters