diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | regress/stderr-after-eof.sh | 14 | ||||
-rw-r--r-- | regress/test-exec.sh | 14 |
3 files changed, 17 insertions, 13 deletions
@@ -82,6 +82,8 @@ | |||
82 | Move the jot helper function to portable-specific part of test-exec.sh. | 82 | Move the jot helper function to portable-specific part of test-exec.sh. |
83 | - (dtucker) [regress/test-exec.sh] Move the portable-specific functions | 83 | - (dtucker) [regress/test-exec.sh] Move the portable-specific functions |
84 | together and add a couple of missing lines from openbsd. | 84 | together and add a couple of missing lines from openbsd. |
85 | - (dtucker) [regress/stderr-after-eof.sh regress/test-exec.sh] Move the md5 | ||
86 | helper function to the portable part of test-exec.sh. | ||
85 | 87 | ||
86 | 20130516 | 88 | 20130516 |
87 | - (djm) [contrib/ssh-copy-id] Fix bug that could cause "rm *" to be | 89 | - (djm) [contrib/ssh-copy-id] Fix bug that could cause "rm *" to be |
diff --git a/regress/stderr-after-eof.sh b/regress/stderr-after-eof.sh index 9072db282..218ac6b68 100644 --- a/regress/stderr-after-eof.sh +++ b/regress/stderr-after-eof.sh | |||
@@ -3,23 +3,11 @@ | |||
3 | 3 | ||
4 | tid="stderr data after eof" | 4 | tid="stderr data after eof" |
5 | 5 | ||
6 | if have_prog md5sum; then | ||
7 | CHECKSUM=md5sum | ||
8 | elif have_prog openssl; then | ||
9 | CHECKSUM="openssl md5" | ||
10 | elif have_prog cksum; then | ||
11 | CHECKSUM=cksum | ||
12 | elif have_prog sum; then | ||
13 | CHECKSUM=sum | ||
14 | else | ||
15 | fatal "No checksum program available, aborting $tid test" | ||
16 | fi | ||
17 | |||
18 | # setup data | 6 | # setup data |
19 | rm -f ${DATA} ${COPY} | 7 | rm -f ${DATA} ${COPY} |
20 | cp /dev/null ${DATA} | 8 | cp /dev/null ${DATA} |
21 | for i in 1 2 3 4 5 6; do | 9 | for i in 1 2 3 4 5 6; do |
22 | (date;echo $i) | $CHECKSUM >> ${DATA} | 10 | (date;echo $i) | md5 >> ${DATA} |
23 | done | 11 | done |
24 | 12 | ||
25 | ${SSH} -2 -F $OBJ/ssh_proxy otherhost \ | 13 | ${SSH} -2 -F $OBJ/ssh_proxy otherhost \ |
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 69e5042ba..d336e6193 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh | |||
@@ -207,6 +207,20 @@ config_defined () | |||
207 | done | 207 | done |
208 | egrep "^#define.*($str)" ${BUILDDIR}/config.h >/dev/null 2>&1 | 208 | egrep "^#define.*($str)" ${BUILDDIR}/config.h >/dev/null 2>&1 |
209 | } | 209 | } |
210 | |||
211 | md5 () { | ||
212 | if have_prog md5sum; then | ||
213 | md5sum | ||
214 | elif have_prog openssl; then | ||
215 | openssl md5 | ||
216 | elif have_prog cksum; then | ||
217 | cksum | ||
218 | elif have_prog sum; then | ||
219 | sum | ||
220 | else | ||
221 | wc -c | ||
222 | fi | ||
223 | } | ||
210 | # End of portable specific functions | 224 | # End of portable specific functions |
211 | 225 | ||
212 | # helper | 226 | # helper |