summaryrefslogtreecommitdiffstats
path: root/testfiles
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-07-29 19:44:10 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-07-29 19:44:10 +0000
commitefaca78af08ff41d15eb09a0d0c0c5a9b84f28af (patch)
treed38705506030ed42c6cf63790c2a1e3aee94d3b0 /testfiles
parentRemove IM after adding it to dockerfile (diff)
downloadinkscape-efaca78af08ff41d15eb09a0d0c0c5a9b84f28af.tar.gz
inkscape-efaca78af08ff41d15eb09a0d0c0c5a9b84f28af.zip
*Actually* run tests out of source
Diffstat (limited to 'testfiles')
-rwxr-xr-xtestfiles/rendering_tests/test.sh21
1 files changed, 11 insertions, 10 deletions
diff --git a/testfiles/rendering_tests/test.sh b/testfiles/rendering_tests/test.sh
index 8184a894a..a9738e69a 100755
--- a/testfiles/rendering_tests/test.sh
+++ b/testfiles/rendering_tests/test.sh
@@ -11,27 +11,28 @@ INKSCAPE_EXE=$1
exit_status=0
test=$2
EXPECTED=$(dirname $test)"/expected_rendering/"$(basename $test)
+testname=$(basename $test)
- ${INKSCAPE_EXE} -z ${test}.svg -d 96 -e ${test}.png #2>/dev/null >/dev/null
- compare -metric AE ${test}.png ${EXPECTED}.png ${test}-compare.png 2> .tmp
+ ${INKSCAPE_EXE} -z ${test}.svg -d 96 -e ${testname}.png #2>/dev/null >/dev/null
+ compare -metric AE ${testname}.png ${EXPECTED}.png ${testname}-compare.png 2> .tmp
test1=`cat .tmp`
echo $test1
if [ $test1 == 0 ]; then
- echo ${test} "PASSED"
- rm ${test}.png ${test}-compare.png
+ echo ${testname} "PASSED"
+ rm ${testname}.png ${testname}-compare.png
else
- echo ${test} "FAILED"
+ echo ${testname} "FAILED"
exit_status=1
fi
- ${INKSCAPE_EXE} -z ${test}.svg -d 384 -e ${test}-large.png #2>/dev/null >/dev/null
- compare -metric AE ${test}-large.png ${EXPECTED}-large.png ${test}-compare-large.png 2>.tmp
+ ${INKSCAPE_EXE} -z ${test}.svg -d 384 -e ${testname}-large.png #2>/dev/null >/dev/null
+ compare -metric AE ${testname}-large.png ${EXPECTED}-large.png ${testname}-compare-large.png 2>.tmp
test2=`cat .tmp`
if [ $test2 == 0 ]; then
- echo ${test}-large "PASSED"
- rm ${test}-large.png ${test}-compare-large.png
+ echo ${testname}-large "PASSED"
+ rm ${testname}-large.png ${testname}-compare-large.png
else
- echo ${test}-large "FAILED"
+ echo ${testname}-large "FAILED"
exit_status=1
fi