From d8b6b6a05fae1c4d04189b8518d8c6767ac9368c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Eckl?= Date: Thu, 17 May 2018 09:36:58 +0200 Subject: tests: py: updated test file structure descripion in README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The order of the table and chain definitions have changed in test files. Now the name of the chain has to be specified in the definition of the table, so their order is reverted. Signed-off-by: Máté Eckl Signed-off-by: Florian Westphal --- tests/py/README | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/py/README') diff --git a/tests/py/README b/tests/py/README index 005fe8ed..a1560329 100644 --- a/tests/py/README +++ b/tests/py/README @@ -64,11 +64,11 @@ A test file contains a set of rules that are added in the system. Here, an example of a test file: - *ip;test-ipv4 # line 1 - *ip6;test-ipv6 # line 2 - *inet;test-inet # line 3 + :input;type filter hook input priority 0 # line 1 - :input;type filter hook input priority 0 # line 4 + *ip;test-ipv4;input # line 2 + *ip6;test-ipv6;input # line 3 + *inet;test-inet;input # line 4 ah hdrlength != 11-23;ok;ah hdrlength < 11 ah hdrlength > 23 # line 5 - tcp dport != {22-25} # line 6 @@ -77,12 +77,12 @@ Here, an example of a test file: ?set1 192.168.3.8 192.168.3.9;ok # line 8 # This is a commented-line. # line 9 -Line 1 defines a table. The name of the table is 'test-ipv4' and the -family is ip. Lines 2 and 3 defines more tables for different families -so the rules in this test file are also tested there. +Line 1 defines a chain. The name of this chain is "input". The type is "filter", +the hook is "input" and the priority is 0. -Line 4 defines the chain. The name of this chain is "input". The type is -"filter", the hook is "input" and the priority is 0. +Line 2 defines a table. The name of the table is 'test-ipv4', the family is ip +and the chain to be added to it is 'input'. Lines 3 and 4 defines more tables for +different families so the rules in this test file are also tested there. Line 5 defines the rule, the ";" character is used as separator of several parts: -- cgit v1.2.3