From f086b8164a0fe762c9c300c212a4c1b0386b5064 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Fri, 18 Nov 2011 11:58:18 -0500 Subject: [PATCH] Add test cases Add test case for the chain names with known prefixes and the chain priority. Signed-off-by: Stefan Berger --- tests/nwfilterxml2xmlin/chain_prefixtest1.xml | 37 +++++++++++++++++++ .../nwfilterxml2xmlout/chain_prefixtest1.xml | 21 +++++++++++ tests/nwfilterxml2xmltest.c | 2 + 3 files changed, 60 insertions(+) create mode 100644 tests/nwfilterxml2xmlin/chain_prefixtest1.xml create mode 100644 tests/nwfilterxml2xmlout/chain_prefixtest1.xml diff --git a/tests/nwfilterxml2xmlin/chain_prefixtest1.xml b/tests/nwfilterxml2xmlin/chain_prefixtest1.xml new file mode 100644 index 0000000000..c2f3f77791 --- /dev/null +++ b/tests/nwfilterxml2xmlin/chain_prefixtest1.xml @@ -0,0 +1,37 @@ + + e5700920-a333-4c05-8016-b669e46b7599 + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/nwfilterxml2xmlout/chain_prefixtest1.xml b/tests/nwfilterxml2xmlout/chain_prefixtest1.xml new file mode 100644 index 0000000000..3d47a4c28a --- /dev/null +++ b/tests/nwfilterxml2xmlout/chain_prefixtest1.xml @@ -0,0 +1,21 @@ + + e5700920-a333-4c05-8016-b669e46b7599 + + + + + + + + + + + + + + + + + + + diff --git a/tests/nwfilterxml2xmltest.c b/tests/nwfilterxml2xmltest.c index 49c6b9926d..58e21793f1 100644 --- a/tests/nwfilterxml2xmltest.c +++ b/tests/nwfilterxml2xmltest.c @@ -148,6 +148,8 @@ mymain(void) DO_TEST("example-1", false); DO_TEST("example-2", false); + DO_TEST("chain_prefixtest1", true); /* derived from arp-test */ + return (ret==0 ? EXIT_SUCCESS : EXIT_FAILURE); }