From d02ef4b84c11aa22f6a571102e26b046ca88b5a8 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Fri, 18 Nov 2011 11:58:18 -0500 Subject: [PATCH] Add test cases for parsing of list values This patch adds test cases for parsing of parameters with multiple occurrances of the same name. Signed-off-by: Stefan Berger --- tests/nwfilterxml2xmlin/attr-value-test.xml | 27 ++++++++++++++++++++ tests/nwfilterxml2xmlout/attr-value-test.xml | 22 ++++++++++++++++ tests/nwfilterxml2xmltest.c | 2 ++ 3 files changed, 51 insertions(+) create mode 100644 tests/nwfilterxml2xmlin/attr-value-test.xml create mode 100644 tests/nwfilterxml2xmlout/attr-value-test.xml diff --git a/tests/nwfilterxml2xmlin/attr-value-test.xml b/tests/nwfilterxml2xmlin/attr-value-test.xml new file mode 100644 index 0000000000..fdbd41185a --- /dev/null +++ b/tests/nwfilterxml2xmlin/attr-value-test.xml @@ -0,0 +1,27 @@ + + 83011800-f663-96d6-8841-fd836b4318c6 + + + + + + + + + + + + + + + + + + + + diff --git a/tests/nwfilterxml2xmlout/attr-value-test.xml b/tests/nwfilterxml2xmlout/attr-value-test.xml new file mode 100644 index 0000000000..8479ede639 --- /dev/null +++ b/tests/nwfilterxml2xmlout/attr-value-test.xml @@ -0,0 +1,22 @@ + + 83011800-f663-96d6-8841-fd836b4318c6 + + + + + + + + + + + + + + + + + + + + diff --git a/tests/nwfilterxml2xmltest.c b/tests/nwfilterxml2xmltest.c index 58e21793f1..645c246b51 100644 --- a/tests/nwfilterxml2xmltest.c +++ b/tests/nwfilterxml2xmltest.c @@ -150,6 +150,8 @@ mymain(void) DO_TEST("chain_prefixtest1", true); /* derived from arp-test */ + DO_TEST("attr-value-test", false); + return (ret==0 ? EXIT_SUCCESS : EXIT_FAILURE); }