File: 001-interval

package info (click to toggle)
pv 1.1.4-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 608 kB
  • ctags: 193
  • sloc: ansic: 2,290; sh: 501; makefile: 51
file content (12 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# Check that the update interval can be set.

sleep 1 | $PROG -f -i 0.1 >/dev/null 2>$TMP1

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

# EOF