aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2023-11-23 22:34:41 +0200
committerGitHub <noreply@github.com>2023-11-23 12:34:41 -0800
commit732efe4261f0bb2c095dabbcaac4a5f73fe8ec3c (patch)
treee2d4eeea152f9ff6911e4420d2a29e16d977b487 /test
parent317fe75906e85bfcf9ca481b4804a79c25ab3b9c (diff)
Add support for `xmllint` (#251)
<!-- To expedite the pull request process, please see the contributor guide for my projects: <https://github.com/raxod502/contributor-guide> --> Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
Diffstat (limited to 'test')
-rw-r--r--test/formatters/installers/xmllint.bash1
-rw-r--r--test/formatters/samplecode/xmllint/in.xml1
-rw-r--r--test/formatters/samplecode/xmllint/out.xml2
3 files changed, 4 insertions, 0 deletions
diff --git a/test/formatters/installers/xmllint.bash b/test/formatters/installers/xmllint.bash
new file mode 100644
index 0000000..4544446
--- /dev/null
+++ b/test/formatters/installers/xmllint.bash
@@ -0,0 +1 @@
+apt-get install -y libxml2-utils
diff --git a/test/formatters/samplecode/xmllint/in.xml b/test/formatters/samplecode/xmllint/in.xml
new file mode 100644
index 0000000..81ad3c9
--- /dev/null
+++ b/test/formatters/samplecode/xmllint/in.xml
@@ -0,0 +1 @@
+<hello who='world' />
diff --git a/test/formatters/samplecode/xmllint/out.xml b/test/formatters/samplecode/xmllint/out.xml
new file mode 100644
index 0000000..0d9b1aa
--- /dev/null
+++ b/test/formatters/samplecode/xmllint/out.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<hello who="world"/>