summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* check-tree.sh: check and flag /bin/sh usageFlorian Westphal2023-10-241-0/+1
| | | | | | | | | | | | Almost all shell tests use /bin/bash already. In some cases we've had shell tests use /bin/sh, but still having a bashism. This causes failures on systems where sh is dash or another, strict bourne shell. Flag those via check-tree.sh. Signed-off-by: Florian Westphal <fw@strlen.de>
* tools: reject unexpected files in "tests/shell/testcases/" with "check-tree.sh"Thomas Haller2023-10-241-2/+17
| | | | | | | | | "check-tree.sh" does consistency checks on the source tree. Extend the check to flag more unexpected files. We don't want to accidentally have left over files. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* tools: add "tools/check-tree.sh" script to check consistency of nft dumpsThomas Haller2023-09-151-0/+91
The script performs some checks on the source tree, and fails if any problems are found. Currently it only checks for the dumps files, but it shall be extended to perform various consistency checks of the source tree. This script was already successful at finding issues with the dumps. Running it helps to make sure we don't make mistakes. Later it should also integrate with `make check` and/or be called from CI. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de>