diff options
Diffstat (limited to 'regress/stderr-after-eof.sh')
-rw-r--r-- | regress/stderr-after-eof.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/regress/stderr-after-eof.sh b/regress/stderr-after-eof.sh index bebd700bf..05a5ea56d 100644 --- a/regress/stderr-after-eof.sh +++ b/regress/stderr-after-eof.sh | |||
@@ -7,13 +7,23 @@ DATA=/etc/motd | |||
7 | DATA=${OBJ}/data | 7 | DATA=${OBJ}/data |
8 | COPY=${OBJ}/copy | 8 | COPY=${OBJ}/copy |
9 | 9 | ||
10 | MD5=md5sum | 10 | if have_prog md5sum; then |
11 | CHECKSUM=md5sum | ||
12 | elif have_prog openssl; then | ||
13 | CHECKSUM="openssl md5" | ||
14 | elif have_prog cksum; then | ||
15 | CHECKSUM=cksum | ||
16 | elif have_prog sum; then | ||
17 | CHECKSUM=sum | ||
18 | else | ||
19 | fatal "No checksum program available, aborting $tid test" | ||
20 | fi | ||
11 | 21 | ||
12 | # setup data | 22 | # setup data |
13 | rm -f ${DATA} ${COPY} | 23 | rm -f ${DATA} ${COPY} |
14 | cp /dev/null ${DATA} | 24 | cp /dev/null ${DATA} |
15 | for i in 1 2 3 4 5 6; do | 25 | for i in 1 2 3 4 5 6; do |
16 | (date;echo $i) | $MD5 >> ${DATA} | 26 | (date;echo $i) | $CHECKSUM >> ${DATA} |
17 | done | 27 | done |
18 | 28 | ||
19 | ${SSH} -2 -F $OBJ/ssh_proxy otherhost \ | 29 | ${SSH} -2 -F $OBJ/ssh_proxy otherhost \ |