File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -41,19 +41,17 @@ main() {
41
41
42
42
export QEMU_STRACE=1
43
43
44
- # test `cross check`
45
- if [[ ! -z ${STD :- } ]] ; then
44
+ if (( ${STD :- 0} )) ; then
45
+ # test `cross check`
46
46
td=$( mktemp -d)
47
47
cargo init --lib --name foo $td
48
48
pushd $td
49
49
echo ' #![no_std]' > src/lib.rs
50
50
cross check --target $TARGET
51
51
popd
52
52
rm -rf $td
53
- fi
54
-
55
- # `cross build` test for targets where `std` is not available
56
- if [[ -z " ${STD:- } " ]]; then
53
+ else
54
+ # `cross build` test for targets where `std` is not available
57
55
td=$( mktemp -d)
58
56
59
57
git clone \
99
97
rm -rf $td
100
98
fi
101
99
102
- if [[ ${RUN:- } ]] ; then
100
+ if (( ${RUN:- 0} )) ; then
103
101
# `cross test` test
104
- if [[ ${DYLIB:- } ]] ; then
102
+ if (( ${DYLIB:- 0} )) ; then
105
103
td=$( mktemp -d)
106
104
107
105
pushd $td
@@ -151,15 +149,15 @@ EOF
151
149
fi
152
150
153
151
# Test C++ support
154
- if [[ ${CPP:- } ]] ; then
152
+ if (( ${CPP:- 0} )) ; then
155
153
td=$( mktemp -d)
156
154
157
155
git clone --depth 1 https://github.com/japaric/hellopp $td
158
156
159
157
pushd $td
160
158
cargo update -p gcc
161
159
retry cargo fetch
162
- if [[ ${RUN:- } ]] ; then
160
+ if (( ${RUN:- 0} )) ; then
163
161
cross_run --target $TARGET
164
162
else
165
163
cross build --target $TARGET
You can’t perform that action at this time.
0 commit comments