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, 7 Jul 2021 21:31:33 +0000 (17:31 -0400)
commit233d4258a2eaa4482b68d793853035dbe4fe33e2
tree993b356228451402b1fe4222cb3932da8a7a8235
parentd11e3c3eeec8ba7db67f3b96c09fca4b7cabc9ad
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.025861 seconds and 5 git commands to generate.