summaryrefslogtreecommitdiff
path: root/regress/stderr-after-eof.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/stderr-after-eof.sh')
-rw-r--r--regress/stderr-after-eof.sh14
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
7DATA=${OBJ}/data 7DATA=${OBJ}/data
8COPY=${OBJ}/copy 8COPY=${OBJ}/copy
9 9
10MD5=md5sum 10if have_prog md5sum; then
11 CHECKSUM=md5sum
12elif have_prog openssl; then
13 CHECKSUM="openssl md5"
14elif have_prog cksum; then
15 CHECKSUM=cksum
16elif have_prog sum; then
17 CHECKSUM=sum
18else
19 fatal "No checksum program available, aborting $tid test"
20fi
11 21
12# setup data 22# setup data
13rm -f ${DATA} ${COPY} 23rm -f ${DATA} ${COPY}
14cp /dev/null ${DATA} 24cp /dev/null ${DATA}
15for i in 1 2 3 4 5 6; do 25for i in 1 2 3 4 5 6; do
16 (date;echo $i) | $MD5 >> ${DATA} 26 (date;echo $i) | $CHECKSUM >> ${DATA}
17done 27done
18 28
19${SSH} -2 -F $OBJ/ssh_proxy otherhost \ 29${SSH} -2 -F $OBJ/ssh_proxy otherhost \