]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: rework finding tests and add "--list-tests" option
authorThomas Haller <thaller@redhat.com>
Wed, 6 Sep 2023 11:52:05 +0000 (13:52 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 7 Sep 2023 17:35:20 +0000 (19:35 +0200)
commite69be63ca99b472872c2a213485c595d444cf0af
tree71ee69a3539606ec36da401142ea384c946ac3c9
parentdfe443ff3db2ff886d519f4704c270627a9cff5a
tests/shell: rework finding tests and add "--list-tests" option

Cleanup finding the test files. Also add a "--list-tests" option to see
which tests are found and would run.

Also get rid of the FIND="$(which find)" detection. Which system doesn't
have a working find? Also, we can just fail when we try to use find, and
don't need a check first.

This is still  after "unshare", which will be addressed next.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/run-tests.sh