[Top][All Lists]

[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


                 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



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                           
-groups/1227/stderr     2021-01-11 23:36:45.000000000 -0500                   
@@ -0,0 +1,3 @@                                                               
+wc: illegal option -- L                                                      
+usage: wc [-clmw] [file ...]                                                 
oups/1227/test-source: line 25: test: -le: unary operator expected            
./tex.at:203: exit code was 2, expected 0                                     
1227. tex.at:200:  FAILED (tex.at:203)                                        


Reply to this item at:


  Message sent via Savannah

reply via email to

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