blob: 26224cd7d8e62bdf56bb5de2602c464ea6720290 [file] [log] [blame]
Damien Miller38cd4352002-05-01 13:17:33 +10001# $OpenBSD: Makefile,v 1.13 2002/04/01 22:15:08 markus Exp $
2
3REGRESSTARGETS= t1 t2 t3 t4 t5 t6 t7
4
5CLEANFILES+= t2.out t6.out1 t6.out2 t7.out t7.out.pub
6
7LTESTS= connect \
8 proxy-connect \
9 connect-privsep \
10 proto-version \
11 proto-mismatch \
12 exit-status \
13 transfer \
14 stderr-data \
15 stderr-after-eof \
16 broken-pipe \
17 try-ciphers \
18 yes-head \
19 agent \
20 keyscan \
21 sftp \
22 forwarding
23
24USER!= id -un
25CLEANFILES+= authorized_keys_${USER} known_hosts pidfile \
26 ssh_config ssh_proxy sshd_config sshd_proxy \
27 rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \
28 rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \
29 ls.copy
30
31#LTESTS+= ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp
32
33t1:
34 ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv
35
36t2:
37 cat ${.CURDIR}/rsa_openssh.prv > t2.out
38 chmod 600 t2.out
39 ssh-keygen -yf t2.out | diff - ${.CURDIR}/rsa_openssh.pub
40
41t3:
42 ssh-keygen -ef ${.CURDIR}/rsa_openssh.pub |\
43 ssh-keygen -if /dev/stdin |\
44 diff - ${.CURDIR}/rsa_openssh.pub
45
46t4:
47 ssh-keygen -lf ${.CURDIR}/rsa_openssh.pub |\
48 awk '{print $$2}' | diff - ${.CURDIR}/t4.ok
49
50t5:
51 ssh-keygen -Bf ${.CURDIR}/rsa_openssh.pub |\
52 awk '{print $$2}' | diff - ${.CURDIR}/t5.ok
53
54t6:
55 ssh-keygen -if ${.CURDIR}/dsa_ssh2.prv > t6.out1
56 ssh-keygen -if ${.CURDIR}/dsa_ssh2.pub > t6.out2
57 chmod 600 t6.out1
58 ssh-keygen -yf t6.out1 | diff - t6.out2
59
60t7.out:
61 ssh-keygen -q -t rsa -N '' -f $@
62
63t7: t7.out
64 ssh-keygen -lf t7.out > /dev/null
65 ssh-keygen -Bf t7.out > /dev/null
66
67.for t in ${LTESTS}
68REGRESSTARGETS+=t-${t}
69t-${t}:
70 sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/${t}.sh
71.endfor
72
73.include "bsd.regress.mk"