]> andersk Git - openssh.git/blobdiff - regress/stderr-after-eof.sh
- dtucker@cvs.openbsd.org 2008/06/10 15:21:41
[openssh.git] / regress / stderr-after-eof.sh
index bebd700bf0cd4d80265e3eef0297ab988863e453..05a5ea56d0bc1e00817dc4fd7b04b5208b87def5 100644 (file)
@@ -7,13 +7,23 @@ DATA=/etc/motd
 DATA=${OBJ}/data
 COPY=${OBJ}/copy
 
-MD5=md5sum
+if have_prog md5sum; then
+       CHECKSUM=md5sum
+elif have_prog openssl; then
+       CHECKSUM="openssl md5"
+elif have_prog cksum; then
+       CHECKSUM=cksum
+elif have_prog sum; then
+       CHECKSUM=sum
+else
+       fatal "No checksum program available, aborting $tid test"
+fi
 
 # setup data
 rm -f ${DATA} ${COPY}
 cp /dev/null ${DATA}
 for i in 1 2 3 4 5 6; do
-       (date;echo $i) | $MD5 >> ${DATA}
+       (date;echo $i) | $CHECKSUM >> ${DATA}
 done
 
 ${SSH} -2 -F $OBJ/ssh_proxy otherhost \
This page took 0.056383 seconds and 4 git commands to generate.