Skip to content
Snippets Groups Projects
Unverified Commit 515ecc67 authored by Yuki Okushi's avatar Yuki Okushi Committed by GitHub
Browse files

Merge pull request #1916 from JohnTitor/s390x

parents dd865168 911b5440
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,8 @@ mkdir -m 777 /qemu ...@@ -6,8 +6,8 @@ mkdir -m 777 /qemu
cd /qemu cd /qemu
curl --retry 5 -LO https://github.com/qemu/qemu/raw/master/pc-bios/s390-ccw.img curl --retry 5 -LO https://github.com/qemu/qemu/raw/master/pc-bios/s390-ccw.img
curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20191129/images/generic/kernel.debian curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20200314/images/generic/kernel.debian
curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20191129/images/generic/initrd.debian curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20200314/images/generic/initrd.debian
mv kernel.debian kernel mv kernel.debian kernel
mv initrd.debian initrd.gz mv initrd.debian initrd.gz
......
...@@ -82,17 +82,45 @@ if [ "$QEMU" != "" ]; then ...@@ -82,17 +82,45 @@ if [ "$QEMU" != "" ]; then
exec egrep "^(PASSED)|(test result: ok)" "${CARGO_TARGET_DIR}/out.log" exec egrep "^(PASSED)|(test result: ok)" "${CARGO_TARGET_DIR}/out.log"
fi fi
# FIXME: x86_64-unknown-linux-gnux32 fail to compile without --release # FIXME: x86_64-unknown-linux-gnux32 fails to compile without --release
# See https://github.com/rust-lang/rust/issues/59220 # See https://github.com/rust-lang/rust/issues/59220
opt= opt=
if [ "$TARGET" = "x86_64-unknown-linux-gnux32" ]; then if [ "$TARGET" = "x86_64-unknown-linux-gnux32" ]; then
opt="--release" opt="--release"
fi fi
cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml \ if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then
--target "${TARGET}" # FIXME: s390x-unknown-linux-gnu often fails to test due to timeout,
# so we retry this N times.
N=5
n=0
passed=0
until [ $n -ge $N ]
do
if [ "$passed" = "0" ]; then
if cargo test --no-default-features --manifest-path libc-test/Cargo.toml --target "${TARGET}" ; then
passed=$((passed+1))
continue
fi
elif [ "$passed" = "1" ]; then
if cargo test $opt --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
break
fi
fi
n=$((n+1))
sleep 1
done
else
cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml \
--target "${TARGET}"
cargo test $opt --manifest-path libc-test/Cargo.toml --target "${TARGET}" cargo test $opt --manifest-path libc-test/Cargo.toml --target "${TARGET}"
cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml \ cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml \
--target "${TARGET}" --target "${TARGET}"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment