[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PSPP-BUG: [bug #59859] tex tests using `wc` on mac
From: |
Jeremy L |
Subject: |
PSPP-BUG: [bug #59859] tex tests using `wc` on mac |
Date: |
Mon, 11 Jan 2021 23:47:43 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?59859>
Summary: tex tests using `wc` on mac
Project: PSPP
Submitted by: snc
Submitted on: Tue 12 Jan 2021 04:47:41 AM UTC
Category: Compilation/Portability
Severity: 5 - Average
Status: None
Assigned to: None
Open/Closed: Open
Release: None
Discussion Lock: Any
Effort: 0.00
_______________________________________________________
Details:
The `wc` natively available on MacOS does not support `-L`.
One workaround for Mac is to add coreutils (which provides gwc) to
dependencies, however I'm curious if this is worth a revisit on the PSPP side
of things.
1227. tex.at:200: testing tex another example ...
./tex.at:202: pspp -O format=tex $abs_top_srcdir/examples/regress.sps
./tex.at:203: test $($GWC -L pspp.tex | awk '{print $1}') -le 80
--- /dev/null 2021-01-11 23:36:17.000000000 -0500
+++
/opt/local/var/macports/build/_Users_aeetes_macports-ports_math_pspp-devel/pspp-devel/work/pspp-1.5.2-g188de2/tests/testsuite.dir/at
-groups/1227/stderr 2021-01-11 23:36:45.000000000 -0500
@@ -0,0 +1,3 @@
+wc: illegal option -- L
+usage: wc [-clmw] [file ...]
+/opt/local/var/macports/build/_Users_aeetes_macports-ports_math_pspp-devel/pspp-devel/work/pspp-1.5.2-g188de2/tests/testsuite.dir/at-gr
oups/1227/test-source: line 25: test: -le: unary operator expected
stdout:
./tex.at:203: exit code was 2, expected 0
1227. tex.at:200: FAILED (tex.at:203)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59859>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- PSPP-BUG: [bug #59859] tex tests using `wc` on mac,
Jeremy L <=