AT_SETUP([binary and hexadecimal input (IB, PIB, and PIBHEX formats)])
AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > binhex-in.data])
-AT_CHECK([test `wc -c < binhex-in.data` -eq 131072], [0])
+AT_CHECK([wc -c < binhex-in.data | sed 's/[ ]//g'], [0], [131072
+])
AT_DATA([binhex-in.sps], [dnl
SET RIB=MSBFIRST.
SET ERRORS=NONE.
AT_SETUP([BCD input (P and PK formats)])
AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > bcd-in.data])
-AT_CHECK([test `wc -c < bcd-in.data` -eq 131072], [0])
+AT_CHECK([wc -c < bcd-in.data | sed 's/[ ]//g'], [0], [131072
+])
AT_DATA([bcd-in.sps], [dnl
SET ERRORS=NONE.
SET MXWARNS=10000000.
AT_SETUP([legacy input (N and Z formats)])
AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > legacy-in.data])
-AT_CHECK([test `wc -c < legacy-in.data` -eq 131072], [0])
+AT_CHECK([wc -c < legacy-in.data | sed 's/[ ]//g'], [0], [131072
+])
AT_DATA([legacy-in.sps], [dnl
SET ERRORS=NONE.
SET MXWARNS=10000000.