]> git.ipfire.org Git - thirdparty/curl.git/commit
runtests: make random seed fixed for a month
authorDaniel Stenberg <daniel@haxx.se>
Wed, 18 Dec 2019 14:37:20 +0000 (15:37 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Jan 2020 08:12:05 +0000 (09:12 +0100)
commita7d4693a4813a13d6b2e6f223f119e13b3b58102
treefb4722cd6975c5713ef5c07601ebe08e58974157
parent5059f5552f7759477eb5ea8e26ce99b556c684c2
runtests: make random seed fixed for a month

When using randomized features of runtests (-R and --shallow) it is
useful to have a fixed random seed to make sure for example extra
commits in a branch or a rebase won't change the seed that would make
repeated runs work differently.

As it is also useful to change seed sometimes, the default seed is now
determined based on the current month (and first line curl -V
output). When the month changes, so will the random seed.

The specific seed is also shown in the standard test suite top header
and it can be set explictly with the new --seed=[num] option so that the
exact order of a previous run can be achieved.

Closes #4734
tests/runtests.1
tests/runtests.pl