diff options
Diffstat (limited to 'regress/Makefile')
-rw-r--r-- | regress/Makefile | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/regress/Makefile b/regress/Makefile new file mode 100644 index 000000000..26224cd7d --- /dev/null +++ b/regress/Makefile | |||
@@ -0,0 +1,73 @@ | |||
1 | # $OpenBSD: Makefile,v 1.13 2002/04/01 22:15:08 markus Exp $ | ||
2 | |||
3 | REGRESSTARGETS= t1 t2 t3 t4 t5 t6 t7 | ||
4 | |||
5 | CLEANFILES+= t2.out t6.out1 t6.out2 t7.out t7.out.pub | ||
6 | |||
7 | LTESTS= 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 | |||
24 | USER!= id -un | ||
25 | CLEANFILES+= 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 | |||
33 | t1: | ||
34 | ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv | ||
35 | |||
36 | t2: | ||
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 | |||
41 | t3: | ||
42 | ssh-keygen -ef ${.CURDIR}/rsa_openssh.pub |\ | ||
43 | ssh-keygen -if /dev/stdin |\ | ||
44 | diff - ${.CURDIR}/rsa_openssh.pub | ||
45 | |||
46 | t4: | ||
47 | ssh-keygen -lf ${.CURDIR}/rsa_openssh.pub |\ | ||
48 | awk '{print $$2}' | diff - ${.CURDIR}/t4.ok | ||
49 | |||
50 | t5: | ||
51 | ssh-keygen -Bf ${.CURDIR}/rsa_openssh.pub |\ | ||
52 | awk '{print $$2}' | diff - ${.CURDIR}/t5.ok | ||
53 | |||
54 | t6: | ||
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 | |||
60 | t7.out: | ||
61 | ssh-keygen -q -t rsa -N '' -f $@ | ||
62 | |||
63 | t7: t7.out | ||
64 | ssh-keygen -lf t7.out > /dev/null | ||
65 | ssh-keygen -Bf t7.out > /dev/null | ||
66 | |||
67 | .for t in ${LTESTS} | ||
68 | REGRESSTARGETS+=t-${t} | ||
69 | t-${t}: | ||
70 | sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/${t}.sh | ||
71 | .endfor | ||
72 | |||
73 | .include "bsd.regress.mk" | ||