mirror of
https://github.com/openharmony/third_party_rust_encoding_rs.git
synced 2026-07-19 23:04:37 -04:00
CI: run tests in Miri
This commit is contained in:
@@ -8,3 +8,10 @@ env:
|
||||
script:
|
||||
- cargo test --verbose --features 'less-slow-kanji-encode less-slow-big5-hanzi-encode less-slow-gb-hanzi-encode serde'
|
||||
- cargo test --verbose
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- name: miri
|
||||
rust: nightly
|
||||
script:
|
||||
- sh ci/miri.sh
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
set -ex
|
||||
|
||||
# Install Miri.
|
||||
MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
|
||||
echo "Installing latest nightly with Miri: $MIRI_NIGHTLY"
|
||||
rustup default "$MIRI_NIGHTLY"
|
||||
rustup component add miri
|
||||
|
||||
# Run tests.
|
||||
# Stacked Borrows is disabled as it costs too much RAM (due to our large tables).
|
||||
cargo miri test -- -Zmiri-disable-stacked-borrows
|
||||
|
||||
# Restore old state in case Travis uses this cache for other jobs.
|
||||
rustup default nightly
|
||||
Reference in New Issue
Block a user