summaryrefslogtreecommitdiffstats
path: root/src/boost/tools/quickbook/test/versions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
commit19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch)
tree42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/boost/tools/quickbook/test/versions
parentInitial commit. (diff)
downloadceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz
ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/tools/quickbook/test/versions')
-rw-r--r--src/boost/tools/quickbook/test/versions/Jamfile.v219
-rw-r--r--src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold36
-rw-r--r--src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold-html39
-rw-r--r--src/boost/tools/quickbook/test/versions/invalid_macro-1_6.quickbook14
-rw-r--r--src/boost/tools/quickbook/test/versions/invalid_macro-inc-1_1.quickbook7
-rw-r--r--src/boost/tools/quickbook/test/versions/templates-inc-1_1.quickbook15
-rw-r--r--src/boost/tools/quickbook/test/versions/templates-inc-1_4.quickbook20
-rw-r--r--src/boost/tools/quickbook/test/versions/templates-inc-1_5.quickbook19
-rw-r--r--src/boost/tools/quickbook/test/versions/versions-1_6.gold114
-rw-r--r--src/boost/tools/quickbook/test/versions/versions-1_6.gold-html239
-rw-r--r--src/boost/tools/quickbook/test/versions/versions-1_6.quickbook26
11 files changed, 548 insertions, 0 deletions
diff --git a/src/boost/tools/quickbook/test/versions/Jamfile.v2 b/src/boost/tools/quickbook/test/versions/Jamfile.v2
new file mode 100644
index 000000000..dd185d587
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/Jamfile.v2
@@ -0,0 +1,19 @@
+#
+# Copyright (c) 2011 Daniel James
+#
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+#
+
+project quickbook/test/versions
+ : requirements
+ <toolset>msvc:<debug-symbols>off
+ ;
+
+import quickbook-testing : quickbook-test quickbook-error-test ;
+
+test-suite quickbook.test :
+ [ quickbook-test versions-1_6 ]
+ [ quickbook-test invalid_macro-1_6 ]
+ ;
diff --git a/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold
new file mode 100644
index 000000000..cb6241247
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<article id="invalid_macro_test" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <title>Invalid macro test</title>
+ <para>
+ Import:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ okay
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ __invalid\macro__
+ </simpara>
+ </listitem>
+ </itemizedlist>
+ <para>
+ Include:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ okay
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ bad
+ </simpara>
+ </listitem>
+ </itemizedlist>
+</article>
diff --git a/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold-html b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold-html
new file mode 100644
index 000000000..52455ec95
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold-html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+ <head></head>
+ <body>
+ <h3>
+ Invalid macro test
+ </h3>
+ <p>
+ Import:
+ </p>
+ <ul>
+ <li>
+ <div>
+ okay
+ </div>
+ </li>
+ <li>
+ <div>
+ __invalid\macro__
+ </div>
+ </li>
+ </ul>
+ <p>
+ Include:
+ </p>
+ <ul>
+ <li>
+ <div>
+ okay
+ </div>
+ </li>
+ <li>
+ <div>
+ bad
+ </div>
+ </li>
+ </ul>
+ </body>
+</html>
diff --git a/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.quickbook b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.quickbook
new file mode 100644
index 000000000..860d58b71
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.quickbook
@@ -0,0 +1,14 @@
+[article Invalid macro test
+[quickbook 1.6]
+]
+
+Import:
+
+[import invalid_macro-inc-1_1.quickbook]
+
+* __valid__
+* __invalid\macro__
+
+Include:
+
+[include invalid_macro-inc-1_1.quickbook]
diff --git a/src/boost/tools/quickbook/test/versions/invalid_macro-inc-1_1.quickbook b/src/boost/tools/quickbook/test/versions/invalid_macro-inc-1_1.quickbook
new file mode 100644
index 000000000..c44bd6741
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/invalid_macro-inc-1_1.quickbook
@@ -0,0 +1,7 @@
+[quickbook 1.1]
+
+[def __valid__ okay]
+[def __invalid\macro__ bad]
+
+* __valid__
+* __invalid\macro__
diff --git a/src/boost/tools/quickbook/test/versions/templates-inc-1_1.quickbook b/src/boost/tools/quickbook/test/versions/templates-inc-1_1.quickbook
new file mode 100644
index 000000000..be5365055
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/templates-inc-1_1.quickbook
@@ -0,0 +1,15 @@
+[article 1.1 Templates
+[quickbook 1.1]
+]
+
+[template section_1_1[]
+[section In a 1.1 template]
+Some text
+[endsect]
+]
+
+[section 1.1 Document]
+[section_1_1]
+[section_1_4]
+[section_1_5]
+[endsect]
diff --git a/src/boost/tools/quickbook/test/versions/templates-inc-1_4.quickbook b/src/boost/tools/quickbook/test/versions/templates-inc-1_4.quickbook
new file mode 100644
index 000000000..8b565512d
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/templates-inc-1_4.quickbook
@@ -0,0 +1,20 @@
+[article 1.4 Templates
+[quickbook 1.4]
+]
+
+[template section_1_4[]
+[section In a 1.4 template]
+Some text
+[endsect]
+]
+
+[section 1.4 Document]
+[section_1_1]
+[section_1_4]
+[section_1_5]
+[endsect]
+
+[/ Odd test for calling 1.4 -> 1.5 -> 1.4 template]
+
+[template skip_1_5[a] [skip_1_5_2 wrong]]
+[template skip_1_5_3[] [a]]
diff --git a/src/boost/tools/quickbook/test/versions/templates-inc-1_5.quickbook b/src/boost/tools/quickbook/test/versions/templates-inc-1_5.quickbook
new file mode 100644
index 000000000..9dd07f693
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/templates-inc-1_5.quickbook
@@ -0,0 +1,19 @@
+[article 1.5 Templates
+[quickbook 1.5]
+]
+
+[template section_1_5[]
+[section In a 1.5 template]
+Some text
+[endsect]
+]
+
+[section 1.5 Document]
+[section_1_1]
+[section_1_4]
+[section_1_5]
+[endsect]
+
+[/ Odd test for calling 1.4 -> 1.5 -> 1.4 template]
+
+[template skip_1_5_2[a] [skip_1_5_3]]
diff --git a/src/boost/tools/quickbook/test/versions/versions-1_6.gold b/src/boost/tools/quickbook/test/versions/versions-1_6.gold
new file mode 100644
index 000000000..7b89fdc3d
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/versions-1_6.gold
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<article id="mixed_version_tests" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <title>Mixed version tests</title>
+ <para>
+ correct
+ </para>
+ <section id="mixed_version_tests.section_ids">
+ <title><link linkend="mixed_version_tests.section_ids">Section ids in templates</link></title>
+ <section id="mixed_version_tests.section_ids.in_a_1_1_template">
+ <title><link linkend="mixed_version_tests.section_ids.in_a_1_1_template">In
+ a 1.1 template</link></title>
+ <para>
+ Some text
+ </para>
+ </section>
+ <section id="mixed_version_tests.section_ids.in_a_1_4_template">
+ <title><link linkend="mixed_version_tests.section_ids.in_a_1_4_template">In
+ a 1.4 template</link></title>
+ <para>
+ Some text
+ </para>
+ </section>
+ <section id="mixed_version_tests.section_ids.in_a_1_5_template">
+ <title><link linkend="mixed_version_tests.section_ids.in_a_1_5_template">In
+ a 1.5 template</link></title>
+ <para>
+ Some text
+ </para>
+ </section>
+ </section>
+ <article id="1_1_templates" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <title>1.1 Templates</title>
+ <section id="1_1_templates.1_1_document">
+ <title>1.1 Document</title>
+ <section id="1_1_templates.in_a_1_1_template">
+ <title>In a 1.1 template</title>
+ <para>
+ Some text
+ </para>
+ </section>
+ <section id="1_1_templates.in_a_1_4_template">
+ <title>In a 1.4 template</title>
+ <para>
+ Some text
+ </para>
+ </section>
+ <section id="1_1_templates.in_a_1_5_template">
+ <title>In a 1.5 template</title>
+ <para>
+ Some text
+ </para>
+ </section>
+ </section>
+ </article>
+ <article id="1_4_templates" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <title>1.4 Templates</title>
+ <section id="1_4_templates.1_4_document">
+ <title><link linkend="1_4_templates.1_4_document">1.4 Document</link></title>
+ <section id="1_4_templates.1_4_document.in_a_1_1_template">
+ <title><link linkend="1_4_templates.1_4_document.in_a_1_1_template">In a
+ 1.1 template</link></title>
+ <para>
+ Some text
+ </para>
+ </section>
+ <section id="1_4_templates.1_4_document.in_a_1_4_template">
+ <title><link linkend="1_4_templates.1_4_document.in_a_1_4_template">In a
+ 1.4 template</link></title>
+ <para>
+ Some text
+ </para>
+ </section>
+ <section id="1_4_templates.1_4_document.in_a_1_5_template">
+ <title><link linkend="1_4_templates.1_4_document.in_a_1_5_template">In a
+ 1.5 template</link></title>
+ <para>
+ Some text
+ </para>
+ </section>
+ </section>
+ </article>
+ <article id="1_5_templates" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <title>1.5 Templates</title>
+ <section id="1_5_templates.1_5_document">
+ <title><link linkend="1_5_templates.1_5_document">1.5 Document</link></title>
+ <section id="1_5_templates.1_5_document.in_a_1_1_template">
+ <title><link linkend="1_5_templates.1_5_document.in_a_1_1_template">In a
+ 1.1 template</link></title>
+ <para>
+ Some text
+ </para>
+ </section>
+ <section id="1_5_templates.1_5_document.in_a_1_4_template">
+ <title><link linkend="1_5_templates.1_5_document.in_a_1_4_template">In a
+ 1.4 template</link></title>
+ <para>
+ Some text
+ </para>
+ </section>
+ <section id="1_5_templates.1_5_document.in_a_1_5_template">
+ <title><link linkend="1_5_templates.1_5_document.in_a_1_5_template">In a
+ 1.5 template</link></title>
+ <para>
+ Some text
+ </para>
+ </section>
+ </section>
+ </article>
+</article>
diff --git a/src/boost/tools/quickbook/test/versions/versions-1_6.gold-html b/src/boost/tools/quickbook/test/versions/versions-1_6.gold-html
new file mode 100644
index 000000000..f895a387f
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/versions-1_6.gold-html
@@ -0,0 +1,239 @@
+<!DOCTYPE html>
+<html>
+ <head></head>
+ <body>
+ <h3>
+ Mixed version tests
+ </h3>
+ <div class="toc">
+ <p>
+ <b>Table of contents</b>
+ </p>
+ <ul>
+ <li>
+ <a href="#mixed_version_tests.section_ids">Section ids in templates</a>
+ </li>
+ <li>
+ <a href="#1_1_templates">1.1 Templates</a>
+ <ul>
+ <li>
+ <a href="#1_1_templates.1_1_document">1.1 Document</a>
+ </li>
+ </ul>
+ </li>
+ <li>
+ <a href="#1_4_templates">1.4 Templates</a>
+ <ul>
+ <li>
+ <a href="#1_4_templates.1_4_document">1.4 Document</a>
+ </li>
+ </ul>
+ </li>
+ <li>
+ <a href="#1_5_templates">1.5 Templates</a>
+ <ul>
+ <li>
+ <a href="#1_5_templates.1_5_document">1.5 Document</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </div>
+ <p>
+ correct
+ </p>
+ <div id="mixed_version_tests.section_ids">
+ <h3>
+ Section ids in templates
+ </h3>
+ <div id="mixed_version_tests.section_ids">
+ </div>
+ <div id="mixed_version_tests.section_ids.in_a_1_1_template">
+ <h3>
+ In a 1.1 template
+ </h3>
+ <div id="mixed_version_tests.section_ids.in_a_1_1_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ <div id="mixed_version_tests.section_ids.in_a_1_4_template">
+ <h3>
+ In a 1.4 template
+ </h3>
+ <div id="mixed_version_tests.section_ids.in_a_1_4_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ <div id="mixed_version_tests.section_ids.in_a_1_5_template">
+ <h3>
+ In a 1.5 template
+ </h3>
+ <div id="mixed_version_tests.section_ids.in_a_1_5_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ </div>
+ <div id="1_1_templates">
+ <h3>
+ 1.1 Templates
+ </h3>
+ <div class="toc">
+ <p>
+ <b>Table of contents</b>
+ </p>
+ <ul>
+ <li>
+ <a href="#1_1_templates.1_1_document">1.1 Document</a>
+ </li>
+ </ul>
+ </div>
+ <div id="1_1_templates.1_1_document">
+ <h3>
+ 1.1 Document
+ </h3>
+ <div id="1_1_templates.1_1_document">
+ </div>
+ <div id="1_1_templates.in_a_1_1_template">
+ <h3>
+ In a 1.1 template
+ </h3>
+ <div id="1_1_templates.in_a_1_1_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ <div id="1_1_templates.in_a_1_4_template">
+ <h3>
+ In a 1.4 template
+ </h3>
+ <div id="1_1_templates.in_a_1_4_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ <div id="1_1_templates.in_a_1_5_template">
+ <h3>
+ In a 1.5 template
+ </h3>
+ <div id="1_1_templates.in_a_1_5_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div id="1_4_templates">
+ <h3>
+ 1.4 Templates
+ </h3>
+ <div class="toc">
+ <p>
+ <b>Table of contents</b>
+ </p>
+ <ul>
+ <li>
+ <a href="#1_4_templates.1_4_document">1.4 Document</a>
+ </li>
+ </ul>
+ </div>
+ <div id="1_4_templates.1_4_document">
+ <h3>
+ 1.4 Document
+ </h3>
+ <div id="1_4_templates.1_4_document">
+ </div>
+ <div id="1_4_templates.1_4_document.in_a_1_1_template">
+ <h3>
+ In a 1.1 template
+ </h3>
+ <div id="1_4_templates.1_4_document.in_a_1_1_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ <div id="1_4_templates.1_4_document.in_a_1_4_template">
+ <h3>
+ In a 1.4 template
+ </h3>
+ <div id="1_4_templates.1_4_document.in_a_1_4_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ <div id="1_4_templates.1_4_document.in_a_1_5_template">
+ <h3>
+ In a 1.5 template
+ </h3>
+ <div id="1_4_templates.1_4_document.in_a_1_5_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div id="1_5_templates">
+ <h3>
+ 1.5 Templates
+ </h3>
+ <div class="toc">
+ <p>
+ <b>Table of contents</b>
+ </p>
+ <ul>
+ <li>
+ <a href="#1_5_templates.1_5_document">1.5 Document</a>
+ </li>
+ </ul>
+ </div>
+ <div id="1_5_templates.1_5_document">
+ <h3>
+ 1.5 Document
+ </h3>
+ <div id="1_5_templates.1_5_document">
+ </div>
+ <div id="1_5_templates.1_5_document.in_a_1_1_template">
+ <h3>
+ In a 1.1 template
+ </h3>
+ <div id="1_5_templates.1_5_document.in_a_1_1_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ <div id="1_5_templates.1_5_document.in_a_1_4_template">
+ <h3>
+ In a 1.4 template
+ </h3>
+ <div id="1_5_templates.1_5_document.in_a_1_4_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ <div id="1_5_templates.1_5_document.in_a_1_5_template">
+ <h3>
+ In a 1.5 template
+ </h3>
+ <div id="1_5_templates.1_5_document.in_a_1_5_template">
+ <p>
+ Some text
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/src/boost/tools/quickbook/test/versions/versions-1_6.quickbook b/src/boost/tools/quickbook/test/versions/versions-1_6.quickbook
new file mode 100644
index 000000000..fed5a93ea
--- /dev/null
+++ b/src/boost/tools/quickbook/test/versions/versions-1_6.quickbook
@@ -0,0 +1,26 @@
+[quickbook 1.6]
+[article Mixed version tests]
+
+[import templates-inc-1_1.quickbook]
+[import templates-inc-1_4.quickbook]
+[import templates-inc-1_5.quickbook]
+
+[/ This test calls a 1.4 template -> 1.5 template -> 1.4 template.
+ The name lookup in the 1.4 template should skip the 1.5 template
+ when doing dynamic name lookup. ]
+[skip_1_5 correct]
+
+[/ When calling templates from old versions, the ids should
+ be consistent with their context ]
+
+[section:section_ids Section ids in templates]
+[section_1_1]
+[section_1_4]
+[section_1_5]
+[endsect]
+
+[/ For comparison]
+
+[include templates-inc-1_1.quickbook]
+[include templates-inc-1_4.quickbook]
+[include templates-inc-1_5.quickbook]