add visual tests 'vtest'

This commit is contained in:
ws 2013-09-17 14:25:20 +02:00
parent 2862147d3e
commit af28612150
5 changed files with 49 additions and 0 deletions

7
vtest/README Normal file
View file

@ -0,0 +1,7 @@
MuseScore visual tests
The shell script "gen" creates a subdirectory with the
html file "vtest.html" for visual compare including all needed
image files.

35
vtest/gen Executable file
View file

@ -0,0 +1,35 @@
#!/bin/sh
SRC="mmrest-1"
MSCORE=../build.debug/mscore/mscore
DPI=130
F=vtest.html
rm -rf html
mkdir html
cd html
for src in $SRC; do
echo process ../$src
cp ../$src-ref.png .
../$MSCORE ../$src.mscz -r $DPI -o $src.png
done
rm -f $F
echo "<html>" >> $F
echo " <body>" >> $F
for src in $SRC; do
echo " <h2>$src</h2></br>" >> $F
echo " <img src=\"$src-1.png\">" >> $F
echo " <img src=\"$src-ref.png\">" >> $F
done
echo " </body>" >> $F
echo "</html>" >> $F
konqueror $F

BIN
vtest/mmrest-1-ref.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
vtest/mmrest-1.mscz Normal file

Binary file not shown.

7
vtest/vtest.html Normal file
View file

@ -0,0 +1,7 @@
<html>
<body>
<h2>mmrest-1</h2></br>
<img src="mmrest-1-1.png">
<img src="mmrest-1-ref.png">
</body>
</html>