]> andersk Git - openssh.git/blob - regress/Makefile
- (dtucker) OpenBSD CVS Sync (regress/)
[openssh.git] / regress / Makefile
1 #       $OpenBSD: Makefile,v 1.23 2003/06/12 15:43:32 markus Exp $
2
3 REGRESS_TARGETS=        t1 t2 t3 t4 t5 t6 t7
4
5 CLEANFILES+=    t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2
6
7 LTESTS=         connect \
8                 proxy-connect \
9                 connect-privsep \
10                 proto-version \
11                 proto-mismatch \
12                 exit-status \
13                 transfer \
14                 rekey \
15                 stderr-data \
16                 stderr-after-eof \
17                 broken-pipe \
18                 try-ciphers \
19                 yes-head \
20                 agent \
21                 agent-getpeereid \
22                 agent-timeout \
23                 agent-ptrace \
24                 keyscan \
25                 keygen-change \
26                 sftp \
27                 sftp-cmds \
28                 sftp-badcmds \
29                 sftp-batch \
30                 reconfigure \
31                 forwarding
32
33 USER!=          id -un
34 CLEANFILES+=    authorized_keys_${USER} known_hosts pidfile \
35                 ssh_config ssh_proxy sshd_config sshd_proxy \
36                 rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \
37                 rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \
38                 ls.copy
39
40 #LTESTS+=       ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp
41
42 t1:
43         ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv
44
45 t2:
46         cat ${.CURDIR}/rsa_openssh.prv > t2.out
47         chmod 600 t2.out
48         ssh-keygen -yf t2.out | diff - ${.CURDIR}/rsa_openssh.pub
49
50 t3:
51         ssh-keygen -ef ${.CURDIR}/rsa_openssh.pub |\
52                 ssh-keygen -if /dev/stdin |\
53                 diff - ${.CURDIR}/rsa_openssh.pub
54
55 t4:
56         ssh-keygen -lf ${.CURDIR}/rsa_openssh.pub |\
57                 awk '{print $$2}' | diff - ${.CURDIR}/t4.ok
58
59 t5:
60         ssh-keygen -Bf ${.CURDIR}/rsa_openssh.pub |\
61                 awk '{print $$2}' | diff - ${.CURDIR}/t5.ok
62
63 t6:
64         ssh-keygen -if ${.CURDIR}/dsa_ssh2.prv > t6.out1
65         ssh-keygen -if ${.CURDIR}/dsa_ssh2.pub > t6.out2
66         chmod 600 t6.out1
67         ssh-keygen -yf t6.out1 | diff - t6.out2
68
69 t7.out:
70         ssh-keygen -q -t rsa -N '' -f $@
71
72 t7: t7.out
73         ssh-keygen -lf t7.out > /dev/null
74         ssh-keygen -Bf t7.out > /dev/null
75
76 .for t in ${LTESTS}
77 REGRESS_TARGETS+=t-${t}
78 t-${t}:
79         sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/${t}.sh
80 .endfor
81
82 .include "bsd.regress.mk"
This page took 0.073891 seconds and 5 git commands to generate.