summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-06-26 21:36:10 +0200
committerFlorian Westphal <fw@strlen.de>2018-06-27 23:44:04 +0200
commit9933dc543628b1531ac30b30b9894a16c86a0b7a (patch)
treec89128d1fe3d7ad2496552110076ecbee52ee145 /utils
parentbe70918eab26e0c5fe219fefab325056144976d9 (diff)
tests: adapt test suite to run with legacy+nftables based binaries
While at it, make following changes/fixes: 1. run each test in a fresh net namespace 2. remove rmmod use, its very distuptive and not needed after 1. 3. avoid -e use if possible 4. make sure we exit 0 when test is expected to fail 5. set XT_LIBDIR so we point at the correct extensions to be used Also delete 0003duplicate_1, its same test as 0001duplicate_1. NB: I don't think its good to have this 'encode retval in name' scheme. These are scripts, so they should always return 0, i.e. do iptables --this-command-should-fail || exit 0 echo "succeess, should fail" exit 1 Much simpler, imo. This was inherited from nft shell tests though and changing it there is rather intrusive so use same scheme for now. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions