summaryrefslogtreecommitdiff
path: root/regress/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'regress/Makefile')
-rw-r--r--regress/Makefile47
1 files changed, 38 insertions, 9 deletions
diff --git a/regress/Makefile b/regress/Makefile
index 3feb7a997..99a7d60f5 100644
--- a/regress/Makefile
+++ b/regress/Makefile
@@ -1,11 +1,14 @@
1# $OpenBSD: Makefile,v 1.70 2014/06/24 01:14:17 djm Exp $ 1# $OpenBSD: Makefile,v 1.78 2015/01/26 06:12:18 djm Exp $
2 2
3REGRESS_TARGETS= unit t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t-exec 3REGRESS_TARGETS= unit t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t-exec
4tests: $(REGRESS_TARGETS) 4tests: prep $(REGRESS_TARGETS)
5 5
6# Interop tests are not run by default 6# Interop tests are not run by default
7interop interop-tests: t-exec-interop 7interop interop-tests: t-exec-interop
8 8
9prep:
10 test "x${USE_VALGRIND}" = "x" || mkdir -p $(OBJ)/valgrind-out
11
9clean: 12clean:
10 for F in $(CLEANFILES); do rm -f $(OBJ)$$F; done 13 for F in $(CLEANFILES); do rm -f $(OBJ)$$F; done
11 test -z "${SUDO}" || ${SUDO} rm -f ${SUDO_CLEAN} 14 test -z "${SUDO}" || ${SUDO} rm -f ${SUDO_CLEAN}
@@ -64,7 +67,14 @@ LTESTS= connect \
64 keys-command \ 67 keys-command \
65 forward-control \ 68 forward-control \
66 integrity \ 69 integrity \
67 krl 70 krl \
71 multipubkey \
72 limit-keytype \
73 hostkey-agent \
74 keygen-knownhosts \
75 hostkey-rotate
76
77
68# dhgex \ 78# dhgex \
69 79
70INTEROP_TESTS= putty-transfer putty-ciphers putty-kex conch-ciphers 80INTEROP_TESTS= putty-transfer putty-ciphers putty-kex conch-ciphers
@@ -75,6 +85,7 @@ INTEROP_TESTS= putty-transfer putty-ciphers putty-kex conch-ciphers
75USER!= id -un 85USER!= id -un
76CLEANFILES= t2.out t3.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \ 86CLEANFILES= t2.out t3.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \
77 t8.out t8.out.pub t9.out t9.out.pub t10.out t10.out.pub \ 87 t8.out t8.out.pub t9.out t9.out.pub t10.out t10.out.pub \
88 t12.out t12.out.pub \
78 authorized_keys_${USER} known_hosts pidfile testdata \ 89 authorized_keys_${USER} known_hosts pidfile testdata \
79 ssh_config sshd_config.orig ssh_proxy sshd_config sshd_proxy \ 90 ssh_config sshd_config.orig ssh_proxy sshd_config sshd_proxy \
80 rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \ 91 rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \
@@ -91,7 +102,8 @@ CLEANFILES= t2.out t3.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \
91 regress.log failed-regress.log ssh-log-wrapper.sh \ 102 regress.log failed-regress.log ssh-log-wrapper.sh \
92 sftp-server.sh sftp-server.log sftp.log setuid-allowed \ 103 sftp-server.sh sftp-server.log sftp.log setuid-allowed \
93 data ed25519-agent ed25519-agent.pub key.ed25519-512 \ 104 data ed25519-agent ed25519-agent.pub key.ed25519-512 \
94 key.ed25519-512.pub 105 key.ed25519-512.pub netcat host_krl_* host_revoked_* \
106 kh.* user_*key* agent-key.* known_hosts.* hkr.*
95 107
96SUDO_CLEAN+= /var/run/testdata_${USER} /var/run/keycommand_${USER} 108SUDO_CLEAN+= /var/run/testdata_${USER} /var/run/keycommand_${USER}
97 109
@@ -119,7 +131,7 @@ t3:
119 ${TEST_SSH_SSHKEYGEN} -if $(OBJ)/t3.out | diff - ${.CURDIR}/rsa_openssh.pub 131 ${TEST_SSH_SSHKEYGEN} -if $(OBJ)/t3.out | diff - ${.CURDIR}/rsa_openssh.pub
120 132
121t4: 133t4:
122 ${TEST_SSH_SSHKEYGEN} -lf ${.CURDIR}/rsa_openssh.pub |\ 134 ${TEST_SSH_SSHKEYGEN} -E md5 -lf ${.CURDIR}/rsa_openssh.pub |\
123 awk '{print $$2}' | diff - ${.CURDIR}/t4.ok 135 awk '{print $$2}' | diff - ${.CURDIR}/t4.ok
124 136
125t5: 137t5:
@@ -164,6 +176,16 @@ t10: $(OBJ)/t10.out
164 ${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t10.out > /dev/null 176 ${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t10.out > /dev/null
165 ${TEST_SSH_SSHKEYGEN} -Bf $(OBJ)/t10.out > /dev/null 177 ${TEST_SSH_SSHKEYGEN} -Bf $(OBJ)/t10.out > /dev/null
166 178
179t11:
180 ${TEST_SSH_SSHKEYGEN} -E sha256 -lf ${.CURDIR}/rsa_openssh.pub |\
181 awk '{print $$2}' | diff - ${.CURDIR}/t11.ok
182
183t12.out:
184 ${TEST_SSH_SSHKEYGEN} -q -t ed25519 -N '' -C 'test-comment-1234' -f $(OBJ)/$@
185
186t12: t12.out
187 ${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t12.out.pub | grep test-comment-1234 >/dev/null
188
167t-exec: ${LTESTS:=.sh} 189t-exec: ${LTESTS:=.sh}
168 @if [ "x$?" = "x" ]; then exit 0; fi; \ 190 @if [ "x$?" = "x" ]; then exit 0; fi; \
169 for TEST in ""$?; do \ 191 for TEST in ""$?; do \
@@ -184,7 +206,14 @@ interop: ${INTEROP_TARGETS}
184# Unit tests, built by top-level Makefile 206# Unit tests, built by top-level Makefile
185unit: 207unit:
186 set -e ; if test -z "${SKIP_UNIT}" ; then \ 208 set -e ; if test -z "${SKIP_UNIT}" ; then \
187 ${.OBJDIR}/unittests/sshbuf/test_sshbuf ; \ 209 V="" ; \
188 ${.OBJDIR}/unittests/sshkey/test_sshkey \ 210 test "x${USE_VALGRIND}" = "x" || \
189 -d ${.CURDIR}//unittests/sshkey/testdata ; \ 211 V=${.CURDIR}/valgrind-unit.sh ; \
212 $$V ${.OBJDIR}/unittests/sshbuf/test_sshbuf ; \
213 $$V ${.OBJDIR}/unittests/sshkey/test_sshkey \
214 -d ${.CURDIR}/unittests/sshkey/testdata ; \
215 $$V ${.OBJDIR}/unittests/bitmap/test_bitmap ; \
216 $$V ${.OBJDIR}/unittests/kex/test_kex ; \
217 $$V ${.OBJDIR}/unittests/hostkeys/test_hostkeys \
218 -d ${.CURDIR}/unittests/hostkeys/testdata ; \
190 fi 219 fi