Add a way to test different markup parser flags
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 Mar 2014 00:02:23 +0000 (19:02 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 Mar 2014 00:03:15 +0000 (19:03 -0500)
commitb93a13bb796eeb30a45bcdca9a760a9ef4c47a2e
tree1932a5e04b2d5954cce7e792fe7993bae529ed43
parent49cc207e35ef6b6ce7f4954a4c067ab43145f6bf
Add a way to test different markup parser flags

For now, we are mainly interested in G_MARKUP_TREAT_CDATA_AS_TEXT.
This commit makes markup-parse look for expected output files with
the extension .cdata-as-text in addition to .expected, and compares
the output of parsing with G_MARKUP_TREAT_CDATA_AS_TEXT against
them. markup-parse --cdata-as-text foo.gmarkup can be used to produce
such expected output.
glib/tests/markup-parse.c