groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 01/06: [tests]: Revise a test's setup.


From: G. Branden Robinson
Subject: [groff] 01/06: [tests]: Revise a test's setup.
Date: Thu, 11 Nov 2021 19:43:57 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit fa61c812e06e5a9de34a91b6adc52ad0e701cdb3
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Nov 11 08:30:37 2021 +1100

    [tests]: Revise a test's setup.
    
    * src/roff/groff/tests/fp_should_not_traverse_directories.sh: Revise
      search for device/font description directory to work in
      within-source-tree builds and (for now) with the approach used by
      Automake's "distcheck" target.
---
 ChangeLog                                                  | 9 +++++++++
 src/roff/groff/tests/fp_should_not_traverse_directories.sh | 7 ++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8bcd6cf..67ff121 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2021-11-11  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [tests]: Revise a test's setup.
+
+       * src/roff/groff/tests/fp_should_not_traverse_directories.sh:
+       Revise search for device/font description directory to work in
+       within-source-tree builds and (for now) with the approach used
+       by Automake's "distcheck" target.
+
 2021-11-10  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [tbl]: Accept `\&` as an empty table entry.
diff --git a/src/roff/groff/tests/fp_should_not_traverse_directories.sh 
b/src/roff/groff/tests/fp_should_not_traverse_directories.sh
index 2e2f454..d809b76 100755
--- a/src/roff/groff/tests/fp_should_not_traverse_directories.sh
+++ b/src/roff/groff/tests/fp_should_not_traverse_directories.sh
@@ -31,11 +31,12 @@ groff="${abs_top_builddir:-.}/test-groff"
 # might be getting built anyway.)  So we hunt around for our test
 # artifact directory in some common locations.
 font_dir=
-subdir=artifacts
+base=src/roff/groff/tests
+device=artifacts
 
-for base in . ../src/roff/groff/tests
+for buildroot in . .. ../..
 do
-    d=$base/$subdir
+    d=$buildroot/$base/$device
     if [ -d "$d" ]
     then
         font_dir=$d



reply via email to

[Prev in Thread] Current Thread [Next in Thread]