File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ function run_tests {
54
54
unset RUSTC MIRI
55
55
rm -rf .cargo
56
56
57
- # Ensure that our benchmarks all work, on the host at least .
58
- if [ -z " ${MIRI_TEST_TARGET+exists} " ]; then
57
+ # Ensure that our benchmarks all work, but only on Linux hosts .
58
+ if [ -z " ${MIRI_TEST_TARGET+exists} " ] && [ " $HOST_TARGET " = x86_64-unknown-linux-gnu ] ; then
59
59
for BENCH in $( ls " bench-cargo-miri" ) ; do
60
60
cargo miri run --manifest-path bench-cargo-miri/$BENCH /Cargo.toml
61
61
done
Original file line number Diff line number Diff line change @@ -90,13 +90,13 @@ bench)
90
90
# Make sure we have an up-to-date Miri installed
91
91
" $0 " install
92
92
# Run the requested benchmarks
93
- if [ -z " $@ " ]; then
93
+ if [ -z " ${1+exists} " ]; then
94
94
BENCHES=( $( ls " $MIRIDIR /bench-cargo-miri" ) )
95
95
else
96
96
BENCHES=(" $@ " )
97
97
fi
98
98
for BENCH in " ${BENCHES[@]} " ; do
99
- hyperfine -w 1 -m 5 --shell=none " cargo +$TOOLCHAIN miri run --manifest-path bench-cargo-miri/$BENCH /Cargo.toml"
99
+ hyperfine -w 1 -m 5 --shell=none " cargo +$TOOLCHAIN miri run --manifest-path $MIRIDIR / bench-cargo-miri/$BENCH /Cargo.toml"
100
100
done
101
101
exit 0
102
102
;;
You can’t perform that action at this time.
0 commit comments