Deleted Added
full compact
Makefile (113908) Makefile (124208)
1# $OpenBSD: Makefile,v 1.20 2003/01/08 23:54:22 djm Exp $
1# $OpenBSD: Makefile,v 1.24 2003/07/03 08:24:13 markus Exp $
2
2
3REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7
3REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t-exec
4tests: $(REGRESS_TARGETS)
4
5
5CLEANFILES+= t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2
6clean:
7 for F in $(CLEANFILES); do rm -f $(OBJ)$$F; done
8distclean: clean
6
7LTESTS= connect \
8 proxy-connect \
9 connect-privsep \
10 proto-version \
11 proto-mismatch \
12 exit-status \
13 transfer \
9
10LTESTS= connect \
11 proxy-connect \
12 connect-privsep \
13 proto-version \
14 proto-mismatch \
15 exit-status \
16 transfer \
17 rekey \
14 stderr-data \
15 stderr-after-eof \
16 broken-pipe \
17 try-ciphers \
18 yes-head \
19 agent \
20 agent-getpeereid \
21 agent-timeout \
22 agent-ptrace \
23 keyscan \
24 keygen-change \
25 sftp \
26 sftp-cmds \
18 stderr-data \
19 stderr-after-eof \
20 broken-pipe \
21 try-ciphers \
22 yes-head \
23 agent \
24 agent-getpeereid \
25 agent-timeout \
26 agent-ptrace \
27 keyscan \
28 keygen-change \
29 sftp \
30 sftp-cmds \
31 sftp-badcmds \
27 sftp-batch \
32 sftp-batch \
33 reconfigure \
34 dynamic-forward \
28 forwarding
29
30USER!= id -un
35 forwarding
36
37USER!= id -un
31CLEANFILES+= authorized_keys_${USER} known_hosts pidfile \
38CLEANFILES= t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \
39 authorized_keys_${USER} known_hosts pidfile \
32 ssh_config ssh_proxy sshd_config sshd_proxy \
33 rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \
34 rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \
40 ssh_config ssh_proxy sshd_config sshd_proxy \
41 rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \
42 rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \
35 ls.copy
43 ls.copy remote_pid
36
44
37#LTESTS+= ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp
45#LTESTS += ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp
38
39t1:
40 ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv
41
42t2:
46
47t1:
48 ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv
49
50t2:
43 cat ${.CURDIR}/rsa_openssh.prv > t2.out
44 chmod 600 t2.out
45 ssh-keygen -yf t2.out | diff - ${.CURDIR}/rsa_openssh.pub
51 cat ${.CURDIR}/rsa_openssh.prv > $(OBJ)/t2.out
52 chmod 600 $(OBJ)/t2.out
53 ssh-keygen -yf $(OBJ)/t2.out | diff - ${.CURDIR}/rsa_openssh.pub
46
47t3:
54
55t3:
48 ssh-keygen -ef ${.CURDIR}/rsa_openssh.pub |\
49 ssh-keygen -if /dev/stdin |\
50 diff - ${.CURDIR}/rsa_openssh.pub
56 ssh-keygen -ef ${.CURDIR}/rsa_openssh.pub >$(OBJ)/rsa_secsh.pub
57 ssh-keygen -if $(OBJ)/rsa_secsh.pub | diff - ${.CURDIR}/rsa_openssh.pub
58 rm -f ${.CURDIR}/rsa_secsh.pub
51
52t4:
53 ssh-keygen -lf ${.CURDIR}/rsa_openssh.pub |\
54 awk '{print $$2}' | diff - ${.CURDIR}/t4.ok
55
56t5:
57 ssh-keygen -Bf ${.CURDIR}/rsa_openssh.pub |\
58 awk '{print $$2}' | diff - ${.CURDIR}/t5.ok
59
60t6:
59
60t4:
61 ssh-keygen -lf ${.CURDIR}/rsa_openssh.pub |\
62 awk '{print $$2}' | diff - ${.CURDIR}/t4.ok
63
64t5:
65 ssh-keygen -Bf ${.CURDIR}/rsa_openssh.pub |\
66 awk '{print $$2}' | diff - ${.CURDIR}/t5.ok
67
68t6:
61 ssh-keygen -if ${.CURDIR}/dsa_ssh2.prv > t6.out1
62 ssh-keygen -if ${.CURDIR}/dsa_ssh2.pub > t6.out2
63 chmod 600 t6.out1
64 ssh-keygen -yf t6.out1 | diff - t6.out2
69 ssh-keygen -if ${.CURDIR}/dsa_ssh2.prv > $(OBJ)/t6.out1
70 ssh-keygen -if ${.CURDIR}/dsa_ssh2.pub > $(OBJ)/t6.out2
71 chmod 600 $(OBJ)/t6.out1
72 ssh-keygen -yf $(OBJ)/t6.out1 | diff - $(OBJ)/t6.out2
65
73
66t7.out:
74$(OBJ)/t7.out:
67 ssh-keygen -q -t rsa -N '' -f $@
68
75 ssh-keygen -q -t rsa -N '' -f $@
76
69t7: t7.out
70 ssh-keygen -lf t7.out > /dev/null
71 ssh-keygen -Bf t7.out > /dev/null
77t7: $(OBJ)/t7.out
78 ssh-keygen -lf $(OBJ)/t7.out > /dev/null
79 ssh-keygen -Bf $(OBJ)/t7.out > /dev/null
72
80
73.for t in ${LTESTS}
74REGRESS_TARGETS+=t-${t}
75t-${t}:
76 sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/${t}.sh
77.endfor
78
79.include "bsd.regress.mk"
81t-exec: ${LTESTS:=.sh}
82 @if [ "x$?" = "x" ]; then exit 0; fi; \
83 for TEST in ""$?; do \
84 echo "run test $${TEST}" ... 1>&2; \
85 (sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \
86 done