@@ -80,13 +80,14 @@ if [ "$QEMU" != "" ]; then
8080 exec grep " ^PASSED .* tests" " ${CARGO_TARGET_DIR} /out.log"
8181fi
8282
83- build_types=" +nightly +beta +stable +1.13.0"
83+ build_types=" +nightly +beta +stable +1.13.0 +1.19.0 +1.24.0 +1.30.0 "
8484for build_type in $build_types ;
8585do
86-
8786 opt=
8887 if [ " $TARGET " = " x86_64-unknown-linux-gnux32" ]; then
89- # FIXME: x86_64-unknown-linux-gnux32 fail to compile without --release
88+ # FIXME: x86_64-unknown-linux-gnux32 fail to compile without
89+ # --release
90+ #
9091 # See https://github.com/rust-lang/rust/issues/45417
9192 opt=" --release"
9293
9697 fi
9798 fi
9899
99- # Building with --no-default-features is currently broken on rumprun because we
100- # need cfg(target_vendor), which is currently unstable.
101- if [ " $TARGET " != " x86_64-rumprun-netbsd" ]; then
102- cargo " $build_type " test $opt --no-default-features --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
103- fi
100+ if [ " $BUILD_ONLY " = " 1" ]; then
101+ cargo " $build_type " build $opt --target " ${TARGET} "
102+ else
103+ # Building with --no-default-features is currently broken on rumprun
104+ # because we need cfg(target_vendor), which is currently unstable.
105+ if [ " $TARGET " != " x86_64-rumprun-netbsd" ]; then
106+ cargo " $build_type " test $opt \
107+ --no-default-features \
108+ --manifest-path libc-test/Cargo.toml \
109+ --target " ${TARGET} "
110+ fi
104111
105- # Test the #[repr(align(x))] feature; requires Rust >= 1.25.0
106- if [ " $build_type " != " +1.13.0" ]; then
107- cargo " $build_type " test $opt --features align --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
108- fi
112+ # Test the #[repr(align(x))] feature; requires Rust >= 1.25.0
113+ if [ " $build_type " != " +1.13.0" ]; then
114+ cargo " $build_type " test $opt \
115+ --features align \
116+ --manifest-path libc-test/Cargo.toml \
117+ --target " ${TARGET} "
118+ fi
109119
110- exec cargo " $build_type " test $opt --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
120+ cargo " $build_type " test $opt \
121+ --manifest-path libc-test/Cargo.toml \
122+ --target " ${TARGET} "
123+ fi
111124done
112125
0 commit comments