Files
pv/tests/008-bytes
T

11 lines
233 B
Bash

#!/bin/sh
#
# Check that the byte counter counts.
dd if=/dev/zero bs=100 count=1 2>/dev/null \
| LANG=C "${testSubject}" -f -b >/dev/null 2>"${workFile1}"
NUM=$(tr '\r' '\n' < "${workFile1}" | tr -d ' ')
test "$NUM" = "100B"
# EOF