Extend xlate-test to replay results
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tests: xlate-test: Cleanup file reading loopxlate-test.py | +37 | 0 replies | |
| 2/3 | tests: xlate-test.py: Introduce run_proc()xlate-test.py | +11 | 0 replies | |
| 3/3 | tests: xlate-test: Replay results for reverse direction testingxlate-test.py | +144 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [iptables PATCH 0/3] Extend xlate-test to replay results
If nftables has libxtables support, it will utilize the .xlate callbacks to print compat expressions in native nftables syntax. Users may miss the fact that what they're seeing is not the reality and assume they may manipulate (including store and reload) the ruleset using nftables. This wasn't a big deal if iptables-nft understood all the translations libxtables offers.
To start catching up on this, add an optional replay mode to xlate-test.py checking if what was translated is correctly parsed back into the original input (or at least a semantical equivalent).
Patches 1 and 2 are prep work, patch 3 has the gory details.
Phil Sutter (3):
tests: xlate-test: Cleanup file reading loop
tests: xlate-test.py: Introduce run_proc()
tests: xlate-test: Replay results for reverse direction testing
xlate-test.py | 212 +++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 184 insertions(+), 28 deletions(-)
Signature · 1 line
2.38.0