Follow-up Comment #3, bug #58165 (project groff): Subject: test-suite: "nroff -V ..." fails for other devices than "ascii"
Sorry, I too often seem to neglect to provide relevant data. I sometimes post findings before I test myself the matter further. So you could wait for me providing more data when you ask for it. 1) First part of the test in the build directory: # Ensure a predictable character encoding. export LC_ALL=C # Ensure a predictable command search path. GROFF_RUNTIME="${GROFF_BIN_PATH=/usr/local/bin}:" nroff="${abs_top_builddir:-.}/nroff" echo "testing 'nroff -V'" >&2 expected="PATH=$GROFF_RUNTIME$PATH groff -Tascii -mtty-char" actual=$("$nroff" -V) diff -u <(echo "$expected") <(echo "$actual") #### Result: testing 'nroff -V' --- /dev/fd/63 2020-04-13 01:11:32.936490725 +0000 +++ /dev/fd/62 2020-04-13 01:11:32.936490725 +0000 @@ -1 +1 @@ -PATH=/usr/local/bin:/home/bg/bin:/home/bg/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/sbin groff -Tascii -mtty-char +PATH=/usr/local/bin:/home/bg/bin:/home/bg/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/sbin groff -Tlatin1 -mtty-char #### Comment: Added code to get the version of the nroff and the groff. It was at first the version from Debian in /usr/bin/. After changes, nroff was the latest in my build directory. I do not install the software after each compilation. My locale: LANG=is_IS.iso88591 LANGUAGE= LC_CTYPE="is_IS.iso88591" LC_NUMERIC="is_IS.iso88591" LC_TIME="is_IS.iso88591" LC_COLLATE="is_IS.iso88591" LC_MONETARY="is_IS.iso88591" LC_MESSAGES="is_IS.iso88591" LC_PAPER="is_IS.iso88591" LC_NAME="is_IS.iso88591" LC_ADDRESS="is_IS.iso88591" LC_TELEPHONE="is_IS.iso88591" LC_MEASUREMENT="is_IS.iso88591" LC_IDENTIFICATION="is_IS.iso88591" LC_ALL= My charmap: ISO-8859-1 The make target "check" is not the same as the GNU standard (Debian version is out of date) mentions: 'check' Perform self-tests (if any). The user must build the program before running the tests, but need not install the program; you should write the self-tests so that they work when the program is built but not installed. There is also a "installcheck" named in the standard, but it is empty in the Makefile of groff. Suggestions: Add the version of the used commands to the output of the tests. Make "make check" work with the compiled versions in the build directory. N.B. Neither pre- nor post-processors are shown in the output of "nroff -V ...". I expect that the same option in nroff and groff mean the same. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?58165> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/