diff options
Diffstat (limited to '')
-rwxr-xr-x | bin/gen-test-xml-outputs.sh | 19 |
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 + |