Skip to content

Commit

Permalink
Refactor test script.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Dec 31, 2019
1 parent 945c884 commit a551676
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,17 @@ main() {

export QEMU_STRACE=1

# test `cross check`
if [[ ! -z ${STD:-} ]]; then
if [[ ${STD:-} ]]; then
# test `cross check`
td=$(mktemp -d)
cargo init --lib --name foo $td
pushd $td
echo '#![no_std]' > src/lib.rs
cross check --target $TARGET
popd
rm -rf $td
fi

# `cross build` test for targets where `std` is not available
if [[ -z "${STD:-}" ]]; then
else
# `cross build` test for targets where `std` is not available
td=$(mktemp -d)

git clone \
Expand Down

0 comments on commit a551676

Please sign in to comment.