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