summaryrefslogtreecommitdiffstats
path: root/bin/gen-test-xml-outputs.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
commitc484829272cd13a738e35412498e12f2c9a194ac (patch)
treea1f5ec09629ee895bd3963fa8820b45f2f4c574b /bin/gen-test-xml-outputs.sh
parentInitial commit. (diff)
downloadliborcus-upstream.tar.xz
liborcus-upstream.zip
Adding upstream version 0.19.2.upstream/0.19.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xbin/gen-test-xml-outputs.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/gen-test-xml-outputs.sh b/bin/gen-test-xml-outputs.sh
new file mode 100755
index 0000000..137b20c
--- /dev/null
+++ b/bin/gen-test-xml-outputs.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+PROGDIR=`dirname $0`
+TESTDIR="$PROGDIR/../test/xml"
+ORCUS_XML_EXEC="$PROGDIR/../src/orcus-xml"
+
+for _DIR in $(ls $TESTDIR); do
+ _DIR="$TESTDIR/$_DIR"
+ _INPUT="$_DIR/input.xml"
+ _OUTPUT="$_DIR/check.txt"
+
+ if [ ! -f "$_INPUT" ]; then
+ continue
+ fi
+
+ echo "processing $_DIR..."
+ $ORCUS_XML_EXEC --mode dump -o "$_OUTPUT" "$_INPUT"
+done
+