From 02295f3d01d13adba9fefeb7b9a40ea379aded1b Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Thu, 25 Jul 2013 22:44:40 +0200 Subject: tests: xml: add realistic XML tests files This patch refresh current XML testfiles with some realworld expressions extracted from rules. The nft instruction itself is added as a comment for future references. All XMl files are now indented with tabs instead of spaces. Also, a bunch of new realworld rules with mixed expressions are added. I used this command to get the XML formatted with tabs: $ export XMLLINT_INDENT=$'\t' $ xmllint --format file.xml The xmllint tool is included in the libxml2-utils package (at least on debian systems). Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- tests/xmlfiles/20-rule-bitwise.xml | 43 +++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 24 deletions(-) (limited to 'tests/xmlfiles/20-rule-bitwise.xml') diff --git a/tests/xmlfiles/20-rule-bitwise.xml b/tests/xmlfiles/20-rule-bitwise.xml index ce2d851..a61f4fb 100644 --- a/tests/xmlfiles/20-rule-bitwise.xml +++ b/tests/xmlfiles/20-rule-bitwise.xml @@ -1,26 +1,21 @@ - 0 - - 2 - 2 - 16 - - - 16 - 0xffffffff - 0xffffffff - 0xffffffff - 0x000000ff - - - - - 16 - 0xfaceb00c - 0xc1cac1ca - 0xcafecafe - 0xdeadbeef - - - + 0 + + 1 + 1 + 4 + + + 4 + 0x0000000a + + + + + 4 + 0x00000000 + + + + -- cgit v1.2.3