]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/py: Add a test sanitizer and fix its findings
authorPhil Sutter <phil@nwl.cc>
Tue, 29 Dec 2020 18:33:44 +0000 (19:33 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 4 Feb 2021 00:23:11 +0000 (01:23 +0100)
commit8cf50997500978844f6069189d63f2e809a4abed
treebaadabc1491708eba9202bc0376fffd1529510d7
parent2cfab7a3e10fcb8ec1aeacc2713a24c1f1d71aae
tests/py: Add a test sanitizer and fix its findings

This is just basic housekeeping:

- Remove duplicate tests in any of the *.t files
- Remove explicit output if equal to command itself in *.t files
- Remove duplicate payload records in any of the *.t.payload* files
- Remove stale payload records (for which no commands exist in the
  respective *.t file
- Remove duplicate/stale entries in any of the *.t.json files

In some cases, tests were added instead of removing a stale payload
record if it fit nicely into the sequence of tests.

Signed-off-by: Phil Sutter <phil@nwl.cc>
39 files changed:
tests/py/any/ct.t
tests/py/any/ct.t.json
tests/py/any/ct.t.payload
tests/py/any/meta.t
tests/py/any/meta.t.payload
tests/py/any/tcpopt.t
tests/py/arp/arp.t
tests/py/arp/arp.t.json
tests/py/arp/arp.t.payload
tests/py/arp/arp.t.payload.netdev
tests/py/inet/ah.t
tests/py/inet/dccp.t.json
tests/py/inet/dccp.t.payload
tests/py/inet/esp.t
tests/py/inet/esp.t.json
tests/py/inet/ether.t.payload.bridge
tests/py/inet/ether.t.payload.ip
tests/py/inet/reject.t.payload.inet
tests/py/inet/rt.t
tests/py/inet/sets.t.payload.netdev
tests/py/inet/synproxy.t.json
tests/py/ip/icmp.t.payload.ip
tests/py/ip/igmp.t.payload
tests/py/ip/ip.t
tests/py/ip/ip.t.payload
tests/py/ip/ip.t.payload.inet
tests/py/ip/ip.t.payload.netdev
tests/py/ip6/dnat.t
tests/py/ip6/ether.t
tests/py/ip6/frag.t.payload.inet
tests/py/ip6/frag.t.payload.ip6
tests/py/ip6/icmpv6.t
tests/py/ip6/icmpv6.t.json
tests/py/ip6/icmpv6.t.payload.ip6
tests/py/ip6/ip6.t
tests/py/ip6/ip6.t.payload.inet
tests/py/ip6/ip6.t.payload.ip6
tests/py/ip6/snat.t
tests/py/tools/test-sanitizer.sh [new file with mode: 0755]