diff options
author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-07-16 09:36:24 +0900 |
---|---|---|
committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-07-16 09:36:24 +0900 |
commit | 7306620976d6c14be842231968def04eb15c1fef (patch) | |
tree | 11703f5d7b0cab979ffabb0595b8991c158290fd /ci | |
parent | 282257f73d74743017b81b7a3e17620fbded8520 (diff) | |
download | rust-libc-7306620976d6c14be842231968def04eb15c1fef.tar.gz |
Do debug build for `x86_64-unknown-linux-gnux32`
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/run.sh | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -82,13 +82,6 @@ if [ "$QEMU" != "" ]; then exec egrep "^(PASSED)|(test result: ok)" "${CARGO_TARGET_DIR}/out.log" fi -# FIXME: x86_64-unknown-linux-gnux32 fails to compile without --release -# See https://github.com/rust-lang/rust/issues/59220 -opt= -if [ "$TARGET" = "x86_64-unknown-linux-gnux32" ]; then - opt="--release" -fi - if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then # FIXME: s390x-unknown-linux-gnu often fails to test due to timeout, # so we retry this N times. @@ -103,12 +96,12 @@ if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then continue fi elif [ "$passed" = "1" ]; then - if cargo test $opt --manifest-path libc-test/Cargo.toml --target "${TARGET}" ; then + if cargo test --manifest-path libc-test/Cargo.toml --target "${TARGET}" ; then passed=$((passed+1)) continue fi elif [ "$passed" = "2" ]; then - if cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml --target "${TARGET}"; then + if cargo test --features extra_traits --manifest-path libc-test/Cargo.toml --target "${TARGET}"; then break fi fi @@ -116,11 +109,11 @@ if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then sleep 1 done else - cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml \ + cargo test --no-default-features --manifest-path libc-test/Cargo.toml \ --target "${TARGET}" - cargo test $opt --manifest-path libc-test/Cargo.toml --target "${TARGET}" + cargo test --manifest-path libc-test/Cargo.toml --target "${TARGET}" - RUST_BACKTRACE=1 cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml \ + RUST_BACKTRACE=1 cargo test --features extra_traits --manifest-path libc-test/Cargo.toml \ --target "${TARGET}" fi |