From f095424600c311f2f08da552d20fb2e2d7ff5045 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 30 Sep 2010 16:09:04 -0400 Subject: [PATCH] nwfilter: Add a test case for testing the comment attribute This patch adds a test case for testing the XML parser's and instantiator's support of the comment attribute. --- tests/nwfilterxml2xmlin/comment-test.xml | 71 +++++++++++++++++++++++ tests/nwfilterxml2xmlout/comment-test.xml | 30 ++++++++++ tests/nwfilterxml2xmltest.c | 2 + 3 files changed, 103 insertions(+) create mode 100644 tests/nwfilterxml2xmlin/comment-test.xml create mode 100644 tests/nwfilterxml2xmlout/comment-test.xml diff --git a/tests/nwfilterxml2xmlin/comment-test.xml b/tests/nwfilterxml2xmlin/comment-test.xml new file mode 100644 index 0000000000..69ba783ce1 --- /dev/null +++ b/tests/nwfilterxml2xmlin/comment-test.xml @@ -0,0 +1,71 @@ + + 01a992d2-f8c8-7c27-f69b-ab0a9d377379 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/nwfilterxml2xmlout/comment-test.xml b/tests/nwfilterxml2xmlout/comment-test.xml new file mode 100644 index 0000000000..1d95af1c27 --- /dev/null +++ b/tests/nwfilterxml2xmlout/comment-test.xml @@ -0,0 +1,30 @@ + + 01a992d2-f8c8-7c27-f69b-ab0a9d377379 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/nwfilterxml2xmltest.c b/tests/nwfilterxml2xmltest.c index e681b919ef..e001e99fe0 100644 --- a/tests/nwfilterxml2xmltest.c +++ b/tests/nwfilterxml2xmltest.c @@ -124,6 +124,8 @@ mymain(int argc, char **argv) DO_TEST("hex-data-test"); + DO_TEST("comment-test"); + return (ret==0 ? EXIT_SUCCESS : EXIT_FAILURE); }