Path: csiph.com!tncsrv06.tnetconsulting.net!news.ripco.com!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Bjarni Ingi Gislason Newsgroups: gnu.groff.bug Subject: [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii" Date: Sun, 12 Apr 2020 22:13:29 -0400 (EDT) Lines: 110 Approved: bug-groff@gnu.org Message-ID: References: <20200412-203706.sv93188.8615@savannah.gnu.org> <20200412-220343.sv108747.17736@savannah.gnu.org> <20200412-221316.sv108747.84108@savannah.gnu.org> <20200413-021329.sv93188.98398@savannah.gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: usenet.stanford.edu 1586744014 5235 209.51.188.17 (13 Apr 2020 02:13:34 GMT) X-Complaints-To: action@cs.stanford.edu To: "G. Branden Robinson" , Bjarni Ingi Gislason , bug-groff@gnu.org Envelope-to: bug-groff@gnu.org X-PHP-Originating-Script: 1001:sendmail.php X-Savane-Server: savannah.gnu.org:443 [209.51.188.72] X-Savane-Project: groff X-Savane-Tracker: bugs X-Savane-Item-ID: 58165 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 X-Apparently-From: 31.209.211.187 (Savane authenticated user bjarniig) In-Reply-To: <20200412-221316.sv108747.84108@savannah.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.72 X-BeenThere: bug-groff@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Bug reports for the GNU version of nroff, troff et al" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20200413-021329.sv93188.98398@savannah.gnu.org> X-Mailman-Original-References: <20200412-203706.sv93188.8615@savannah.gnu.org> <20200412-220343.sv108747.17736@savannah.gnu.org> <20200412-221316.sv108747.84108@savannah.gnu.org> Xref: csiph.com gnu.groff.bug:1811 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: _______________________________________________ Message sent via Savannah https://savannah.gnu.org/