From dc9733e097959f4e167244549f58cd3bef7af79b Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Thu, 27 Jun 2013 20:09:34 +0200 Subject: test: add testbench for XML This patch add a testbench for XML parsing, which may be extended to test JSON as well. To use it: $ cd test/ $ make nft-parsing-test $ ./nft-parsing-test xmlfiles/ This testbench supersedes old .sh test scripts, so they are deleted. [ I have mangled this patch to rename/mangle files, to colorize the test output and not to compile XML inconditionally --pablo ] Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- examples/chain.xml | 11 ------- examples/rule.xml | 85 ------------------------------------------------------ examples/table.xml | 6 ---- 3 files changed, 102 deletions(-) delete mode 100644 examples/chain.xml delete mode 100644 examples/rule.xml delete mode 100644 examples/table.xml (limited to 'examples') diff --git a/examples/chain.xml b/examples/chain.xml deleted file mode 100644 index 01ccb85..0000000 --- a/examples/chain.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - filter - filter
- 1 - 0 - 4 - 1 - 10 -
-
diff --git a/examples/rule.xml b/examples/rule.xml deleted file mode 100644 index b1de25a..0000000 --- a/examples/rule.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - 0 - 127 - 0 - 0 - - 1 - 4 - - - 1 - eq - - - 1 - 0x04000000 - - - - - 1 - 1 - 12 - 4 - - - 1 - eq - - - 1 - 0x96d60496 - - - - - 1 - 1 - 16 - 4 - - - 1 - eq - - - 1 - 0x96d60329 - - - - - 1 - 1 - 9 - 1 - - - 1 - eq - - - 1 - 0x06000000 - - - - - state - 0 - - - - - 123123 - 321321 - - - LOG - 0 - - - - diff --git a/examples/table.xml b/examples/table.xml deleted file mode 100644 index a397d52..0000000 --- a/examples/table.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - 2 - 0 - -
-- cgit v1.2.3