]> andersk Git - gssapi-openssh.git/blob - openssh/regress/Makefile
Re-import of OpenSSH 3.7.1p2 (Chase\!)
[gssapi-openssh.git] / openssh / regress / Makefile
1 #       $OpenBSD: Makefile,v 1.24 2003/07/03 08:24:13 markus Exp $
2
3 REGRESS_TARGETS=        t1 t2 t3 t4 t5 t6 t7 t-exec
4 tests:          $(REGRESS_TARGETS)
5
6 clean:
7         for F in $(CLEANFILES); do rm -f $(OBJ)$$F; done
8 distclean:      clean
9
10 LTESTS=         connect \
11                 proxy-connect \
12                 connect-privsep \
13                 proto-version \
14                 proto-mismatch \
15                 exit-status \
16                 transfer \
17                 rekey \
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 \
32                 sftp-batch \
33                 reconfigure \
34                 dynamic-forward \
35                 forwarding
36
37 USER!=          id -un
38 CLEANFILES=     t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \
39                 authorized_keys_${USER} known_hosts pidfile \
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 \
43                 ls.copy remote_pid
44
45 #LTESTS +=      ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp
46
47 t1:
48         ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv
49
50 t2:
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
54
55 t3:
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
59
60 t4:
61         ssh-keygen -lf ${.CURDIR}/rsa_openssh.pub |\
62                 awk '{print $$2}' | diff - ${.CURDIR}/t4.ok
63
64 t5:
65         ssh-keygen -Bf ${.CURDIR}/rsa_openssh.pub |\
66                 awk '{print $$2}' | diff - ${.CURDIR}/t5.ok
67
68 t6:
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
73
74 $(OBJ)/t7.out:
75         ssh-keygen -q -t rsa -N '' -f $@
76
77 t7: $(OBJ)/t7.out
78         ssh-keygen -lf $(OBJ)/t7.out > /dev/null
79         ssh-keygen -Bf $(OBJ)/t7.out > /dev/null
80
81 t-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
This page took 0.044343 seconds and 5 git commands to generate.