blob: 938b7d3de13de11ae32db70afc8f63834de59caa [file] [log] [blame]
Darren Tuckerd57a76e2003-06-18 22:32:51 +10001# $OpenBSD: Makefile,v 1.21 2003/04/02 12:21:13 markus Exp $
Damien Miller38cd4352002-05-01 13:17:33 +10002
Damien Miller8b9cde72003-01-22 17:53:16 +11003REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7
Damien Miller38cd4352002-05-01 13:17:33 +10004
Damien Miller8b9cde72003-01-22 17:53:16 +11005CLEANFILES+= t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2
Damien Miller38cd4352002-05-01 13:17:33 +10006
7LTESTS= connect \
8 proxy-connect \
9 connect-privsep \
10 proto-version \
11 proto-mismatch \
12 exit-status \
13 transfer \
Darren Tuckerd57a76e2003-06-18 22:32:51 +100014 rekey \
Damien Miller38cd4352002-05-01 13:17:33 +100015 stderr-data \
16 stderr-after-eof \
17 broken-pipe \
18 try-ciphers \
19 yes-head \
20 agent \
Damien Miller8b9cde72003-01-22 17:53:16 +110021 agent-getpeereid \
22 agent-timeout \
23 agent-ptrace \
Damien Miller38cd4352002-05-01 13:17:33 +100024 keyscan \
Damien Miller8b9cde72003-01-22 17:53:16 +110025 keygen-change \
Damien Miller38cd4352002-05-01 13:17:33 +100026 sftp \
Damien Miller8b9cde72003-01-22 17:53:16 +110027 sftp-cmds \
28 sftp-batch \
Damien Miller38cd4352002-05-01 13:17:33 +100029 forwarding
30
31USER!= id -un
32CLEANFILES+= authorized_keys_${USER} known_hosts pidfile \
33 ssh_config ssh_proxy sshd_config sshd_proxy \
34 rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \
35 rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \
36 ls.copy
37
38#LTESTS+= ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp
39
40t1:
41 ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv
42
43t2:
44 cat ${.CURDIR}/rsa_openssh.prv > t2.out
45 chmod 600 t2.out
46 ssh-keygen -yf t2.out | diff - ${.CURDIR}/rsa_openssh.pub
47
48t3:
49 ssh-keygen -ef ${.CURDIR}/rsa_openssh.pub |\
50 ssh-keygen -if /dev/stdin |\
51 diff - ${.CURDIR}/rsa_openssh.pub
52
53t4:
54 ssh-keygen -lf ${.CURDIR}/rsa_openssh.pub |\
55 awk '{print $$2}' | diff - ${.CURDIR}/t4.ok
56
57t5:
58 ssh-keygen -Bf ${.CURDIR}/rsa_openssh.pub |\
59 awk '{print $$2}' | diff - ${.CURDIR}/t5.ok
60
61t6:
62 ssh-keygen -if ${.CURDIR}/dsa_ssh2.prv > t6.out1
63 ssh-keygen -if ${.CURDIR}/dsa_ssh2.pub > t6.out2
64 chmod 600 t6.out1
65 ssh-keygen -yf t6.out1 | diff - t6.out2
66
67t7.out:
68 ssh-keygen -q -t rsa -N '' -f $@
69
70t7: t7.out
71 ssh-keygen -lf t7.out > /dev/null
72 ssh-keygen -Bf t7.out > /dev/null
73
74.for t in ${LTESTS}
Damien Miller8b9cde72003-01-22 17:53:16 +110075REGRESS_TARGETS+=t-${t}
Damien Miller38cd4352002-05-01 13:17:33 +100076t-${t}:
77 sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/${t}.sh
78.endfor
79
80.include "bsd.regress.mk"