about summary refs log tree commit diff
path: root/library/test/src/helpers
AgeCommit message (Collapse)AuthorLines
2021-10-07Rollup merge of #89082 - smoelius:master, r=kennytmJubilee-0/+68
Implement #85440 (Random test ordering) This PR adds `--shuffle` and `--shuffle-seed` options to `libtest`. The options are similar to the [`-shuffle` option](https://github.com/golang/go/blob/c894b442d1e5e150ad33fa3ce13dbfab1c037b3a/src/testing/testing.go#L1482-L1499) that was recently added to Go. Here are the relevant parts of the help message: ``` --shuffle Run tests in random order --shuffle-seed SEED Run tests in random order; seed the random number generator with SEED ... By default, the tests are run in alphabetical order. Use --shuffle or set RUST_TEST_SHUFFLE to run the tests in random order. Pass the generated "shuffle seed" to --shuffle-seed (or set RUST_TEST_SHUFFLE_SEED) to run the tests in the same order again. Note that --shuffle and --shuffle-seed do not affect whether the tests are run in parallel. ``` Is an RFC needed for this?
2021-09-29Implement #85440Samuel E. Moelius III-0/+68
2021-09-28Rename `std::thread::available_onccurrency` to ↵Yoshua Wuyts-1/+1
`std::thread::available_parallelism`
2021-03-27lazily calls some fnsklensy-1/+1
2020-11-10Remove io::LocalOutput and use Arc<Mutex<dyn>> for local streams.Mara Bos-32/+0
2020-11-08Rollup merge of #78065 - tshepang:nits, r=dtolnayMara Bos-11/+7
make concurrency helper more pleasant to read
2020-10-22Capture output from threads spawned in testsTyler Mandry-0/+7
Fixes #42474.
2020-10-21make concurrency helper more pleasant to readTshepang Lekhonkhobe-11/+7
2020-10-16Add std::thread::available_concurrencyYoshua Wuyts-101/+2
2020-08-08fix clippy::needless_return: remove unneeded return statementsMatthias Krüger-2/+2
2020-07-27mv std libs to library/mark-0/+251