Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package asciidoc for openSUSE:Factory 
checked in at 2026-08-19 17:55:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/asciidoc (Old)
 and      /work/SRC/openSUSE:Factory/.asciidoc.new.1258 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "asciidoc"

Wed Aug 19 17:55:00 2026 rev:55 rq:1371643 version:10.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/asciidoc/asciidoc.changes        2024-09-23 
15:18:54.389192847 +0200
+++ /work/SRC/openSUSE:Factory/.asciidoc.new.1258/asciidoc.changes      
2026-08-19 17:55:02.440926946 +0200
@@ -1,0 +2,14 @@
+Tue Aug 18 05:09:17 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Fix build: align the testsuite fixtures with asciidoc.version.patch, which
+  removes the version from the generator meta tag while upstream renders the
+  expected output with that attribute set to the literal string "test"
+- Run spec-cleaner: use %{_libexecdir} instead of a hardcoded path in the
+  tests subpackage description
+
+-------------------------------------------------------------------
+Mon Aug 17 05:02:50 UTC 2026 - Zoltan Balogh <[email protected]>
+
+- Add asciidoc-tests subpackage with functional test for man page generation
+
+-------------------------------------------------------------------

New:
----
  asciidoc-test-generate-man

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ asciidoc.spec ++++++
--- /var/tmp/diff_new_pack.tekM67/_old  2026-08-19 17:55:03.385961087 +0200
+++ /var/tmp/diff_new_pack.tekM67/_new  2026-08-19 17:55:03.387961159 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package asciidoc
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,6 @@
 %if "%{flavor}" != ""
 %define name_suffix -%{flavor}
 %endif
-
 Name:           asciidoc%{?name_suffix}
 Version:        10.2.1
 Release:        0
@@ -28,6 +27,7 @@
 License:        GPL-2.0-or-later
 URL:            https://asciidoc-py.github.io/
 Source0:        
https://github.com/asciidoc-py/asciidoc-py/releases/download/%{version}/asciidoc-%{version}.tar.gz
+Source1:        asciidoc-test-generate-man
 Patch0:         asciidoc.version.patch
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  fdupes
@@ -60,7 +60,6 @@
 Summary:        Provide latex backend dependencies
 Requires:       %{name} = %{version}
 Requires:       dblatex
-Supplements:    (%{name} and dblatex)
 # some of them are actually required by dblatex, but it's easier to keep them 
all in here
 Requires:       texlive-metafont-bin
 Requires:       tex(8r.enc)
@@ -74,6 +73,7 @@
 Requires:       tex(upquote.sty)
 Requires:       tex(zptmcm7v.tfm)
 Requires:       tex(zptmcm7y.tfm)
+Supplements:    (%{name} and dblatex)
 
 %description latex-backend
 AsciiDoc can generate pdf from asciidoc format through dblatex. For that it 
needs quite some
@@ -81,6 +81,13 @@
 
 %prep
 %setup -q -n asciidoc-%{version}
+%patch -P 0 -p1
+# asciidoc.version.patch drops the {asciidoc-version} placeholder from the
+# generator meta tag, but upstream's fixtures were rendered by testasciidoc.py
+# with that attribute injected as the literal string "test" 
(tests/testasciidoc.py,
+# self.attributes = {'asciidoc-version': 'test'}). Align the expected output 
with
+# the patched templates, otherwise every HTML backend case mismatches.
+sed -i 's/content="AsciiDoc test"/content="AsciiDoc"/' tests/data/*.html
 # do not use env
 # Remove python shebang from sitelib files, this will remove the
 # automatic dependency on /usr/bin/python3
@@ -102,6 +109,10 @@
 
 %fdupes %{buildroot}%{python3_sitelib}/%{name}
 
+# Install functional test script (Source1)
+install -d %{buildroot}%{_libexecdir}/asciidoc
+install -m 0755 %{SOURCE1} 
%{buildroot}%{_libexecdir}/asciidoc/test-generate-man
+
 %check
 export PYTHONPATH="$PYTHONPATH:%{buildroot}%{python3_sitelib}"
 export PYTHONDONTWRITEBYTECODE=1
@@ -109,6 +120,19 @@
 python3 -m pytest --ignore=_build.python3 -v
 python3 tests/testasciidoc.py run
 
+%package tests
+Summary:        Functional tests for %{name}
+Requires:       %{name} = %{version}
+
+%description tests
+Functional tests for asciidoc that verify the man page generation pipeline 
works
+correctly on the installed package.
+Run with: %{_libexecdir}/asciidoc/test-generate-man
+
+%files tests
+%dir %{_libexecdir}/asciidoc
+%{_libexecdir}/asciidoc/test-generate-man
+
 %files
 %license COPYRIGHT LICENSE
 %doc README.md BUGS.adoc CHANGELOG.adoc

++++++ asciidoc-test-generate-man ++++++
#!/bin/sh
# Functional test: generate HTML output from AsciiDoc source and verify output
# Note: asciidoc 10.x no longer ships the manpage backend; tests HTML 
generation instead
set -eu
TMPDIR=$(mktemp -d)
trap 'rm -rf $TMPDIR' EXIT

cat > "$TMPDIR/example.adoc" << 'ADOCEOF'
= Test Document
Test Author
v1.0.0

== Introduction

This is a test document for validating asciidoc functionality.

=== Section

Content here.
ADOCEOF

# Test 1: internal doctest (validates all internal functions)
python3 -m asciidoc.asciidoc --doctest
echo "OK: asciidoc internal doctest passed"

# Test 2: generate HTML output and verify it contains expected content
asciidoc -b html5 -o "$TMPDIR/example.html" "$TMPDIR/example.adoc"
grep -q 'Test Document' "$TMPDIR/example.html" || { echo "FAIL: HTML output 
missing expected title"; exit 1; }
grep -q 'Introduction' "$TMPDIR/example.html" || { echo "FAIL: HTML output 
missing section"; exit 1; }
echo "OK: asciidoc HTML generation works"

Reply via email to