-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to git deps from local path deps for shred and hibitset
- Loading branch information
Showing
4 changed files
with
43 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[profile.default-miri] | ||
slow-timeout = { period = "30s", terminate-after = 1 } | ||
fail-fast = false |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
# | ||
# Convenience script for running Miri, also the same one that the CI runs! | ||
|
||
# use half the available threads since miri can be a bit memory hungry | ||
test_threads=$((($(nproc) - 1) / 2 + 1)) | ||
echo using $test_threads threads | ||
|
||
# filters out long running tests | ||
filter='not (test(100k) | test(map_test::wrap) | test(map_test::insert_same_key) | test(=mixed_create_merge)| test(=par_join_many_entities_and_systems) | test(=stillborn_entities))' | ||
echo "using filter: \"$filter\"" | ||
|
||
# Miri currently reports leaks in some tests so we disable that check | ||
# here (might be due to ptr-int-ptr in crossbeam-epoch so might be | ||
# resolved in future versions of that crate). | ||
MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-ignore-leaks" \ | ||
cargo +nightly miri nextest run \ | ||
-E "$filter" \ | ||
--test-threads="$test_threads" \ | ||
# use nocapture or run miri directly to see warnings from miri | ||
#--nocapture |