Skip to content

Commit fb05ad4

Browse files
committed
Make assembly test script simpler
1 parent 2b706ee commit fb05ad4

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

helper-scripts/run-assembly-tests.sh

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,26 @@
44

55
set -euxo pipefail
66

7-
ARGS="run --features=run --bin=test-assembly -- -Zbuild-std --target"
7+
echo Building assembly tester
8+
cargo build --features=run --bin=test-assembly
89

9-
# Add `+nightly` when using `-Zbuild-std` if the user's `cargo` is not a
10-
# `nightly` by default
11-
if grep -q nightly <<< $(cargo --version); then
12-
NIGHTLY=""
13-
else
14-
NIGHTLY="+nightly"
15-
fi
10+
RUN="./target/debug/test-assembly -Zbuild-std --target"
11+
export RUSTUP_TOOLCHAIN="nightly"
1612

1713
echo "Apple"
18-
cargo $NIGHTLY $ARGS x86_64-apple-darwin
19-
cargo $NIGHTLY $ARGS aarch64-apple-darwin
20-
cargo $NIGHTLY $ARGS armv7s-apple-ios
21-
cargo $NIGHTLY $ARGS armv7-apple-ios
22-
cargo $NIGHTLY $ARGS i386-apple-ios
14+
$RUN x86_64-apple-darwin
15+
$RUN aarch64-apple-darwin
16+
$RUN armv7s-apple-ios
17+
$RUN armv7-apple-ios
18+
$RUN i386-apple-ios
2319

2420
echo "Old Apple"
25-
cargo $NIGHTLY $ARGS i686-apple-darwin
21+
$RUN i686-apple-darwin
2622

2723
echo "GNUStep"
28-
cargo $NIGHTLY $ARGS x86_64-unknown-linux-gnu --no-default-features --features=std,gnustep-2-1
29-
cargo $NIGHTLY $ARGS i686-unknown-linux-gnu --no-default-features --features=std,gnustep-2-1
24+
$RUN x86_64-unknown-linux-gnu --no-default-features --features=std,gnustep-2-1
25+
$RUN i686-unknown-linux-gnu --no-default-features --features=std,gnustep-2-1
3026

3127
echo "Old GNUStep"
32-
cargo $NIGHTLY $ARGS x86_64-unknown-linux-gnu --no-default-features --features=std,gnustep-1-7
33-
cargo $NIGHTLY $ARGS i686-unknown-linux-gnu --no-default-features --features=std,gnustep-1-7
28+
$RUN x86_64-unknown-linux-gnu --no-default-features --features=std,gnustep-1-7
29+
$RUN i686-unknown-linux-gnu --no-default-features --features=std,gnustep-1-7

0 commit comments

Comments
 (0)