ctest: Add option to specify the --schedule-random seed

When `--schedule-random` is used in automated CI jobs, failures may
occur due to test order.  We now log the seed.  Provide a way for
developers to re-run the same order by specifying the seed.

Fixes: #26760
Co-authored-by: Brad King <brad.king@kitware.com>
This commit is contained in:
Daniel Goldberg
2025-03-17 22:09:18 +02:00
committed by Brad King
parent 3dc8e59bdc
commit d3455f38de
11 changed files with 75 additions and 6 deletions
@@ -0,0 +1,7 @@
ctest-schedule-random-seed
--------------------------
* :manual:`ctest(1)` gained a
:option:`--schedule-random-seed <ctest --schedule-random-seed>`
option to specify a numeric random seed to make
:option:`ctest --schedule-random` deterministic for reproduction.