Skip to content

Commit

Permalink
updates sh to autogenerate a README with previews
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Oct 24, 2016
1 parent a0d810c commit 50f3f08
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 2 deletions.
19 changes: 19 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# MEILER TESTS
This is an autogenerated overview of the testfiles.
### multirest-and-reh.mei
![multirest-and-reh.mei](multirest-and-reh.preview.png)
This is an autogenerated overview of the testfiles.
### namespace-prefixes.mei
![namespace-prefixes.mei](namespace-prefixes.preview.png)
This is an autogenerated overview of the testfiles.
### color.mei
![color.mei](color.preview.png)
This is an autogenerated overview of the testfiles.
### general-functions.mei
![general-functions.mei](general-functions.preview.png)
This is an autogenerated overview of the testfiles.
### tempo-mm-without-mm-count.mei
![tempo-mm-without-mm-count.mei](tempo-mm-without-mm-count.preview.png)
This is an autogenerated overview of the testfiles.
### annots-and-comments.mei
![annots-and-comments.mei](annots-and-comments.preview.png)
Binary file added 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 added 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 added 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.
Binary file added 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 added tests/namespace-prefixes.preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@
#-- Klaus Rettinghaus --#
#-- --#
rm tests.log
rm README.md
echo running tests
echo "# MEILER TESTS" >> README.md
find . -type f -name "*.mei"|while read file;
do
saxonb-xslt -s:$file -xsl:../mei2ly.xsl -o:${file%.mei}.ly && lilypond --formats=pdf --loglevel=BASIC_PROGRESS --output=${file%.mei} ${file%.mei}.ly >> tests.log 2>&1
rm ${file%.mei}.ly
fname=$(basename "$file")
saxonb-xslt -s:$file -xsl:../mei2ly.xsl -o:${file%.mei}.ly && lilypond -dno-print-pages -dpreview --formats=png --loglevel=BASIC_PROGRESS ${file%.mei}.ly >> tests.log 2>&1
#-- rm ${file%.mei}.ly

#-- add output to README.md
echo "This is an autogenerated overview of the testfiles." >> README.md
echo "### $fname" >> README.md
echo "![$fname](${fname%.mei}.preview.png)" >> README.md
done
echo done
echo see tests.log for details
Binary file added tests/tempo-mm-without-mm-count.preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 50f3f08

Please sign in to comment.