From 9b8ea15ac6b2e129c6dd625c28a504ca874c408f Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sun, 17 Jan 2010 19:02:48 +0000 Subject: [PATCH] Web build: add links for regtests. --- Documentation/web/community.itexi | 31 +++++++++++++++++++------- scripts/build/create-weblinks-itexi.py | 31 +++++++++++++++++--------- 2 files changed, 44 insertions(+), 18 deletions(-) diff --git a/Documentation/web/community.itexi b/Documentation/web/community.itexi index 95b3de1de2..bfc389fa47 100644 --- a/Documentation/web/community.itexi +++ b/Documentation/web/community.itexi @@ -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. diff --git a/scripts/build/create-weblinks-itexi.py b/scripts/build/create-weblinks-itexi.py index f8e1903923..ec711c729d 100644 --- a/scripts/build/create-weblinks-itexi.py +++ b/scripts/build/create-weblinks-itexi.py @@ -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) -- 2.39.5