Skip to content

Commit

Permalink
update test set and script
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Oct 1, 2020
1 parent 5b67358 commit 8217d7f
Show file tree
Hide file tree
Showing 46 changed files with 185 additions and 190 deletions.
Binary file modified tests/annots-and-comments.preview.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 modified tests/articulation.preview.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 modified tests/beamdirection.preview.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 modified tests/beams.preview.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 modified tests/brackets.preview.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 modified tests/breaksec.preview.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 modified tests/cascading-colors.preview.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 modified tests/clefs.preview.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 modified tests/color.preview.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 modified tests/dots.preview.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 modified tests/dynamic-extender.preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/dynamics.mei
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
<note xml:id="note05" dur="4" oct="4" pname="g"/>
</layer>
</staff>
<dynam startid="#note01">cresc.</dynam>
<dynam startid="#note01" extender="false">cresc.</dynam>
<dynam startid="#note02" place="above">ff</dynam>
<dynam startid="#note03" place="below">sfz</dynam>
<dynam startid="#note04" place="above">dim.</dynam>
<dynam startid="#note04" extender="false" place="above">dim.</dynam>
<dynam startid="#note05" place="below">piano</dynam>
</measure>
<measure n="2">
Expand Down
Binary file modified tests/dynamics.preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion tests/dynamics.preview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/easter_egg.preview.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 modified tests/enforced-layout.preview.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 modified tests/fontsize.preview.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 modified tests/ftrem.preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/general-functions.mei
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
place="above" staff="1" tstamp="3" startid="#testnote2" endid="#testnote3"/>
<gliss xml:id="dashed-glissando" color="green" lform="dashed" lwidth="medium"
staff="1" tstamp="3" startid="#testnote2" endid="#testnote3"/>
<phrase xml:id="whole-phrase" color="gray" bezier="19 45 -32 118" startvo="2" endvo="-6"
<phrase xml:id="whole-phrase" color="gray" bezier="-10 10 5 -5" startvo="2" endvo="-6"
curvedir="above" lform="solid" lwidth="medium" staff="1" tstamp="1"
startid="#testnote1" endid="#testnote7"/>
</measure>
Expand Down
Binary file modified tests/general-functions.preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
256 changes: 128 additions & 128 deletions tests/general-functions.preview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/gracenotes.preview.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 modified tests/harppedal.preview.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 modified tests/labels.preview.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 modified tests/merging-rests.preview.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 modified tests/mixed-keys.preview.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 modified tests/multirest-and-reh.preview.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 modified tests/namespace-prefixes.preview.png
Binary file modified tests/noteheads.preview.png
Binary file modified tests/ornamentaccid.preview.png
Binary file modified tests/ottavas.preview.png
Binary file modified tests/partial-measures.preview.png
14 changes: 8 additions & 6 deletions tests/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
#-- MEILER --#
#-- simple testing script --#
#-- v0.2.8 --#
#-- v0.3.0 --#
#-- --#
#-- programmed by --#
#-- Klaus Rettinghaus --#
#-- --#
rm tests.log
rm README.md
echo running tests
echo "# MEILER TESTS" >> README.md
echo "# MEILER TESTS" > README.md
echo "This is an autogenerated overview of the testfiles." >> README.md

lilyversion="$(lilypond -v)"
resolution=150

find . -type f -name "*.mei"|while read file;
do
fname=$(basename "$file")
saxon -s:$file -o:${file%.mei}.ly -xsl:../mei2ly.xsl LilyPondVersion="2.20.0" && lilypond -dno-print-pages -dpreview --formats=png --loglevel=BASIC_PROGRESS ${file%.mei}.ly >> tests.log 2>&1
saxon -s:$file -o:${fname%.mei}.ly -xsl:../mei2ly.xsl LilyPondVersion="2.20.0" && lilypond -dno-print-pages -dpreview --formats=png -dresolution=$resolution --loglevel=BASIC_PROGRESS ${fname%.mei}.ly >> tests.log 2>&1
#-- next line for SVG output
saxon -s:$file -o:${file%.mei}.ly -xsl:../mei2ly.xsl useSvgBackend=true forceLayout=true && lilypond -dno-print-pages -dno-point-and-click -dbackend=svg -dpreview --loglevel=BASIC_PROGRESS ${file%.mei}.ly >> tests.log 2>&1
rm ${file%.mei}.ly
saxon -s:$file -o:${fname%.mei}.ly -xsl:../mei2ly.xsl useSvgBackend=true forceLayout=true && lilypond -dno-print-pages -dno-point-and-click -dbackend=svg -dpreview --loglevel=BASIC_PROGRESS ${fname%.mei}.ly >> tests.log 2>&1
rm ${fname%.mei}.ly

#-- add output to README.md
echo "### [$fname]($fname)" >> README.md
Expand Down
Binary file modified tests/slurs.preview.png
Binary file modified tests/spanners-across-measures.preview.png
98 changes: 46 additions & 52 deletions tests/spanners-across-measures.preview.svg

Large diffs are not rendered by default.

Binary file modified tests/stemdir.preview.png
Binary file modified tests/stems.preview.png
Binary file modified tests/tempo-changes.preview.png
Binary file modified tests/tempo-mm-without-mm-unit.preview.png
Binary file modified tests/tiedchords.preview.png
Binary file modified tests/trills.preview.png
Binary file modified tests/tuplet-tremolos.preview.png
Binary file modified tests/tuplets.preview.png
Binary file modified tests/unmetered-and-glyphs.preview.png
Binary file modified tests/voices.preview.png

0 comments on commit 8217d7f

Please sign in to comment.