netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 0/3] add NFT_TEST_RANDOM_SEED and shuffle tests
@ 2023-09-13  8:20 Thomas Haller
  2023-09-13  8:20 ` [PATCH nft 1/3] tests/shell: export NFT_TEST_RANDOM_SEED variable for tests Thomas Haller
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Haller @ 2023-09-13  8:20 UTC (permalink / raw)
  To: NetFilter; +Cc: Thomas Haller

- 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

-- 
2.41.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-13  8:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-13  8:20 [PATCH nft 0/3] add NFT_TEST_RANDOM_SEED and shuffle tests Thomas Haller
2023-09-13  8:20 ` [PATCH nft 1/3] tests/shell: export NFT_TEST_RANDOM_SEED variable for tests Thomas Haller
2023-09-13  8:20 ` [PATCH nft 2/3] tests/shell: add "random-source.sh" helper for random-source for sort/shuf Thomas Haller
2023-09-13  8:20 ` [PATCH nft 3/3] tests/shell: add option to shuffle execution order of tests Thomas Haller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).