diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-09-02 09:21:05 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-09-02 09:21:05 +0100 |
commit | fe31edd04e7789b8e6050729809d6b76fc42dd3d (patch) | |
tree | d5d7df486fc8f37de58def5d9f6548ab900a5399 /test/runtest.sh | |
parent | a32dcf6d6f66935a8b82ea1f8f04e783fcf51fd6 (diff) | |
download | libsvgtiny-fe31edd04e7789b8e6050729809d6b76fc42dd3d.tar.gz libsvgtiny-fe31edd04e7789b8e6050729809d6b76fc42dd3d.tar.bz2 |
enable decode tests for svg files
These svg files have caused the library to crash and to render poorly.
Diffstat (limited to 'test/runtest.sh')
-rwxr-xr-x | test/runtest.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/runtest.sh b/test/runtest.sh new file mode 100755 index 0000000..f1c33ea --- /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 + |