]> git.donarmstrong.com Git - lilypond.git/commitdiff
Web build: add links for regtests.
authorGraham Percival <graham@percival-music.ca>
Sun, 17 Jan 2010 19:02:48 +0000 (19:02 +0000)
committerGraham Percival <graham@percival-music.ca>
Sun, 17 Jan 2010 19:02:48 +0000 (19:02 +0000)
Documentation/web/community.itexi
scripts/build/create-weblinks-itexi.py

index 95b3de1de28d956006285278f00fb16a30673600..bfc389fa47910e712cac0bc9c4f3553ae9e82311 100644 (file)
@@ -618,20 +618,35 @@ stable, we have written a manual for development tasks.
 @divEnd
 
 
-@divClass{column-right-top}
+@divClass{column-center-top}
 @subheading Regression tests
 
 @divClass{keep-bullets}
 @itemize
 
-@item @uref{../../input/regression/collated-files.html, Regression tests}:
-This release's tests.  (also in
-@uref{../input/regression/collated-files.pdf, pdf})
+@ifclear web_version
+
+@item
+@uref{../../input/regression/collated-files.html, Regression tests}:
+This releases' regtests.
+(@uref{../../input/regression/collated-files.pdf, pdf version})
+
+@item
+@uref{../../input/regression/musicxml/collated-files.html, MusicXML tests}:
+This releases' musicXML tests.
+(@uref{../../input/regression/musicxml/collated-files.pdf, pdf version})
+@end ifclear
+
+@ifset web_version
+@item @regtestDevel (@regtestDevelPdf{})
+
+@item @regtestDevelXml (@regtestDevelXmlPdf{})
+
+@item @regtestStable (@regtestStablePdf{})
+
+@item @regtestStableXml (@regtestStableXmlPdf{})
+@end ifset
 
-@item @uref{../../input/regression/musicxml/collated-files.html,
-MusicXML Regression tests}:
-This release's MusicXML tests.  (also in
-@uref{../input/regression/musicxml/collated-files.pdf, pdf})
 
 @item @uref{http://lilypond.org/test, Archive of regression tests}:
 Comparisons between versions.
index f8e1903923d81e2132042bd2e7470bfbb6923235..ec711c729daedb151cb601089e653820f3068dff 100644 (file)
@@ -107,7 +107,7 @@ def make_all_downloads(macroName, version):
     make_download("download"+macroName+"Windows", "mingw/",
         "mingw.exe", version, "1", "Windows")
 
-def make_ver_link(macroname, version, url, linktext):
+def make_ver_link(macroname, url, linktext):
     string = "@uref{"
     string += url
     string += ","
@@ -159,28 +159,25 @@ def make_manual_links(name, version):
         if (url == ''):
             # can't have a comma here due to texinfo
             make_ver_link("manual"+name+mshort+'Pdf',
-                version, "http://lilypond.org",
+                "http://lilypond.org",
                 mshort+" (did not exist in 2.12)")
             make_ver_link("manual"+name+mshort+'Split',
-                version, "http://lilypond.org",
+                "http://lilypond.org",
                 mshort+" (did not exist in 2.12)")
             make_ver_link("manual"+name+mshort+'Big',
-                version, "http://lilypond.org",
+                "http://lilypond.org",
                 mshort+" (did not exist in 2.12)")
             make_ver_link("manual"+name+mshort+'SplitNoName',
-                version, "http://lilypond.org",
+                "http://lilypond.org",
                 mshort+" (did not exist in 2.12)")
             continue
         make_ver_link("manual"+name+mshort+'Pdf',
-                  version,
                   url + '.pdf',
                   manual.capitalize() + '.pdf')
         make_ver_link("manual"+name+mshort+'Split',
-                  version,
                   url + '/index.html',
                   manual.capitalize() + ' (split HTML)')
         make_ver_link("manual"+name+mshort+'Big',
-                  version,
                   url + '-big-page.html',
                   manual.capitalize() + ' (big HTML)')
        # this is stupid and I shouldn't have bothered trying
@@ -192,10 +189,22 @@ def make_manual_links(name, version):
         else:
             newurl = url + '/index.html'
         make_ver_link("manual"+name+mshort+'SplitNoName',
-                  version,
                   newurl,
                   manual.capitalize())
 
+def make_regtest_links(name, version):
+    ver_split = version.split('.')
+    ver_minor = ver_split[0] + '.' + ver_split[1]
+    url = depth + "doc/v" + ver_minor + "/input/regression/"
+
+    make_ver_link("regtest"+name, url+"collated-files.html",
+        "Regression tests for "+version)
+    make_ver_link("regtest"+name+"Pdf", url+"collated-files.pdf",
+        "pdf of "+version+" regtests")
+    make_ver_link("regtest"+name+"Xml", url+"musicxml/collated-files.html",
+        "MusicXML Regression tests for "+version)
+    make_ver_link("regtest"+name+"XmlPdf", url+"musicxml/collated-files.html",
+        "pdf of "+version+" musicxml regtests")
 
 print "@c ************************ Download binaries ************"
 make_all_downloads("Stable", VERSION_STABLE)
@@ -210,5 +219,7 @@ print "@c ************************ Manual links ************"
 make_manual_links("Stable", VERSION_STABLE)
 make_manual_links("Devel", VERSION_DEVEL)
 
-
+print "@c ************************ Regtest links ************"
+make_regtest_links("Stable", VERSION_STABLE)
+make_regtest_links("Devel", VERSION_DEVEL)