summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-05-17 19:17:58 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-05-17 19:17:58 +1000
commit5f1a89a3b67264f4aa83e057cd4f74fd60b9ffa4 (patch)
tree8b6963a0fb72da87ddbd66eb882a51ae313d226e /regress
parent96457a54d05dea81f34ecb4e059d2f8b98382b85 (diff)
- (dtucker) [regress/integrity.sh regress/krl.sh regress/test-exec.sh]
Move the jot helper function to portable-specific part of test-exec.sh.
Diffstat (limited to 'regress')
-rw-r--r--regress/integrity.sh4
-rw-r--r--regress/krl.sh4
-rw-r--r--regress/test-exec.sh6
3 files changed, 6 insertions, 8 deletions
diff --git a/regress/integrity.sh b/regress/integrity.sh
index 982eced21..1d17fe10a 100644
--- a/regress/integrity.sh
+++ b/regress/integrity.sh
@@ -29,10 +29,6 @@ echo "KexAlgorithms diffie-hellman-group14-sha1,diffie-hellman-group1-sha1" \
29# sshd-command for proxy (see test-exec.sh) 29# sshd-command for proxy (see test-exec.sh)
30cmd="$SUDO sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSHD_LOGFILE} -i -f $OBJ/sshd_proxy" 30cmd="$SUDO sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSHD_LOGFILE} -i -f $OBJ/sshd_proxy"
31 31
32jot() {
33 awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } exit }"
34}
35
36for m in $macs; do 32for m in $macs; do
37 trace "test $tid: mac $m" 33 trace "test $tid: mac $m"
38 elen=0 34 elen=0
diff --git a/regress/krl.sh b/regress/krl.sh
index 62a239c38..de9cc8764 100644
--- a/regress/krl.sh
+++ b/regress/krl.sh
@@ -39,10 +39,6 @@ serial: 799
39serial: 599-701 39serial: 599-701
40EOF 40EOF
41 41
42jot() {
43 awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } exit }"
44}
45
46# A specification that revokes some certificated by key ID. 42# A specification that revokes some certificated by key ID.
47touch $OBJ/revoked-keyid 43touch $OBJ/revoked-keyid
48for n in 1 2 3 4 10 15 30 50 `jot 500 300` 999 1000 1001 1002; do 44for n in 1 2 3 4 10 15 30 50 `jot 500 300` 999 1000 1001 1002; do
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index 599b8d9ba..910ed4f70 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -177,6 +177,7 @@ rm -f ${COPY}
177export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP 177export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP
178#echo $SSH $SSHD $SSHAGENT $SSHADD $SSHKEYGEN $SSHKEYSCAN $SFTP $SFTPSERVER $SCP 178#echo $SSH $SSHD $SSHAGENT $SSHADD $SSHKEYGEN $SSHKEYSCAN $SFTP $SFTPSERVER $SCP
179 179
180# Portable specific functions
180have_prog() 181have_prog()
181{ 182{
182 saved_IFS="$IFS" 183 saved_IFS="$IFS"
@@ -192,6 +193,11 @@ have_prog()
192 return 1 193 return 1
193} 194}
194 195
196jot() {
197 awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } exit }"
198}
199# End of portable specific functions
200
195cleanup () 201cleanup ()
196{ 202{
197 if [ -f $PIDFILE ]; then 203 if [ -f $PIDFILE ]; then