From: Stefan Berger Date: Fri, 18 Nov 2011 16:58:18 +0000 (-0500) Subject: Add test cases X-Git-Tag: v0.9.8-rc1~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f086b8164a0fe762c9c300c212a4c1b0386b5064;p=thirdparty%2Flibvirt.git Add test cases Add test case for the chain names with known prefixes and the chain priority. Signed-off-by: Stefan Berger --- 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); }