python3 -m asciidoc.asciidoc --doctest asciidoc: All doctests passed python3 -m pytest ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/asciidoc/src/asciidoc-py-10.1.1 plugins: mock-3.6.1 collected 47 items tests/test_asciidoc.py .......... [ 21%] tests/test_collections.py ... [ 27%] tests/test_utils.py .................................. [100%] =============================== warnings summary =============================== tests/test_asciidoc.py: 20 warnings :1: DeprecationWarning: invalid escape sequence '\S' tests/test_asciidoc.py::test_ignore_attribute[link:\\{attach}file\\{0}.txt[file\\{bar}too\\{1}]-

file{bar}too{1}

\r\n] tests/test_asciidoc.py::test_ignore_attribute[link:\\{attach}file\\{0}.txt[file\\{bar}too\\{1}]-

file{bar}too{1}

\r\n] tests/test_asciidoc.py::test_ignore_attribute[image:\\{attach}file.jpg[\\{bar}?]-

\r\n{bar}?\r\n

\r\n] tests/test_asciidoc.py::test_ignore_attribute[image:\\{attach}file.jpg[\\{bar}?]-

\r\n{bar}?\r\n

\r\n] :1: DeprecationWarning: invalid escape sequence '\{' -- Docs: https://docs.pytest.org/en/stable/warnings.html ======================= 47 passed, 24 warnings in 3.15s ======================== python3 tests/testasciidoc.py run /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: testcases.txt: line 180: filter non-zero exit code: source-highlight --gen-version -f html -s python: returned 127 asciidoc: WARNING: testcases.txt: line 180: no output from filter: source-highlight --gen-version -f html -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: testcases.txt: line 185: filter non-zero exit code: source-highlight --gen-version -f html -s python: returned 127 asciidoc: WARNING: testcases.txt: line 185: no output from filter: source-highlight --gen-version -f html -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: testcases.txt: line 192: filter non-zero exit code: source-highlight --gen-version -f html -s python: returned 127 asciidoc: WARNING: testcases.txt: line 192: no output from filter: source-highlight --gen-version -f html -s python asciidoc: WARNING: testcases.txt: line 282: nested inline passthrough asciidoc: WARNING: testcases.txt: line 808: missing style: [blockdef-pass]: latexmath +++ tests/data/testcases-html4.html --- got -
+
+
if n < 0: print 'Hello World!'
@@ -157 +161,5 @@ -
+
+
if n < 0: print 'Hello World!'
@@ -160 +168,5 @@ -
+
+
if n < 0: print 'Hello World!'
/usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: testcases.txt: line 180: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: testcases.txt: line 180: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: testcases.txt: line 185: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: testcases.txt: line 185: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: testcases.txt: line 192: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: testcases.txt: line 192: no output from filter: source-highlight --gen-version -f xhtml -s python asciidoc: WARNING: testcases.txt: line 282: nested inline passthrough +++ tests/data/testcases-xhtml11.html --- got -
+
+
if n < 0: print 'Hello World!'
@@ -915 +919,5 @@ -
+
+
if n < 0: print 'Hello World!'
@@ -920 +928,5 @@ -
+
+
if n < 0: print 'Hello World!'
asciidoc: WARNING: testcases.txt: line 282: nested inline passthrough asciidoc: WARNING: testcases.txt: line 641: missing macro section: [unfloat-blockmacro] asciidoc: WARNING: testcases.txt: line 282: nested inline passthrough asciidoc: WARNING: testcases.txt: line 641: missing macro section: [unfloat-blockmacro] /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: testcases.txt: line 180: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: testcases.txt: line 180: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: testcases.txt: line 185: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: testcases.txt: line 185: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: testcases.txt: line 192: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: testcases.txt: line 192: no output from filter: source-highlight --gen-version -f xhtml -s python asciidoc: WARNING: testcases.txt: line 282: nested inline passthrough +++ tests/data/testcases-html5.html --- got -
+
+
if n < 0: print 'Hello World!'
@@ -911 +915,5 @@ -
+
+
if n < 0: print 'Hello World!'
@@ -916 +924,5 @@ -
+
+
if n < 0: print 'Hello World!'
music2png.py: failed command: convert "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/music1.png" -strip -gravity South -chop 0x75 +gravity -trim "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/music1.png" 2>/dev/null asciidoc: WARNING: filters-test.txt: line 72: filter non-zero exit code: "/usr/bin/python3" "/build/asciidoc/src/asciidoc-py-10.1.1/asciidoc/resources/filters/music/music2png.py" -m -o "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/music1.png" -: returned 1 asciidoc: WARNING: filters-test.txt: line 72: no output from filter: "/usr/bin/python3" "/build/asciidoc/src/asciidoc-py-10.1.1/asciidoc/resources/filters/music/music2png.py" -m -o "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/music1.png" - music2png.py: failed command: convert "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/music2.png" -strip -gravity South -chop 0x75 +gravity -trim "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/music2.png" 2>/dev/null asciidoc: WARNING: filters-test.txt: line 89: filter non-zero exit code: "/usr/bin/python3" "/build/asciidoc/src/asciidoc-py-10.1.1/asciidoc/resources/filters/music/music2png.py" -m -f ly -o "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/music2.png" -: returned 1 asciidoc: WARNING: filters-test.txt: line 89: no output from filter: "/usr/bin/python3" "/build/asciidoc/src/asciidoc-py-10.1.1/asciidoc/resources/filters/music/music2png.py" -m -f ly -o "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/music2.png" - /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: : line 23: filter non-zero exit code: source-highlight --gen-version -f html -s python: returned 127 asciidoc: WARNING: : line 23: no output from filter: source-highlight --gen-version -f html -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: : line 26: filter non-zero exit code: source-highlight --gen-version -f html -s python: returned 127 asciidoc: WARNING: : line 26: no output from filter: source-highlight --gen-version -f html -s python +++ tests/data/newtables-html4.html --- got -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
@@ -843 +855,13 @@ -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
/usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: : line 23: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: : line 23: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: : line 26: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: : line 26: no output from filter: source-highlight --gen-version -f xhtml -s python +++ tests/data/newtables-xhtml11.html --- got -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
@@ -1632 +1644,13 @@ -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
/usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: : line 23: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: : line 23: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: : line 26: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: : line 26: no output from filter: source-highlight --gen-version -f xhtml -s python +++ tests/data/newtables-html5.html --- got -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
@@ -1603 +1615,13 @@ -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
asciidoc: DEPRECATED: oldtables.txt: line 9: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 19: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 32: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 41: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 9: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 19: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 32: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 41: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 9: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 19: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 32: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 41: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 9: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 19: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 32: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 41: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 9: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 19: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 32: old tables syntax asciidoc: DEPRECATED: oldtables.txt: line 41: old tables syntax /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 139: filter non-zero exit code: source-highlight --gen-version -f html -s python: returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 139: no output from filter: source-highlight --gen-version -f html -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 144: filter non-zero exit code: source-highlight --gen-version -f html -s python: returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 144: no output from filter: source-highlight --gen-version -f html -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 148: filter non-zero exit code: source-highlight --gen-version -f html -s ruby --line-number=' ': returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 148: no output from filter: source-highlight --gen-version -f html -s ruby --line-number=' ' /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 182: filter non-zero exit code: source-highlight --gen-version -f html -s python: returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 182: no output from filter: source-highlight --gen-version -f html -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 262: filter non-zero exit code: source-highlight --gen-version -f html -s ruby --line-number=' ': returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 262: no output from filter: source-highlight --gen-version -f html -s ruby --line-number=' ' asciidoc: WARNING: source-highlight-filter.txt: line 265: no callouts refer to list item 1 asciidoc: WARNING: source-highlight-filter.txt: line 266: no callouts refer to list item 2 +++ tests/data/source-highlight-filter-html4.html --- got -
-
-
+
+
if n < 0: print 'Hello World!'
+
+
if n < 0: print 'Hello World!'
+
+
    1: [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|

+    2:     puts "#{a.inspect} => #{b.inspect}"
@@ -230 +243,13 @@ -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')     # Inline comment

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
@@ -272 +297,34 @@ -
+
+
    1: #

+    2: # Useful Ruby base class extensions.

+    3: #

+    4:

+    5: class Array

+    6:

+    7:   # Execute a block passing it corresponding items in

+    8:   # +self+ and +other_array+.

+    9:   # If self has less items than other_array it is repeated.

+   10:

+   11:   def cycle(other_array)  # :yields: item, other_item

+   12:     other_array.each_with_index do |item, index|

+   13:       yield(self[index % self.length], item)

+   14:     end

+   15:   end

+   16:

+   17: end

+   18:

+   19: if $0 == __FILE__                                 # <1>

+   20:   # Array#cycle test

+   21:   # true => 0

+   22:   # false => 1

+   23:   # true => 2

+   24:   # false => 3

+   25:   # true => 4

+   26:   puts 'Array#cycle test'                         # <2>

+   27:   [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|

+   28:     puts "#{a.inspect} => #{b.inspect}"

+   29:   end

+   30: end
/usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 139: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 139: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 144: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 144: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 148: filter non-zero exit code: source-highlight --gen-version -f xhtml -s ruby --line-number=' ': returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 148: no output from filter: source-highlight --gen-version -f xhtml -s ruby --line-number=' ' /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 182: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 182: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 262: filter non-zero exit code: source-highlight --gen-version -f xhtml -s ruby --line-number=' ': returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 262: no output from filter: source-highlight --gen-version -f xhtml -s ruby --line-number=' ' asciidoc: WARNING: source-highlight-filter.txt: line 265: no callouts refer to list item 1 asciidoc: WARNING: source-highlight-filter.txt: line 266: no callouts refer to list item 2 +++ tests/data/source-highlight-filter-xhtml11.html --- got -
+
+
if n < 0: print 'Hello World!'
@@ -981 +985,5 @@ -
+
+
if n < 0: print 'Hello World!'
@@ -983 +991,6 @@ -
+
+
    1: [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|

+    2:     puts "#{a.inspect} => #{b.inspect}"
@@ -1005 +1018,13 @@ -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')     # Inline comment

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
@@ -1051 +1076,34 @@ -
+
+
    1: #

+    2: # Useful Ruby base class extensions.

+    3: #

+    4:

+    5: class Array

+    6:

+    7:   # Execute a block passing it corresponding items in

+    8:   # +self+ and +other_array+.

+    9:   # If self has less items than other_array it is repeated.

+   10:

+   11:   def cycle(other_array)  # :yields: item, other_item

+   12:     other_array.each_with_index do |item, index|

+   13:       yield(self[index % self.length], item)

+   14:     end

+   15:   end

+   16:

+   17: end

+   18:

+   19: if $0 == __FILE__                                 # <1>

+   20:   # Array#cycle test

+   21:   # true => 0

+   22:   # false => 1

+   23:   # true => 2

+   24:   # false => 3

+   25:   # true => 4

+   26:   puts 'Array#cycle test'                         # <2>

+   27:   [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|

+   28:     puts "#{a.inspect} => #{b.inspect}"

+   29:   end

+   30: end
/usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 139: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 139: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 144: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 144: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 148: filter non-zero exit code: source-highlight --gen-version -f xhtml -s ruby --line-number=' ': returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 148: no output from filter: source-highlight --gen-version -f xhtml -s ruby --line-number=' ' /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 182: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 182: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: source-highlight-filter.txt: line 262: filter non-zero exit code: source-highlight --gen-version -f xhtml -s ruby --line-number=' ': returned 127 asciidoc: WARNING: source-highlight-filter.txt: line 262: no output from filter: source-highlight --gen-version -f xhtml -s ruby --line-number=' ' asciidoc: WARNING: source-highlight-filter.txt: line 265: no callouts refer to list item 1 asciidoc: WARNING: source-highlight-filter.txt: line 266: no callouts refer to list item 2 +++ tests/data/source-highlight-filter-html5.html --- got -
+
+
if n < 0: print 'Hello World!'
@@ -979 +983,5 @@ -
+
+
if n < 0: print 'Hello World!'
@@ -981 +989,6 @@ -
+
+
    1: [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|

+    2:     puts "#{a.inspect} => #{b.inspect}"
@@ -1003 +1016,13 @@ -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')     # Inline comment

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
@@ -1049 +1074,34 @@ -
+
+
    1: #

+    2: # Useful Ruby base class extensions.

+    3: #

+    4:

+    5: class Array

+    6:

+    7:   # Execute a block passing it corresponding items in

+    8:   # +self+ and +other_array+.

+    9:   # If self has less items than other_array it is repeated.

+   10:

+   11:   def cycle(other_array)  # :yields: item, other_item

+   12:     other_array.each_with_index do |item, index|

+   13:       yield(self[index % self.length], item)

+   14:     end

+   15:   end

+   16:

+   17: end

+   18:

+   19: if $0 == __FILE__                                 # <1>

+   20:   # Array#cycle test

+   21:   # true => 0

+   22:   # false => 1

+   23:   # true => 2

+   24:   # false => 3

+   25:   # true => 4

+   26:   puts 'Array#cycle test'                         # <2>

+   27:   [true, false].cycle([0, 1, 2, 3, 4]) do |a, b|

+   28:     puts "#{a.inspect} => #{b.inspect}"

+   29:   end

+   30: end
/usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: slidy-example.txt: line 152: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: slidy-example.txt: line 152: no output from filter: source-highlight --gen-version -f xhtml -s python +++ tests/data/slidy-example-slidy.html --- got -
+
+
''' A multi-line

+    comment.'''

+def sub_word(mo):

+    ''' Single line comment.'''

+    word = mo.group('word')     # Inline comment

+    if word in keywords[language]:

+        return quote + word + quote

+    else:

+        return word
/usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: open-block-test.txt: line 93: filter non-zero exit code: source-highlight --gen-version -f html -s python: returned 127 asciidoc: WARNING: open-block-test.txt: line 93: no output from filter: source-highlight --gen-version -f html -s python music2png.py: failed command: convert "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/open-block-test__3.png" -strip -gravity South -chop 0x75 +gravity -trim "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/open-block-test__3.png" 2>/dev/null asciidoc: WARNING: open-block-test.txt: line 116: filter non-zero exit code: "/usr/bin/python3" "/build/asciidoc/src/asciidoc-py-10.1.1/asciidoc/resources/filters/music/music2png.py" -m -o "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/open-block-test__3.png" -: returned 1 asciidoc: WARNING: open-block-test.txt: line 116: no output from filter: "/usr/bin/python3" "/build/asciidoc/src/asciidoc-py-10.1.1/asciidoc/resources/filters/music/music2png.py" -m -o "/build/asciidoc/src/asciidoc-py-10.1.1/tests/data/open-block-test__3.png" - +++ tests/data/open-block-test-html4.html --- got -
+
+
y = 15

+

+if y == 24:

+    x = 42
/usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: open-block-test.txt: line 93: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: open-block-test.txt: line 93: no output from filter: source-highlight --gen-version -f xhtml -s python +++ tests/data/open-block-test-xhtml11.html --- got -
+
+
y = 15

+

+if y == 24:

+    x = 42
/usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: open-block-test.txt: line 93: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: open-block-test.txt: line 93: no output from filter: source-highlight --gen-version -f xhtml -s python +++ tests/data/open-block-test-html5.html --- got -
+
+
y = 15

+

+if y == 24:

+    x = 42
1: Test cases SOURCE: asciidoc: tests/data/testcases.txt FAILED: html4: tests/data/testcases-html4.html FAILED: xhtml11: tests/data/testcases-xhtml11.html PASSED: docbook: tests/data/testcases-docbook.xml PASSED: docbook5: tests/data/testcases-docbook5.xml FAILED: html5: tests/data/testcases-html5.html 2: Filters SOURCE: asciidoc: tests/data/filters-test.txt PASSED: html4: tests/data/filters-test-html4.html PASSED: xhtml11: tests/data/filters-test-xhtml11.html PASSED: docbook: tests/data/filters-test-docbook.xml PASSED: docbook5: tests/data/filters-test-docbook5.xml PASSED: html5: tests/data/filters-test-html5.html 3: Tables SOURCE: asciidoc: website/newtables.txt FAILED: html4: tests/data/newtables-html4.html FAILED: xhtml11: tests/data/newtables-xhtml11.html PASSED: docbook: tests/data/newtables-docbook.xml PASSED: docbook5: tests/data/newtables-docbook5.xml FAILED: html5: tests/data/newtables-html5.html 4: Old tables SOURCE: asciidoc: tests/data/oldtables.txt PASSED: html4: tests/data/oldtables-html4.html PASSED: xhtml11: tests/data/oldtables-xhtml11.html PASSED: docbook: tests/data/oldtables-docbook.xml PASSED: docbook5: tests/data/oldtables-docbook5.xml PASSED: html5: tests/data/oldtables-html5.html 5: Source highlighter SOURCE: asciidoc: doc/source-highlight-filter.txt FAILED: html4: tests/data/source-highlight-filter-html4.html FAILED: xhtml11: tests/data/source-highlight-filter-xhtml11.html PASSED: docbook: tests/data/source-highlight-filter-docbook.xml PASSED: docbook5: tests/data/source-highlight-filter-docbook5.xml FAILED: html5: tests/data/source-highlight-filter-html5.html 6: Example article SOURCE: asciidoc: doc/article.txt PASSED: html4: tests/data/article-html4.html PASSED: xhtml11: tests/data/article-xhtml11.html PASSED: docbook: tests/data/article-docbook.xml PASSED: docbook5: tests/data/article-docbook5.xml PASSED: html5: tests/data/article-html5.html 7: Example article with embedded images (data URIs) SOURCE: asciidoc: doc/article.txt PASSED: html4: tests/data/article-data-uri-html4.html PASSED: xhtml11: tests/data/article-data-uri-xhtml11.html PASSED: html5: tests/data/article-data-uri-html5.html 8: Example article with included docinfo file. SOURCE: asciidoc: doc/article.txt PASSED: docbook: tests/data/article-docinfo-docbook.xml PASSED: docbook5: tests/data/article-docinfo-docbook5.xml 9: Example book SOURCE: asciidoc: doc/book.txt PASSED: html4: tests/data/book-html4.html PASSED: xhtml11: tests/data/book-xhtml11.html PASSED: docbook: tests/data/book-docbook.xml PASSED: docbook5: tests/data/book-docbook5.xml PASSED: html5: tests/data/book-html5.html 10: Example multi-part book SOURCE: asciidoc: doc/book-multi.txt PASSED: html4: tests/data/book-multi-html4.html PASSED: xhtml11: tests/data/book-multi-xhtml11.html PASSED: docbook: tests/data/book-multi-docbook.xml PASSED: docbook5: tests/data/book-multi-docbook5.xml PASSED: html5: tests/data/book-multi-html5.html 11: Man page SOURCE: asciidoc: doc/asciidoc.1.txt PASSED: html4: tests/data/asciidoc.1-html4.html PASSED: xhtml11: tests/data/asciidoc.1-xhtml11.html PASSED: docbook: tests/data/asciidoc.1-docbook.xml PASSED: docbook5: tests/data/asciidoc.1-docbook5.xml PASSED: html5: tests/data/asciidoc.1-html5.html 12: Example slideshow SOURCE: asciidoc: tests/data/slidy-example.txt FAILED: slidy: tests/data/slidy-example-slidy.html 13: ASCIIMathML SOURCE: asciidoc: doc/asciimath.txt PASSED: xhtml11: tests/data/asciimath-xhtml11.html PASSED: html5: tests/data/asciimath-html5.html 14: LaTeXMathML SOURCE: asciidoc: doc/latexmathml.txt PASSED: xhtml11: tests/data/latexmathml-xhtml11.html PASSED: html5: tests/data/latexmathml-html5.html 15: LaTeX Math SOURCE: asciidoc: doc/latexmath.txt PASSED: docbook: tests/data/latexmath-docbook.xml PASSED: docbook5: tests/data/latexmath-docbook5.xml 16: LaTeX Filter SOURCE: asciidoc: doc/latex-filter.txt PASSED: html4: tests/data/latex-filter-html4.html PASSED: xhtml11: tests/data/latex-filter-xhtml11.html PASSED: docbook: tests/data/latex-filter-docbook.xml PASSED: docbook5: tests/data/latex-filter-docbook5.xml PASSED: html5: tests/data/latex-filter-html5.html 18: UTF-8 Examples SOURCE: asciidoc: tests/data/utf8-examples.txt PASSED: html4: tests/data/utf8-examples-html4.html PASSED: xhtml11: tests/data/utf8-examples-xhtml11.html PASSED: docbook: tests/data/utf8-examples-docbook.xml PASSED: docbook5: tests/data/utf8-examples-docbook5.xml PASSED: html5: tests/data/utf8-examples-html5.html 19: Additional Open Block and Paragraph styles SOURCE: asciidoc: tests/data/open-block-test.txt FAILED: html4: tests/data/open-block-test-html4.html FAILED: xhtml11: tests/data/open-block-test-xhtml11.html PASSED: docbook: tests/data/open-block-test-docbook.xml PASSED: docbook5: tests/data/open-block-test-docbook5.xml FAILED: html5: tests/data/open-block-test-html5.html 20: English language file (article) SOURCE: asciidoc: tests/data/lang-en-test.txt PASSED: docbook: tests/data/lang-en-article-test-docbook.xml PASSED: docbook5: tests/data/lang-en-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-en-article-test-xhtml11.html PASSED: html4: tests/data/lang-en-article-test-html4.html PASSED: html5: tests/data/lang-en-article-test-html5.html 21: English language file (book) SOURCE: asciidoc: tests/data/lang-en-test.txt PASSED: docbook: tests/data/lang-en-book-test-docbook.xml PASSED: docbook5: tests/data/lang-en-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-en-book-test-xhtml11.html PASSED: html4: tests/data/lang-en-book-test-html4.html PASSED: html5: tests/data/lang-en-book-test-html5.html 22: English language file (manpage) SOURCE: asciidoc: tests/data/lang-en-man-test.txt PASSED: docbook: tests/data/lang-en-man-test-docbook.xml PASSED: docbook5: tests/data/lang-en-man-test-docbook5.xml 23: Russian language file (article) SOURCE: asciidoc: tests/data/lang-ru-test.txt PASSED: docbook: tests/data/lang-ru-article-test-docbook.xml PASSED: docbook5: tests/data/lang-ru-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-ru-article-test-xhtml11.html PASSED: html4: tests/data/lang-ru-article-test-html4.html PASSED: html5: tests/data/lang-ru-article-test-html5.html 24: Russian language file (book) SOURCE: asciidoc: tests/data/lang-ru-test.txt PASSED: docbook: tests/data/lang-ru-book-test-docbook.xml PASSED: docbook5: tests/data/lang-ru-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-ru-book-test-xhtml11.html PASSED: html4: tests/data/lang-ru-book-test-html4.html PASSED: html5: tests/data/lang-ru-book-test-html5.html 25: Russian language file (manpage) SOURCE: asciidoc: tests/data/lang-ru-man-test.txt PASSED: docbook: tests/data/lang-ru-man-test-docbook.xml PASSED: docbook5: tests/data/lang-ru-man-test-docbook5.xml 26: French language file (article) SOURCE: asciidoc: tests/data/lang-fr-test.txt PASSED: docbook: tests/data/lang-fr-article-test-docbook.xml PASSED: docbook5: tests/data/lang-fr-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-fr-article-test-xhtml11.html PASSED: html4: tests/data/lang-fr-article-test-html4.html PASSED: html5: tests/data/lang-fr-article-test-html5.html 27: French language file (book) SOURCE: asciidoc: tests/data/lang-fr-test.txt PASSED: docbook: tests/data/lang-fr-book-test-docbook.xml PASSED: docbook5: tests/data/lang-fr-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-fr-book-test-xhtml11.html PASSED: html4: tests/data/lang-fr-book-test-html4.html PASSED: html5: tests/data/lang-fr-book-test-html5.html 28: French language file (manpage) SOURCE: asciidoc: tests/data/lang-fr-man-test.txt PASSED: docbook: tests/data/lang-fr-man-test-docbook.xml PASSED: docbook5: tests/data/lang-fr-man-test-docbook5.xml 29: German language file (article) SOURCE: asciidoc: tests/data/lang-de-test.txt PASSED: docbook: tests/data/lang-de-article-test-docbook.xml PASSED: docbook5: tests/data/lang-de-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-de-article-test-xhtml11.html PASSED: html4: tests/data/lang-de-article-test-html4.html PASSED: html5: tests/data/lang-de-article-test-html5.html 30: German language file (book) SOURCE: asciidoc: tests/data/lang-de-test.txt PASSED: docbook: tests/data/lang-de-book-test-docbook.xml PASSED: docbook5: tests/data/lang-de-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-de-book-test-xhtml11.html PASSED: html4: tests/data/lang-de-book-test-html4.html PASSED: html5: tests/data/lang-de-book-test-html5.html 31: German language file (manpage) SOURCE: asciidoc: tests/data/lang-de-man-test.txt PASSED: docbook: tests/data/lang-de-man-test-docbook.xml PASSED: docbook5: tests/data/lang-de-man-test-docbook5.xml 32: Hungarian language file (article) SOURCE: asciidoc: tests/data/lang-hu-test.txt PASSED: docbook: tests/data/lang-hu-article-test-docbook.xml PASSED: docbook5: tests/data/lang-hu-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-hu-article-test-xhtml11.html PASSED: html4: tests/data/lang-hu-article-test-html4.html PASSED: html5: tests/data/lang-hu-article-test-html5.html 33: Hungarian language file (book) SOURCE: asciidoc: tests/data/lang-hu-test.txt PASSED: docbook: tests/data/lang-hu-book-test-docbook.xml PASSED: docbook5: tests/data/lang-hu-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-hu-book-test-xhtml11.html PASSED: html4: tests/data/lang-hu-book-test-html4.html PASSED: html5: tests/data/lang-hu-book-test-html5.html 34: Hungarian language file (manpage) SOURCE: asciidoc: tests/data/lang-hu-man-test.txt PASSED: docbook: tests/data/lang-hu-man-test-docbook.xml PASSED: docbook5: tests/data/lang-hu-man-test-docbook5.xml 35: Spanish language file (article) SOURCE: asciidoc: tests/data/lang-es-test.txt PASSED: docbook: tests/data/lang-es-article-test-docbook.xml PASSED: docbook5: tests/data/lang-es-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-es-article-test-xhtml11.html PASSED: html4: tests/data/lang-es-article-test-html4.html PASSED: html5: tests/data/lang-es-article-test-html5.html 36: Spanish language file (book) SOURCE: asciidoc: tests/data/lang-es-test.txt PASSED: docbook: tests/data/lang-es-book-test-docbook.xml PASSED: docbook5: tests/data/lang-es-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-es-book-test-xhtml11.html PASSED: html4: tests/data/lang-es-book-test-html4.html PASSED: html5: tests/data/lang-es-book-test-html5.html 37: Spanish language file (manpage) SOURCE: asciidoc: tests/data/lang-es-man-test.txt PASSED: docbook: tests/data/lang-es-man-test-docbook.xml PASSED: docbook5: tests/data/lang-es-man-test-docbook5.xml 38: Brazilian Portuguese language file (article) SOURCE: asciidoc: tests/data/lang-pt-BR-test.txt PASSED: docbook: tests/data/lang-pt-BR-article-test-docbook.xml PASSED: docbook5: tests/data/lang-pt-BR-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-pt-BR-article-test-xhtml11.html PASSED: html4: tests/data/lang-pt-BR-article-test-html4.html PASSED: html5: tests/data/lang-pt-BR-article-test-html5.html 39: Brazilian Portuguese language file (book) SOURCE: asciidoc: tests/data/lang-pt-BR-test.txt PASSED: docbook: tests/data/lang-pt-BR-book-test-docbook.xml PASSED: docbook5: tests/data/lang-pt-BR-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-pt-BR-book-test-xhtml11.html PASSED: html4: tests/data/lang-pt-BR-book-test-html4.html PASSED: html5: tests/data/lang-pt-BR-book-test-html5.html 40: Brazilian Portuguese language file (manpage) SOURCE: asciidoc: tests/data/lang-pt-BR-man-test.txt PASSED: docbook: tests/data/lang-pt-BR-man-test-docbook.xml PASSED: docbook5: tests/data/lang-pt-BR-man-test-docbook5.xml 41: Ukrainian language file (article) SOURCE: asciidoc: tests/data/lang-uk-test.txt PASSED: docbook: tests/data/lang-uk-article-test-docbook.xml PASSED: docbook5: tests/data/lang-uk-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-uk-article-test-xhtml11.html PASSED: html4: tests/data/lang-uk-article-test-html4.html PASSED: html5: tests/data/lang-uk-article-test-html5.html 42: Ukrainian language file (book) SOURCE: asciidoc: tests/data/lang-uk-test.txt PASSED: docbook: tests/data/lang-uk-book-test-docbook.xml PASSED: docbook5: tests/data/lang-uk-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-uk-book-test-xhtml11.html PASSED: html4: tests/data/lang-uk-book-test-html4.html PASSED: html5: tests/data/lang-uk-book-test-html5.html 43: Ukrainian language file (manpage) SOURCE: asciidoc: tests/data/lang-uk-man-test.txt PASSED: docbook: tests/data/lang-uk-man-test-docbook.xml PASSED: docbook5: tests/data/lang-uk-man-test-docbook5.xml 44: Dutch language file (article) SOURCE: asciidoc: tests/data/lang-nl-test.txt PASSED: docbook: tests/data/lang-nl-article-test-docbook.xml PASSED: docbook5: tests/data/lang-nl-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-nl-article-test-xhtml11.html PASSED: html4: tests/data/lang-nl-article-test-html4.html PASSED: html5: tests/data/lang-nl-article-test-html5.html 45: Dutch language file (book) SOURCE: asciidoc: tests/data/lang-nl-test.txt PASSED: docbook: tests/data/lang-nl-book-test-docbook.xml PASSED: docbook5: tests/data/lang-nl-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-nl-book-test-xhtml11.html PASSED: html4: tests/data/lang-nl-book-test-html4.html PASSED: html5: tests/data/lang-nl-book-test-html5.html 46: Dutch language file (manpage) SOURCE: asciidoc: tests/data/lang-nl-man-test.txt PASSED: docbook: tests/data/lang-nl-man-test-docbook.xml PASSED: docbook5: tests/data/lang-nl-man-test-docbook5.xml 47: Italian language file (article) SOURCE: asciidoc: tests/data/lang-it-test.txt PASSED: docbook: tests/data/lang-it-article-test-docbook.xml PASSED: docbook5: tests/data/lang-it-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-it-article-test-xhtml11.html PASSED: html4: tests/data/lang-it-article-test-html4.html PASSED: html5: tests/data/lang-it-article-test-html5.html 48: Italian language file (book) SOURCE: asciidoc: tests/data/lang-it-test.txt PASSED: docbook: tests/data/lang-it-book-test-docbook.xml PASSED: docbook5: tests/data/lang-it-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-it-book-test-xhtml11.html PASSED: html4: tests/data/lang-it-book-test-html4.html PASSED: html5: tests/data/lang-it-book-test-html5.html 49: Italian language file (manpage) SOURCE: asciidoc: tests/data/lang-it-man-test.txt PASSED: docbook: tests/data/lang-it-man-test-docbook.xml PASSED: docbook5: tests/data/lang-it-man-test-docbook5.xml 50: Czech language file (article) SOURCE: asciidoc: tests/data/lang-cs-test.txt PASSED: docbook: tests/data/lang-cs-article-test-docbook.xml PASSED: docbook5: tests/data/lang-cs-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-cs-article-test-xhtml11.html PASSED: html4: tests/data/lang-cs-article-test-html4.html PASSED: html5: tests/data/lang-cs-article-test-html5.html 51: Czech language file (book) SOURCE: asciidoc: tests/data/lang-cs-test.txt PASSED: docbook: tests/data/lang-cs-book-test-docbook.xml PASSED: docbook5: tests/data/lang-cs-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-cs-book-test-xhtml11.html PASSED: html4: tests/data/lang-cs-book-test-html4.html PASSED: html5: tests/data/lang-cs-book-test-html5.html 52: Czech language file (manpage) SOURCE: asciidoc: tests/data/lang-cs-man-test.txt PASSED: docbook: tests/data/lang-cs-man-test-docbook.xml PASSED: docbook5: tests/data/lang-cs-man-test-docbook5.xml 53: Romanian language file (article) SOURCE: asciidoc: tests/data/lang-ro-test.txt PASSED: docbook: tests/data/lang-ro-article-test-docbook.xml PASSED: docbook5: tests/data/lang-ro-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-ro-article-test-xhtml11.html PASSED: html4: tests/data/lang-ro-article-test-html4.html PASSED: html5: tests/data/lang-ro-article-test-html5.html 54: Romanian language file (book) SOURCE: asciidoc: tests/data/lang-ro-test.txt PASSED: docbook: tests/data/lang-ro-book-test-docbook.xml PASSED: docbook5: tests/data/lang-ro-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-ro-book-test-xhtml11.html PASSED: html4: tests/data/lang-ro-book-test-html4.html PASSED: html5: tests/data/lang-ro-book-test-html5.html 55: Romanian language file (manpage) SOURCE: asciidoc: tests/data/lang-ro-man-test.txt PASSED: docbook: tests/data/lang-ro-man-test-docbook.xml asciidoc: WARNING: utf8-bom-test.txt: line 7: maximum include depth exceeded asciidoc: WARNING: utf8-bom-test.txt: line 7: maximum include depth exceeded asciidoc: WARNING: utf8-bom-test.txt: line 7: maximum include depth exceeded asciidoc: WARNING: utf8-bom-test.txt: line 7: maximum include depth exceeded asciidoc: WARNING: utf8-bom-test.txt: line 7: maximum include depth exceeded /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: dummy_file.py: line 15: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: dummy_file.py: line 15: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: dummy_file.py: line 470: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: dummy_file.py: line 470: no output from filter: source-highlight --gen-version -f xhtml -s python /usr/bin/source-highlight: error while loading shared libraries: libboost_regex.so.1.76.0: cannot open shared object file: No such file or directory asciidoc: WARNING: dummy_file.py: line 68: filter non-zero exit code: source-highlight --gen-version -f xhtml -s python: returned 127 asciidoc: WARNING: dummy_file.py: line 68: no output from filter: source-highlight --gen-version -f xhtml -s python +++ tests/data/include-lines-html5.html --- got -
+
+
import difflib

+import io

+import os

+from pathlib import Path

+import re

+import shutil

+import sys

+

+sys.path.append(str(Path(__file__).resolve().parent.parent))

+from asciidoc import asciidoc  # noqa: E402
@@ -745 +758,102 @@ -
+
+
def iif(condition, iftrue, iffalse=None):

+    """

+    Immediate if c.f. ternary ?: operator.

+    False value defaults to '' if the true value is a string.

+    False value defaults to 0 if the true value is a number.

+    """

+    if iffalse is None:

+        if isinstance(iftrue, str):

+            iffalse = ''

+        if type(iftrue) in (int, float):

+            iffalse = 0

+    if condition:

+        return iftrue

+    else:

+        return iffalse

+

+def normalize_data(lines):

+    """

+    Strip comments and trailing blank strings from lines.

+    """

+    result = [s for s in lines if not s.startswith('#')]

+    strip_end(result)

+    return result

+

+class AsciiDocTest(object):

+

+if __name__ == '__main__':

+    # guarantee a stable timestamp matching the test fixtures

+    os.environ['SOURCE_DATE_EPOCH'] = '1038184662'

+    # Process command line options.

+    from argparse import ArgumentParser

+    parser = ArgumentParser(

+        description='Run AsciiDoc conformance tests specified in configuration'

+        'FILE.'

+    )

+    msg = 'Use configuration file CONF_FILE (default configuration file is '\

+        'testasciidoc.conf in testasciidoc.py directory)'

+    parser.add_argument(

+        '-v',

+        '--version',

+        action='version',

+        version='%(prog)s {}'.format(__version__)

+    )

+    parser.add_argument('-f', '--conf-file', help=msg)

+

+    subparsers = parser.add_subparsers(metavar='command', dest='command')

+    subparsers.required = True

+

+    subparsers.add_parser('list', help='List tests')

+

+    options = ArgumentParser(add_help=False)

+    options.add_argument('-n', '--number', type=int, help='Test number to run')

+    options.add_argument('-b', '--backend', type=str, help='Backend to run')

+

+    subparsers.add_parser('run', help='Execute tests', parents=[options])

+

+    subparser = subparsers.add_parser(

+        'update',

+        help='Regenerate and update test data',

+        parents=[options]

+    )

+    subparser.add_argument(

+        '--force',

+        action='store_true',

+        help='Update all test data overwriting existing data'

+    )

+

+    args = parser.parse_args()

+

+    conffile = os.path.join(os.path.dirname(sys.argv[0]), 'testasciidoc.conf')

+    force = 'force' in args and args.force is True

+    if args.conf_file is not None:

+        conffile = args.conf_file

+    if not os.path.isfile(conffile):

+        message('missing CONF_FILE: %s' % conffile)

+        sys.exit(1)

+    tests = AsciiDocTests(conffile)

+    cmd = args.command

+    number = None

+    backend = None

+    if 'number' in args:

+        number = args.number

+    if 'backend' in args:

+        backend = args.backend

+    if backend and backend not in BACKENDS:

+        message('illegal BACKEND: {:s}'.format(backend))

+        sys.exit(1)

+    if number is not None and (number < 1 or number > len(tests.tests)):

+        message('illegal test NUMBER: {:d}'.format(number))

+        sys.exit(1)

+    if cmd == 'run':

+        tests.run(number, backend)

+        if tests.failed:

+            sys.exit(1)

+    elif cmd == 'update':

+        tests.update(number, backend, force=force)

+    elif cmd == 'list':

+        tests.list()
@@ -748 +862,28 @@ -
+
+
def iif(condition, iftrue, iffalse=None):

+    """

+    Immediate if c.f. ternary ?: operator.

+    False value defaults to '' if the true value is a string.

+    False value defaults to 0 if the true value is a number.

+    """

+    if iffalse is None:

+        if isinstance(iftrue, str):

+            iffalse = ''

+        if type(iftrue) in (int, float):

+            iffalse = 0

+    if condition:

+        return iftrue

+    else:

+        return iffalse

+

+def normalize_data(lines):

+    """

+    Strip comments and trailing blank strings from lines.

+    """

+    result = [s for s in lines if not s.startswith('#')]

+    strip_end(result)

+    return result

+
PASSED: docbook5: tests/data/lang-ro-man-test-docbook5.xml 56: Japanese language file (article) SOURCE: asciidoc: tests/data/lang-ja-test.txt PASSED: docbook: tests/data/lang-ja-article-test-docbook.xml PASSED: docbook5: tests/data/lang-ja-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-ja-article-test-xhtml11.html PASSED: html4: tests/data/lang-ja-article-test-html4.html PASSED: html5: tests/data/lang-ja-article-test-html5.html 57: Japanese language file (book) SOURCE: asciidoc: tests/data/lang-ja-test.txt PASSED: docbook: tests/data/lang-ja-book-test-docbook.xml PASSED: docbook5: tests/data/lang-ja-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-ja-book-test-xhtml11.html PASSED: html4: tests/data/lang-ja-book-test-html4.html PASSED: html5: tests/data/lang-ja-book-test-html5.html 58: Japanese language file (manpage) SOURCE: asciidoc: tests/data/lang-ja-man-test.txt PASSED: docbook: tests/data/lang-ja-man-test-docbook.xml PASSED: docbook5: tests/data/lang-ja-man-test-docbook5.xml 59: RCS $Id$ marker test SOURCE: asciidoc: tests/data/rcs-id-marker-test.txt PASSED: html4: tests/data/rcs-id-marker-test-html4.html PASSED: xhtml11: tests/data/rcs-id-marker-test-xhtml11.html PASSED: docbook: tests/data/rcs-id-marker-test-docbook.xml PASSED: docbook5: tests/data/rcs-id-marker-test-docbook5.xml PASSED: html5: tests/data/rcs-id-marker-test-html5.html 60: UTF-8 BOM test SOURCE: asciidoc: tests/data/utf8-bom-test.txt PASSED: html4: tests/data/utf8-bom-test-html4.html PASSED: xhtml11: tests/data/utf8-bom-test-xhtml11.html PASSED: docbook: tests/data/utf8-bom-test-docbook.xml PASSED: docbook5: tests/data/utf8-bom-test-docbook5.xml PASSED: html5: tests/data/utf8-bom-test-html5.html 61: Deprecated quote attributes SOURCE: asciidoc: tests/data/deprecated-quotes.txt PASSED: html4: tests/data/deprecated-quotes-html4.html PASSED: xhtml11: tests/data/deprecated-quotes-xhtml11.html PASSED: docbook: tests/data/deprecated-quotes-docbook.xml PASSED: docbook5: tests/data/deprecated-quotes-docbook5.xml PASSED: html5: tests/data/deprecated-quotes-html5.html 62: Swedish language file (article) SOURCE: asciidoc: tests/data/lang-sv-test.txt PASSED: docbook: tests/data/lang-sv-article-test-docbook.xml PASSED: docbook5: tests/data/lang-sv-article-test-docbook5.xml PASSED: xhtml11: tests/data/lang-sv-article-test-xhtml11.html PASSED: html4: tests/data/lang-sv-article-test-html4.html PASSED: html5: tests/data/lang-sv-article-test-html5.html 63: Swedish language file (book) SOURCE: asciidoc: tests/data/lang-sv-test.txt PASSED: docbook: tests/data/lang-sv-book-test-docbook.xml PASSED: docbook5: tests/data/lang-sv-book-test-docbook5.xml PASSED: xhtml11: tests/data/lang-sv-book-test-xhtml11.html PASSED: html4: tests/data/lang-sv-book-test-html4.html PASSED: html5: tests/data/lang-sv-book-test-html5.html 64: Swedish language file (manpage) SOURCE: asciidoc: tests/data/lang-sv-man-test.txt PASSED: docbook: tests/data/lang-sv-man-test-docbook.xml PASSED: docbook5: tests/data/lang-sv-man-test-docbook5.xml 65: Last Updated field not displayed in HTML backends SOURCE: asciidoc: tests/data/lang-en-test.txt PASSED: xhtml11: tests/data/lang-en-no-last-updated-test-xhtml11.html PASSED: html4: tests/data/lang-en-no-last-updated-test-html4.html PASSED: html5: tests/data/lang-en-no-last-updated-test-html5.html 66: Last Updated field displays revision date SOURCE: asciidoc: tests/data/lang-en-test.txt PASSED: xhtml11: tests/data/lang-en-last-updated-is-revdate-test-xhtml11.html PASSED: html4: tests/data/lang-en-last-updated-is-revdate-test-html4.html PASSED: html5: tests/data/lang-en-last-updated-is-revdate-test-html5.html 68: Newline Tests (Default With DOS) SOURCE: asciidoc: tests/data/newline.txt PASSED: html5: tests/data/newline-dos-html5.html 69: Newline Tests (Override To UNIX) SOURCE: asciidoc: tests/data/newline.txt PASSED: html5: tests/data/newline-unix-html5.html 70: Newline Tests (Override To MAC) SOURCE: asciidoc: tests/data/newline.txt PASSED: html5: tests/data/newline-mac-html5.html 71: Include Line Ranges SOURCE: asciidoc: tests/data/include-lines-test.txt FAILED: html5: tests/data/include-lines-html5.html TOTAL PASSED: 251 TOTAL FAILED: 14 make: *** [Makefile:154: test] Error 1 ==> ERROR: A failure occurred in check().  Aborting...