diff --git a/Makefile b/Makefile index 56991b1c3..620f15ceb 100644 --- a/Makefile +++ b/Makefile @@ -110,6 +110,12 @@ CHECKOUTPUT= \ @echo " Diffing .plain.text against regular .text" @doc=$(basename $@); diff -u -I '$(datetime_regex)' -I '$(version_regex)' -I '$(libversion_regex)' -I '$(date_regex)' $$doc.plain.text $$doc.text || { echo 'Diff failed for $$doc.plain.text output'; exit 1; } +# keep this ahead of the tests/out/%.html rule so it takes precedence for pre-3.82 GNU make, which used +# the first matching rule instead of the shortest stem +tests/out/%.canonical.html: tests/input/%.canonical.xml install + @echo " Checking generation of .html from canonical prepped .xml" + @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --out $(basename $@).html --html --external-css --external-js --legacy-date-format --no-inline-version $<" 2> /dev/null || { err=$$?; echo "Error output when generating .html from canonical prepped .xml"; exit $$err; } + tests/out/%.txt tests/out/%.raw.txt tests/out/%.nroff tests/out/%.html tests/out/%.txt : tests/input/%.xml install @echo -e "\n Processing $<" @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --base tests/out/ --raw --legacy --text --nroff --html --strict $<" @@ -131,11 +137,6 @@ tests/out/%.prepped.xml: tests/input/%.xml tests/out/%.v3.$(py).html tests/out/% @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --out $(basename $@).text --text --no-pagination --external-css --external-js --legacy-date-format $@" 2> /dev/null || { err=$$?; echo "Error output when generating .text from prepped .xml"; exit $$err; } @diff -u -I '$(datetime_regex)' -I '$(version_regex)' -I '$(date_regex)' -I '$(generator_regex)' -I 'rel="alternate"' tests/out/$(notdir $(basename $(basename $@))).text $(basename $@).text || { echo "Diff failed for $(basename $@).text output (3)"; exit 1; } -tests/out/%.canonical.html: tests/input/%.canonicalxml install - @echo " Checking generation of .html from canonical prepped .xml" - @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --out $(basename $@).$(py).html --html --external-css --external-js --legacy-date-format --no-inline-version $<" 2> /dev/null || { err=$$?; echo "Error output when generating .html from canonical prepped .xml"; exit $$err; } - @diff -u -I '$(datetime_regex)' -I '$(version_regex)' -I '$(date_regex)' -I '$(generator_regex)' -I 'rel="alternate"' tests/valid/$(notdir $(basename $(basename $@))).html $(basename $@).$(py).html || { echo "Diff failed for $(basename $@).$(py).html output (2)"; exit 1; } - tests/out/docfile.xml: @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --doc --out $@" @@ -212,7 +213,7 @@ cachetest: cleantmp install @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache .cache tests/input/rfc6787.xml --no-network --base tmp/ --raw --legacy" -rfctest: cleantmp env/bin/python install $(rfctests) tests/out/rfc9001.canonical.html +rfctest: cleantmp env/bin/python install $(rfctests) tests/out/rfc9001.canonical.html.test drafttest: cleantmp env/bin/python install $(drafttests) dateshifttest diff --git a/tests/input/rfc9001.canonicalxml b/tests/input/rfc9001.canonical.xml similarity index 100% rename from tests/input/rfc9001.canonicalxml rename to tests/input/rfc9001.canonical.xml diff --git a/tests/valid/docfile.py36.html b/tests/valid/docfile.py36.html index 00759fce1..34410793b 100644 --- a/tests/valid/docfile.py36.html +++ b/tests/valid/docfile.py36.html @@ -4,15 +4,15 @@ -Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.9.1 +Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.10.0rc1 - - + + @@ -45,7 +45,7 @@ -

Xml2rfc Vocabulary Version 3 Schema
xml2rfc release 3.9.1

+

Xml2rfc Vocabulary Version 3 Schema
xml2rfc release 3.10.0rc1

Abstract

@@ -367,7 +367,7 @@

The latest version of this documentation is available in HTML form at https://xml2rfc.ietf.org/xml2rfc-doc.

- This documentation applies to xml2rfc version 3.9.1.

+ This documentation applies to xml2rfc version 3.10.0rc1.

@@ -6333,7 +6333,7 @@

The following variables are available for use in an xml2rfc - manpage Jinja2 template, as of xml2rfc version 3.9.1:

+ manpage Jinja2 template, as of xml2rfc version 3.10.0rc1:

{{ bare_latin_tags }}:
diff --git a/tests/valid/docfile.py37.html b/tests/valid/docfile.py37.html index 00759fce1..34410793b 100644 --- a/tests/valid/docfile.py37.html +++ b/tests/valid/docfile.py37.html @@ -4,15 +4,15 @@ -Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.9.1 +Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.10.0rc1 - - + + @@ -45,7 +45,7 @@
-

Xml2rfc Vocabulary Version 3 Schema
xml2rfc release 3.9.1

+

Xml2rfc Vocabulary Version 3 Schema
xml2rfc release 3.10.0rc1

Abstract

@@ -367,7 +367,7 @@

The latest version of this documentation is available in HTML form at https://xml2rfc.ietf.org/xml2rfc-doc.

- This documentation applies to xml2rfc version 3.9.1.

+ This documentation applies to xml2rfc version 3.10.0rc1.

@@ -6333,7 +6333,7 @@

The following variables are available for use in an xml2rfc - manpage Jinja2 template, as of xml2rfc version 3.9.1:

+ manpage Jinja2 template, as of xml2rfc version 3.10.0rc1:

{{ bare_latin_tags }}:
diff --git a/tests/valid/docfile.py38.html b/tests/valid/docfile.py38.html index 00759fce1..34410793b 100644 --- a/tests/valid/docfile.py38.html +++ b/tests/valid/docfile.py38.html @@ -4,15 +4,15 @@ -Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.9.1 +Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.10.0rc1 - - + + @@ -45,7 +45,7 @@
-

Xml2rfc Vocabulary Version 3 Schema
xml2rfc release 3.9.1

+

Xml2rfc Vocabulary Version 3 Schema
xml2rfc release 3.10.0rc1

Abstract

@@ -367,7 +367,7 @@

The latest version of this documentation is available in HTML form at https://xml2rfc.ietf.org/xml2rfc-doc.

- This documentation applies to xml2rfc version 3.9.1.

+ This documentation applies to xml2rfc version 3.10.0rc1.

@@ -6333,7 +6333,7 @@

The following variables are available for use in an xml2rfc - manpage Jinja2 template, as of xml2rfc version 3.9.1:

+ manpage Jinja2 template, as of xml2rfc version 3.10.0rc1:

{{ bare_latin_tags }}:
diff --git a/tests/valid/indexes.pages.text b/tests/valid/indexes.pages.text index f3bdfd360..05adc2093 100644 --- a/tests/valid/indexes.pages.text +++ b/tests/valid/indexes.pages.text @@ -3,9 +3,9 @@ Network Working Group H. Person, Ed. -Internet-Draft August 12, 2021 +Internet-Draft August 31, 2021 Intended status: Experimental -Expires: February 13, 2022 +Expires: March 4, 2022 xml2rfc index tests @@ -26,7 +26,7 @@ Status of This Memo time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." - This Internet-Draft will expire on February 13, 2022. + This Internet-Draft will expire on March 4, 2022. Copyright Notice @@ -53,7 +53,7 @@ Table of Contents -Person Expires February 13, 2022 [Page 1] +Person Expires March 4, 2022 [Page 1] Internet-Draft xml2rfc index tests August 2021 @@ -109,7 +109,7 @@ Index -Person Expires February 13, 2022 [Page 2] +Person Expires March 4, 2022 [Page 2] Internet-Draft xml2rfc index tests August 2021 @@ -165,4 +165,4 @@ Author's Address -Person Expires February 13, 2022 [Page 3] +Person Expires March 4, 2022 [Page 3] diff --git a/tests/valid/indexes.prepped.xml b/tests/valid/indexes.prepped.xml index f5c8fa214..36837dbfe 100644 --- a/tests/valid/indexes.prepped.xml +++ b/tests/valid/indexes.prepped.xml @@ -1,6 +1,6 @@ - - + + @@ -20,7 +20,7 @@ - +
Status of This Memo @@ -41,7 +41,7 @@ material or to cite them other than as "work in progress." - This Internet-Draft will expire on 13 February 2022. + This Internet-Draft will expire on 4 March 2022.
diff --git a/tests/valid/indexes.text b/tests/valid/indexes.text index 65fc14846..fb2f0e541 100644 --- a/tests/valid/indexes.text +++ b/tests/valid/indexes.text @@ -3,9 +3,9 @@ Network Working Group H. Person, Ed. -Internet-Draft August 12, 2021 +Internet-Draft August 31, 2021 Intended status: Experimental -Expires: February 13, 2022 +Expires: March 4, 2022 xml2rfc index tests @@ -26,7 +26,7 @@ Status of This Memo time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." - This Internet-Draft will expire on February 13, 2022. + This Internet-Draft will expire on March 4, 2022. Copyright Notice diff --git a/tests/valid/indexes.v3.py36.html b/tests/valid/indexes.v3.py36.html index 2cb319fca..fdb65793f 100644 --- a/tests/valid/indexes.v3.py36.html +++ b/tests/valid/indexes.v3.py36.html @@ -6,7 +6,7 @@ xml2rfc index tests - + @@ -23,7 +23,7 @@ Person -Expires February 13, 2022 +Expires March 4, 2022 [Page] @@ -36,12 +36,12 @@
indexes-00
Published:
- +
Intended Status:
Experimental
Expires:
-
+
Author:
@@ -71,7 +71,7 @@

time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

- This Internet-Draft will expire on February 13, 2022.

+ This Internet-Draft will expire on March 4, 2022.