File: 003-progress

package info (click to toggle)
pv 0.9.6-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 688 kB
  • ctags: 241
  • sloc: ansic: 2,003; sh: 471; makefile: 51; perl: 23
file content (13 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# Check that the progress bar moves when data is coming in.

dd if=/dev/zero bs=100 count=1 2>/dev/null \
| $PROG -f -p -i 0.1 -L 500 >/dev/null 2>$TMP1

# There should be more than 2 different lines of output.
#
NUM=`tr '\r' '\n' < $TMP1 | sort | uniq -u | wc -l | tr -d ' '`
test $NUM -gt 2

# EOF