Add pretty_xml utils
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 26 May 2021 21:17:02 +0000 (17:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 30 Jun 2021 19:09:30 +0000 (15:09 -0400)
commitbb901ead0aea0fecad53e661ed79067faa4149c8
treed728aacccc914bfe66dc6644b5210e23caf539fc
parent208e4eea6509113477abee7e161ca63916bd6d73
Add pretty_xml utils

This util reads on stdin and outputs an indented/formatted xml.
It is equivalent to "xmllint --format -".

It will be used for MI trigger testing. For testing we will essentially
diff the output of the command against the expected output. While a
nicely formatted multi-line output is not necessary for a machine to
do the diff, the human that will have to debug it will surely appreciate
it.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ie1597644941c55ce3e59f7ff16f196ac36325179
.gitignore
tests/utils/xml-utils/Makefile.am
tests/utils/xml-utils/pretty_xml.c [new file with mode: 0644]
This page took 0.025532 seconds and 4 git commands to generate.