summaryrefslogtreecommitdiff
path: root/test/runtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/runtest.sh')
-rwxr-xr-xtest/runtest.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/runtest.sh b/test/runtest.sh
new file mode 100755
index 0000000..f1c33ea
--- a/dev/null
+++ b/test/runtest.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+TEST_PATH=$1
+TEST_OUT=${TEST_PATH}/svg
+
+mkdir -p ${TEST_OUT}
+
+svgdecode()
+{
+ OUTF=$(basename ${1} .svg)
+ ${TEST_PATH}/test_decode_svg ${1} > ${TEST_OUT}/${OUTF}.svg
+}
+
+
+for SVG in $(ls test/data/*.svg);do
+ svgdecode ${SVG}
+done
+