From 29ab7fba827d49afc3bad6f1fbf927ba18ea6775 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Wed, 3 Dec 2008 01:54:28 +0100 Subject: [PATCH] MusicXML: Turn regtest page into homepage for test suite Also add rule to pack the .xml and .mxl files as a .zip file for download. --- .../regression/musicxml/0-Introduction.itexi | 58 +++++++++++++++---- input/regression/musicxml/GNUmakefile | 13 ++++- 2 files changed, 58 insertions(+), 13 deletions(-) diff --git a/input/regression/musicxml/0-Introduction.itexi b/input/regression/musicxml/0-Introduction.itexi index f8567aa077..f0045e83d8 100644 --- a/input/regression/musicxml/0-Introduction.itexi +++ b/input/regression/musicxml/0-Introduction.itexi @@ -1,20 +1,53 @@ -@unnumberedsec Introduction +@menu +* Introduction :: +* Test cases :: +@end menu -This document presents proofs for the musicxml2ly script provided with -LilyPond @lilypondversion. The files don't have a description yet, so -there is no official indication when the output is wrong. -These snippets are provided as unit test files in MusicXML, converted to -a .ly file by musicxml2ly and then processed by lilypond as usual. +@node Introduction +@chapter Introduction -If something does not seem wright in the output, it might either be that this -feature has not been implemented yet, has been wrongly implemented, or a regression -has crept in recently... -This document is intended for finding bugs and for documenting bugfixes. +@heading Why a MusicXML test suite? + +This test suite of sample @uref{http://www.musicxml.org/,MusicXML} files +is supposed to fill a severe gap for all developers implementing MusicXML +support in their application: There is no complete test suite of MusicXML +files available for testing purposes. + +@heading Downloading the test suite + +The complete set of MusicXML test files contained in this suite can be downloaded +@uref{MusicXML-TestSuite-0.1.zip,here} as a ZIP archive. + +@heading Connection with @uref{http://www.lilypond.org/,LilyPond} + +At the same time as providing a generic test suite for MusicXML document, +this test suite also serves as proofs for the musicxml2ly script provided with +LilyPond @lilypondversion. The images shown in the @ref{Test cases} chapter +were generated by running @command{musicxml2ly} and @command{lilypond} on +the MusicXML files. As @command{musicxml2ly} does not yet perfectly support +every single aspect of MusicXML, the output is not supposed to be used as +a definitive reference rendering, but rather as an indication how one +particular application supports and interprets each of the test files. + +If something does not seem right in the output, it might either be that this +feature has not been implemented yet, has been wrongly implemented, or a +regression has crept in recently... In the web version of this document, you can click on the file name or figure for each example to see the corresponding .ly intermediary file. -TODO: Find a way to add a description to the .ly files for texinfo. +@heading Structure of this test suite + +Each test file (typically hand-crafted from the MusicXML "specification") +checks one particular aspect of MusicXML. A short description of the +particular feature for a file is given element inside the file in a comment +element of the form: +@example + + .... + +@end example + The files are categorized by their first two digits with the following meaning: @itemize @@ -38,3 +71,6 @@ The files are categorized by their first two digits with the following meaning: @item 20 ... Compressed MusicXML files @item 99 ... Compatibility modes with broken MusicXML exporters (i.e. ignore beams for Sibelius 5) @end itemize + +@node Test cases +@chapter Test cases diff --git a/input/regression/musicxml/GNUmakefile b/input/regression/musicxml/GNUmakefile index 4890e0b6b3..0373860e6c 100644 --- a/input/regression/musicxml/GNUmakefile +++ b/input/regression/musicxml/GNUmakefile @@ -3,7 +3,6 @@ depth = ../../.. STEPMAKE_TEMPLATES=documentation texinfo tex LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc musicxml -TITLE=Lilypond musicxml2ly Regression Tests # Urgh, how can I do two replacements at once without messing up the order of the list? @@ -13,4 +12,14 @@ COLLATED_FILES = ${TMP1:%.mxl=$(outdir)/%.ly} include $(depth)/make/stepmake.make -TITLE=Lilypond musicxml2ly Regression Tests + + +TITLE=Unofficial MusicXML test suite +TEST_SUITE_VERSION=0.1 + +local-WWW-2: zip + +zip: $(outdir)/MusicXML-TestSuite-$(TEST_SUITE_VERSION).zip + +$(outdir)/MusicXML-TestSuite-$(TEST_SUITE_VERSION).zip: $(MUSICXML_FILES) $(MUSICMXL_FILES) + $(ZIP) -r $@ $(MUSICXML_FILES) $(MUSICMXL_FILES) -- 2.39.5