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..ae9cf8d98 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 [ -x "`which md5sum 2>&1`" ]; then |
11 | CHECKSUM=md5sum | ||
12 | elif [ -x "`which openssl 2>&1`" ]; then | ||
13 | CHECKSUM="openssl md5" | ||
14 | elif [ -x "`which cksum 2>&1`" ]; then | ||
15 | CHECKSUM=cksum | ||
16 | elif [ -x "`which sum 2>&1`" ]; 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 \ |