Skip to content

add NFT_TEST_RANDOM_SEED and shuffle tests

Thomas Haller netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tests/shell: export NFT_TEST_RANDOM_SEED variable for teststests/shell/run-tests.sh+46 -00 replies
2/3tests/shell: add "random-source.sh" helper for random-source for sort/shuftests/shell/helpers/random-source.sh tests/shell/testcases/sets/automerge_0+41 -10 replies
3/3tests/shell: add option to shuffle execution order of teststests/shell/run-tests.sh+18 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 0/3] add NFT_TEST_RANDOM_SEED and shuffle tests

- let "run-tests.sh" export a NFT_TEST_RANDOM_SEED, which tests may use for generating stable (reproducible) sequences in randomized tests.
- add NFT_TEST_SHUFFLE_TESTS, to randomize the order in which tests are run. The purpose is to find issues where tests interfere with each other. It's enabled by default, if no tests are explicitly specified on the command line.

Thomas Haller (3):
tests/shell: export NFT_TEST_RANDOM_SEED variable for tests tests/shell: add "random-source.sh" helper for random-source for
sort/shuf
tests/shell: add option to shuffle execution order of tests

 tests/shell/helpers/random-source.sh   | 40 ++++++++++++++++
 tests/shell/run-tests.sh               | 64 ++++++++++++++++++++++++++
 tests/shell/testcases/sets/automerge_0 |  2 +-
 3 files changed, 105 insertions(+), 1 deletion(-)
 create mode 100755 tests/shell/helpers/random-source.sh
Signature · 1 line
2.41.0