gbranden pushed a commit to branch master
in repository groff.

commit cf9bc4d285c309172c16fdc3aa2523dd857bf257
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jan 5 10:10:56 2026 -0600

    [groff]: Detect oversight in test script.
    
    * src/roff/groff/tests/using-diversion-as-character-works.sh: Fail hard
      (with status 99) if our test artifact isn't present.  Continues commit
      3f783091f0, 19 December 2024.
    
    Test fails at this commit (when building from distribution archive).
---
 ChangeLog                                           |  6 ++++++
 .../tests/using-diversion-as-character-works.sh     | 21 +++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 0346a6f60..5bac06dcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-01-05  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/tests/using-diversion-as-character-works.sh:
+       Fail hard (with status 99) if our test artifact isn't present.
+       Continues commit 3f783091f0, 19 December 2024.
+
 2026-01-02  Helmut Grohne <[email protected]>
 
        * src/libs/libgroff/libgroff.am (install_charset_data): Don't
diff --git a/src/roff/groff/tests/using-diversion-as-character-works.sh 
b/src/roff/groff/tests/using-diversion-as-character-works.sh
index e50d2ff41..c02203eee 100755
--- a/src/roff/groff/tests/using-diversion-as-character-works.sh
+++ b/src/roff/groff/tests/using-diversion-as-character-works.sh
@@ -20,6 +20,27 @@
 
 groff="${abs_top_builddir:-.}/test-groff"
 
+# Locate directory containing our test artifacts.
+artifact_dir=
+base=src/roff/groff/tests
+dir=artifacts
+
+for buildroot in . .. ../..
+do
+    d=$buildroot/$base/$dir
+    if [ -d "$d" ]
+    then
+        artifact_dir=$d
+        break
+    fi
+done
+
+# If we can't find it, we can't test.
+test -z "$artifact_dir" && exit 77 # skip
+
+# Ensure we _shipped_ the artifact.
+test -f "$artifact_dir"/small-gnu-head.png || exit 99 # fail hard
+
 # Regression-test Savannah #66587.  Based on a reproducer by Peter
 # Schaffter.
 

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to