@@ -80,24 +80,37 @@ if [ "$QEMU" != "" ]; then
80
80
exec grep " ^PASSED .* tests" " ${CARGO_TARGET_DIR} /out.log"
81
81
fi
82
82
83
- # FIXME: x86_64-unknown-linux-gnux32 fail to compile without --release
84
- # See https://github.com/rust-lang/rust/issues/45417
85
- opt=
86
- if [ " $TARGET " = " x86_64-unknown-linux-gnux32" ]; then
87
- opt=" --release"
88
- fi
83
+ build_types=" +nightly +beta +stable +1.13.0"
84
+ for build_type in $build_types ;
85
+ do
89
86
90
- # Building with --no-default-features is currently broken on rumprun because we
91
- # need cfg(target_vendor), which is currently unstable.
92
- if [ " $TARGET " != " x86_64-rumprun-netbsd" ]; then
93
- cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
94
- fi
95
- # Test the #[repr(align(x))] feature if this is building on Rust >= 1.25
96
- if [ " $( rustc --version | sed -E ' s/^rustc 1\.([0-9]*)\..*/\1/' ) " -ge 25 ]; then
97
- cargo test $opt --features align --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
98
- fi
99
- # Test the `extra_traits` feature if this is building on Rust >= 1.25
100
- if [ " $( rustc --version | sed -E ' s/^rustc 1\.([0-9]*)\..*/\1/' ) " -ge 25 ]; then
101
- cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
102
- fi
103
- exec cargo test $opt --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
87
+ opt=
88
+ if [ " $TARGET " = " x86_64-unknown-linux-gnux32" ]; then
89
+ # FIXME: x86_64-unknown-linux-gnux32 fail to compile without --release
90
+ # See https://github.com/rust-lang/rust/issues/45417
91
+ opt=" --release"
92
+
93
+ # x86_64-unknown-linux-gnux32 is only available on nightly:
94
+ if [ " $build_type " != " nightly" ]; then
95
+ continue
96
+ fi
97
+ fi
98
+
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
104
+
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
109
+
110
+ # Test the `extra_traits` feature; requires Rust >= 1.25.0
111
+ if [ " $build_type " != " +1.13.0" ]; then
112
+ cargo " $build_type " test $opt --features extra_traits --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
113
+ fi
114
+
115
+ exec cargo " $build_type " test $opt --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
116
+ done
0 commit comments