]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zloop: Add a max iterations option, use default run/pass times
authorRyan Moeller <ryan@iXsystems.com>
Thu, 22 Jul 2021 21:29:27 +0000 (17:29 -0400)
committerTony Hutter <hutter2@llnl.gov>
Tue, 14 Sep 2021 19:40:45 +0000 (12:40 -0700)
commit729eb4866695bfeaa8f646d7608ce44f653f59e8
treeb2a78f6a01350fc0f97e27b98990ac99f07c983c
parent93e11e257b9a98a93703fa74e2687a4f19538dde
zloop: Add a max iterations option, use default run/pass times

It is useful to have control over the number of iterations of zloop so
we can easily produce "x core dumps found *in y iterations*" metrics.

Using random values for run/pass times doesn't improve coverage in a
meaningful way.

Randomizing run time could be seen as a compromise between running a
greater variety of shorter tests versus a smaller variety of longer
tests within a fixed time span.  However, it is not desirable when
running a fixed number of iterations.

Pass time already incorporates randomness within ztest.

Either parameter can be passed to ztest explicitly if the defaults are
not satisfactory.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #12411
.github/workflows/zloop.yml
scripts/zloop.sh