Skip to content

Commit f044205

Browse files
committed
the test suite assumes a libstd with full MIR; run test suite on xargo-built foreign libstds
1 parent b6eb2cd commit f044205

File tree

84 files changed

+22
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+22
-50
lines changed

.travis.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,35 @@ before_script:
2020
else
2121
RUST_TOOLCHAIN=$(cat rust-version)
2222
fi
23+
- |
24+
if [ "$TRAVIS_OS_NAME" == osx ]; then
25+
export MIRI_SYSROOT_BASE=~/Library/Caches/miri.miri.miri/
26+
else
27+
export MIRI_SYSROOT_BASE=~/.cache/miri/HOST
28+
fi
2329
# install Rust
2430
- curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN"
2531
- export PATH=$HOME/.cargo/bin:$PATH
2632
- rustc --version
27-
# customize installation
28-
- rustup target add i686-unknown-linux-gnu
29-
- rustup target add i686-pc-windows-gnu
30-
- rustup target add i686-pc-windows-msvc
3133

3234
script:
3335
- set -e
3436
- |
35-
# Test and install plain miri
37+
# Build and install miri
3638
cargo build --release --all-features --all-targets &&
37-
cargo test --release --all-features &&
3839
cargo install --all-features --force --path .
3940
- |
40-
# Get ourselves a MIR-full libstd, and use it henceforth
41+
# Get ourselves a MIR-full libstd
4142
cargo miri setup &&
42-
if [ "$TRAVIS_OS_NAME" == osx ]; then
43-
export MIRI_SYSROOT=~/Library/Caches/miri.miri.miri/HOST
44-
else
45-
export MIRI_SYSROOT=~/.cache/miri/HOST
46-
fi
43+
cargo miri setup --target i686-unknown-linux-gnu &&
44+
cargo miri setup --target i686-apple-darwin
4745
- |
48-
# Test miri with full MIR
49-
cargo test --release --all-features
46+
# Test miri with full MIR, on the host and other architectures
47+
MIRI_SYSROOT=$MIRI_SYSROOT_BASE/HOST cargo test --release --all-features &&
48+
MIRI_SYSROOT=$MIRI_SYSROOT_BASE cargo test --release --all-features
5049
- |
5150
# Test cargo integration
52-
(cd cargo-miri-test && ./run-test.py)
51+
(cd test-cargo-miri && MIRI_SYSROOT=$MIRI_SYSROOT_BASE/HOST ./run-test.py)
5352
5453
notifications:
5554
email:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)