-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
89 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Check if TARGET and CONFIG_FLAGS are provided, otherwise panic | ||
if [ -z "$1" ]; then | ||
echo "Error: TARGET is not provided" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$2" ]; then | ||
echo "Error: CONFIG_FLAGS are not provided" | ||
exit 1 | ||
fi | ||
|
||
TARGET=$1 | ||
CONFIG_FLAGS=$2 | ||
|
||
rustup toolchain install nightly --component miri | ||
rustup override set nightly | ||
cargo miri setup | ||
|
||
export MIRIFLAGS="-Zmiri-strict-provenance -Zmiri-disable-isolation -Zmiri-symbolic-alignment-check" | ||
export RUSTFLAGS="--cfg test_$CONFIG_FLAGS" | ||
|
||
cargo miri test --tests --target x86_64-unknown-linux-gnu --all-features | ||
# cargo miri test --tests --target aarch64-unknown-linux-gnu #crossbeam_utils has problem on this platform | ||
cargo miri test --tests --target i686-unknown-linux-gnu --all-features | ||
cargo miri test --tests --target powerpc64-unknown-linux-gnu --all-features | ||
cargo miri test --tests --target $TARGET --lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ -z "$1" ]; then | ||
echo "Error: CONFIG_FLAGS are not provided" | ||
exit 1 | ||
fi | ||
|
||
CONFIG_FLAGS=$1 | ||
|
||
rustup toolchain install nightly --component miri | ||
rustup override set nightly | ||
cargo miri setup | ||
|
||
export MIRIFLAGS="-Zmiri-strict-provenance -Zmiri-disable-isolation -Zmiri-symbolic-alignment-check" | ||
export RUSTFLAGS="--cfg test_$CONFIG_FLAGS" | ||
|
||
cargo miri test --tests --all-features | ||
cargo miri test --tests --lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Check if TARGET and CONFIG_FLAGS are provided, otherwise panic | ||
if [ -z "$1" ]; then | ||
echo "Error: TARGET is not provided" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$2" ]; then | ||
echo "Error: CONFIG_FLAGS are not provided" | ||
exit 1 | ||
fi | ||
|
||
TARGET=$1 | ||
CONFIG_FLAGS=$2 | ||
|
||
rustup toolchain install nightly --component miri | ||
rustup override set nightly | ||
cargo miri setup | ||
|
||
export MIRIFLAGS="-Zmiri-strict-provenance -Zmiri-disable-isolation -Zmiri-symbolic-alignment-check -Zmiri-tree-borrows" | ||
export RUSTFLAGS="--cfg test_$CONFIG_FLAGS" | ||
|
||
cargo miri test --tests --target $TARGET --lib | ||
|
||
cargo miri test --tests --target x86_64-unknown-linux-gnu --all-features | ||
# cargo miri test --tests --target aarch64-unknown-linux-gnu #crossbeam_utils has problem on this platform | ||
cargo miri test --tests --target i686-unknown-linux-gnu --all-features | ||
cargo miri test --tests --target powerpc64-unknown-linux-gnu --all-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ -z "$1" ]; then | ||
echo "Error: CONFIG_FLAGS are not provided" | ||
exit 1 | ||
fi | ||
|
||
CONFIG_FLAGS=$1 | ||
|
||
rustup toolchain install nightly --component miri | ||
rustup override set nightly | ||
cargo miri setup | ||
|
||
export MIRIFLAGS="-Zmiri-strict-provenance -Zmiri-disable-isolation -Zmiri-symbolic-alignment-check -Zmiri-tree-borrows" | ||
export RUSTFLAGS="--cfg test_$CONFIG_FLAGS" | ||
|
||
cargo miri test --tests --all-features | ||
cargo miri test --tests --lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.