Skip to content

Commit

Permalink
add visual tests 'vtest'
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Sep 17, 2013
1 parent 2862147 commit af28612
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vtest/README
Original file line number Diff line number Diff line change
@@ -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 changes: 35 additions & 0 deletions vtest/gen
Original file line number Diff line number Diff line change
@@ -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

Binary file added vtest/mmrest-1-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vtest/mmrest-1.mscz
Binary file not shown.
7 changes: 7 additions & 0 deletions vtest/vtest.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit af28612

Please sign in to comment.