millert@openbsd.org@openbsd.org | 116b1b4 | 2017-10-24 19:33:32 +0000 | [diff] [blame] | 1 | # $OpenBSD: Makefile,v 1.96 2017/10/24 19:33:32 millert Exp $ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 2 | |
markus@openbsd.org | 27ca1a5 | 2015-01-12 20:13:27 +0000 | [diff] [blame] | 3 | REGRESS_TARGETS= unit t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t-exec |
Damien Miller | 9e1cfca | 2015-02-26 20:32:58 -0800 | [diff] [blame] | 4 | tests: prep $(REGRESS_TARGETS) |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 5 | |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 6 | # Interop tests are not run by default |
Damien Miller | 6642996 | 2008-03-13 12:05:40 +1100 | [diff] [blame] | 7 | interop interop-tests: t-exec-interop |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 8 | |
Damien Miller | 9e1cfca | 2015-02-26 20:32:58 -0800 | [diff] [blame] | 9 | prep: |
Damien Miller | 02973ad | 2015-02-28 08:05:27 -0800 | [diff] [blame] | 10 | test "x${USE_VALGRIND}" = "x" || mkdir -p $(OBJ)/valgrind-out |
Damien Miller | 9e1cfca | 2015-02-26 20:32:58 -0800 | [diff] [blame] | 11 | |
Darren Tucker | ebc3c13 | 2003-09-04 15:37:58 +1000 | [diff] [blame] | 12 | clean: |
Darren Tucker | b12d16f | 2003-09-14 11:40:35 +1000 | [diff] [blame] | 13 | for F in $(CLEANFILES); do rm -f $(OBJ)$$F; done |
Darren Tucker | f3568fc | 2013-05-17 09:35:26 +1000 | [diff] [blame] | 14 | test -z "${SUDO}" || ${SUDO} rm -f ${SUDO_CLEAN} |
Damien Miller | 9c8a427 | 2008-03-27 17:42:06 +1100 | [diff] [blame] | 15 | rm -rf $(OBJ).putty |
| 16 | |
Darren Tucker | ebc3c13 | 2003-09-04 15:37:58 +1000 | [diff] [blame] | 17 | distclean: clean |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 18 | |
| 19 | LTESTS= connect \ |
| 20 | proxy-connect \ |
| 21 | connect-privsep \ |
millert@openbsd.org@openbsd.org | 116b1b4 | 2017-10-24 19:33:32 +0000 | [diff] [blame] | 22 | connect-uri \ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 23 | proto-version \ |
| 24 | proto-mismatch \ |
| 25 | exit-status \ |
Darren Tucker | 4c37ef0 | 2004-06-16 20:08:56 +1000 | [diff] [blame] | 26 | envpass \ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 27 | transfer \ |
Darren Tucker | dc001a5 | 2003-10-08 17:47:19 +1000 | [diff] [blame] | 28 | banner \ |
Darren Tucker | d57a76e | 2003-06-18 22:32:51 +1000 | [diff] [blame] | 29 | rekey \ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 30 | stderr-data \ |
| 31 | stderr-after-eof \ |
| 32 | broken-pipe \ |
| 33 | try-ciphers \ |
| 34 | yes-head \ |
Darren Tucker | 017fd61 | 2004-02-29 20:30:17 +1100 | [diff] [blame] | 35 | login-timeout \ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 36 | agent \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 37 | agent-getpeereid \ |
| 38 | agent-timeout \ |
| 39 | agent-ptrace \ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 40 | keyscan \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 41 | keygen-change \ |
Damien Miller | b6bd3c2 | 2010-02-24 17:24:56 +1100 | [diff] [blame] | 42 | keygen-convert \ |
dtucker@openbsd.org | 44d82fc | 2016-09-12 02:25:46 +0000 | [diff] [blame] | 43 | keygen-moduli \ |
Damien Miller | 2e80cf2 | 2008-06-30 08:06:25 +1000 | [diff] [blame] | 44 | key-options \ |
Darren Tucker | 50433a9 | 2004-06-16 20:15:59 +1000 | [diff] [blame] | 45 | scp \ |
millert@openbsd.org@openbsd.org | 116b1b4 | 2017-10-24 19:33:32 +0000 | [diff] [blame] | 46 | scp-uri \ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 47 | sftp \ |
Darren Tucker | f3568fc | 2013-05-17 09:35:26 +1000 | [diff] [blame] | 48 | sftp-chroot \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 49 | sftp-cmds \ |
Darren Tucker | a4040f5 | 2003-06-18 22:35:11 +1000 | [diff] [blame] | 50 | sftp-badcmds \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 51 | sftp-batch \ |
Darren Tucker | 1c56ef6 | 2005-03-07 17:36:18 +1100 | [diff] [blame] | 52 | sftp-glob \ |
Damien Miller | a176e18 | 2013-10-18 09:05:41 +1100 | [diff] [blame] | 53 | sftp-perm \ |
millert@openbsd.org@openbsd.org | 116b1b4 | 2017-10-24 19:33:32 +0000 | [diff] [blame] | 54 | sftp-uri \ |
Darren Tucker | 50cea67 | 2003-06-18 22:45:34 +1000 | [diff] [blame] | 55 | reconfigure \ |
Darren Tucker | e2f2be7 | 2003-07-03 20:27:55 +1000 | [diff] [blame] | 56 | dynamic-forward \ |
Darren Tucker | e7d0583 | 2004-06-16 20:22:22 +1000 | [diff] [blame] | 57 | forwarding \ |
Darren Tucker | 977a9d2 | 2004-06-25 13:45:18 +1000 | [diff] [blame] | 58 | multiplex \ |
Darren Tucker | 124f58e | 2004-12-06 23:07:37 +1100 | [diff] [blame] | 59 | reexec \ |
Damien Miller | 7b1877c | 2006-07-24 15:31:41 +1000 | [diff] [blame] | 60 | brokenkeys \ |
dtucker@openbsd.org | e650889 | 2016-06-03 04:10:41 +0000 | [diff] [blame] | 61 | sshcfgparse \ |
dtucker@openbsd.org | 0ef1de7 | 2015-04-23 05:01:19 +0000 | [diff] [blame] | 62 | cfgparse \ |
Damien Miller | 7b1877c | 2006-07-24 15:31:41 +1000 | [diff] [blame] | 63 | cfgmatch \ |
Darren Tucker | 10f9242 | 2008-06-10 23:16:46 +1000 | [diff] [blame] | 64 | addrmatch \ |
Damien Miller | a5e5842 | 2008-03-12 23:58:05 +1100 | [diff] [blame] | 65 | localcommand \ |
Darren Tucker | 287b932 | 2009-10-07 10:31:56 +1100 | [diff] [blame] | 66 | forcecommand \ |
Damien Miller | 58ac6de | 2010-02-27 07:57:12 +1100 | [diff] [blame] | 67 | portnum \ |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 68 | keytype \ |
| 69 | kextype \ |
Damien Miller | 58ac6de | 2010-02-27 07:57:12 +1100 | [diff] [blame] | 70 | cert-hostkey \ |
Damien Miller | 7d06b00 | 2011-01-07 09:54:20 +1100 | [diff] [blame] | 71 | cert-userkey \ |
Damien Miller | 771c43c | 2012-12-03 10:12:13 +1100 | [diff] [blame] | 72 | host-expand \ |
Damien Miller | 999bd2d | 2012-12-03 10:13:39 +1100 | [diff] [blame] | 73 | keys-command \ |
Damien Miller | 1fb593a | 2012-12-12 10:54:37 +1100 | [diff] [blame] | 74 | forward-control \ |
Damien Miller | ebafebd | 2013-01-18 11:51:56 +1100 | [diff] [blame] | 75 | integrity \ |
djm@openbsd.org | 4bea0ab | 2014-12-22 08:06:03 +0000 | [diff] [blame] | 76 | krl \ |
djm@openbsd.org | 0920553 | 2015-01-13 07:49:49 +0000 | [diff] [blame] | 77 | multipubkey \ |
djm@openbsd.org | d59ec47 | 2015-01-18 19:47:55 +0000 | [diff] [blame] | 78 | limit-keytype \ |
djm@openbsd.org | 7947810 | 2015-01-18 22:00:18 +0000 | [diff] [blame] | 79 | hostkey-agent \ |
djm@openbsd.org | d411d39 | 2015-01-26 06:12:18 +0000 | [diff] [blame] | 80 | keygen-knownhosts \ |
djm@openbsd.org | 1364079 | 2015-05-21 06:44:25 +0000 | [diff] [blame] | 81 | hostkey-rotate \ |
djm@openbsd.org | e14ac43 | 2015-09-24 06:16:53 +0000 | [diff] [blame] | 82 | principals-command \ |
djm@openbsd.org | 35f22da | 2016-04-15 00:31:10 +0000 | [diff] [blame] | 83 | cert-file \ |
dtucker@openbsd.org | 0d2f884 | 2016-12-16 03:51:19 +0000 | [diff] [blame] | 84 | cfginclude \ |
djm@openbsd.org | c9cdef3 | 2017-06-24 06:35:24 +0000 | [diff] [blame] | 85 | allow-deny-users \ |
| 86 | authinfo |
djm@openbsd.org | 0920553 | 2015-01-13 07:49:49 +0000 | [diff] [blame] | 87 | |
| 88 | |
Damien Miller | 2476c31 | 2014-03-02 04:01:00 +1100 | [diff] [blame] | 89 | # dhgex \ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 90 | |
Damien Miller | 4268a13 | 2008-06-30 08:07:56 +1000 | [diff] [blame] | 91 | INTEROP_TESTS= putty-transfer putty-ciphers putty-kex conch-ciphers |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 92 | #INTEROP_TESTS+=ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp |
| 93 | |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 94 | #LTESTS= cipher-speed |
| 95 | |
Damien Miller | 6bdf70f | 2017-05-09 14:35:03 +1000 | [diff] [blame] | 96 | USERNAME= ${LOGNAME} |
natano@openbsd.org | 09f9978 | 2016-10-06 09:31:38 +0000 | [diff] [blame] | 97 | CLEANFILES= *.core actual agent-key.* authorized_keys_${USERNAME} \ |
| 98 | authorized_keys_${USERNAME}.* \ |
| 99 | authorized_principals_${USERNAME} \ |
djm@openbsd.org | b1d05aa | 2016-04-15 00:48:01 +0000 | [diff] [blame] | 100 | banner.in banner.out cert_host_key* cert_user_key* \ |
| 101 | copy.1 copy.2 data ed25519-agent ed25519-agent* \ |
Damien Miller | 6bdf70f | 2017-05-09 14:35:03 +1000 | [diff] [blame] | 102 | ed25519-agent.pub ed25519 ed25519.pub empty.in \ |
| 103 | expect failed-regress.log failed-ssh.log failed-sshd.log \ |
| 104 | hkr.* host.ed25519 host.rsa host.rsa1 host_* \ |
| 105 | host_ca_key* host_krl_* host_revoked_* key.* \ |
| 106 | key.dsa-* key.ecdsa-* key.ed25519-512 \ |
| 107 | key.ed25519-512.pub key.rsa-* keys-command-args kh.* \ |
| 108 | known_hosts known_hosts-cert known_hosts.* krl-* ls.copy \ |
| 109 | modpipe netcat no_identity_config \ |
| 110 | pidfile putty.rsa2 ready regress.log \ |
| 111 | remote_pid revoked-* rsa rsa-agent rsa-agent.pub rsa.pub \ |
| 112 | rsa1 rsa1-agent rsa1-agent.pub rsa1.pub rsa_ssh2_cr.prv \ |
djm@openbsd.org | b1d05aa | 2016-04-15 00:48:01 +0000 | [diff] [blame] | 113 | rsa_ssh2_crnl.prv scp-ssh-wrapper.exe \ |
| 114 | scp-ssh-wrapper.scp setuid-allowed sftp-server.log \ |
| 115 | sftp-server.sh sftp.log ssh-log-wrapper.sh ssh.log \ |
| 116 | ssh_config ssh_config.* ssh_proxy ssh_proxy_bak \ |
Damien Miller | 6bdf70f | 2017-05-09 14:35:03 +1000 | [diff] [blame] | 117 | ssh_proxy_envpass sshd.log sshd_config sshd_config_minimal \ |
| 118 | sshd_config.orig sshd_proxy sshd_proxy.* sshd_proxy_bak \ |
| 119 | sshd_proxy_orig t10.out t10.out.pub t12.out t12.out.pub \ |
| 120 | t2.out t3.out t6.out1 t6.out2 t7.out t7.out.pub \ |
| 121 | t8.out t8.out.pub t9.out t9.out.pub testdata \ |
| 122 | user_*key* user_ca* user_key* |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 123 | |
natano@openbsd.org | 09f9978 | 2016-10-06 09:31:38 +0000 | [diff] [blame] | 124 | SUDO_CLEAN+= /var/run/testdata_${USERNAME} /var/run/keycommand_${USERNAME} |
Darren Tucker | f3568fc | 2013-05-17 09:35:26 +1000 | [diff] [blame] | 125 | |
Damien Miller | 8f9492c | 2010-02-24 17:28:45 +1100 | [diff] [blame] | 126 | # Enable all malloc(3) randomisations and checks |
tb@openbsd.org | 7da751d | 2016-11-01 13:43:27 +0000 | [diff] [blame] | 127 | TEST_ENV= "MALLOC_OPTIONS=CFGJRSUX" |
Damien Miller | 8f9492c | 2010-02-24 17:28:45 +1100 | [diff] [blame] | 128 | |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 129 | TEST_SSH_SSHKEYGEN?=ssh-keygen |
| 130 | |
Damien Miller | b3764e1 | 2013-02-19 13:15:01 +1100 | [diff] [blame] | 131 | CPPFLAGS=-I.. |
| 132 | |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 133 | t1: |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 134 | ${TEST_SSH_SSHKEYGEN} -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 135 | tr '\n' '\r' <${.CURDIR}/rsa_ssh2.prv > ${.OBJDIR}/rsa_ssh2_cr.prv |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 136 | ${TEST_SSH_SSHKEYGEN} -if ${.OBJDIR}/rsa_ssh2_cr.prv | diff - ${.CURDIR}/rsa_openssh.prv |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 137 | awk '{print $$0 "\r"}' ${.CURDIR}/rsa_ssh2.prv > ${.OBJDIR}/rsa_ssh2_crnl.prv |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 138 | ${TEST_SSH_SSHKEYGEN} -if ${.OBJDIR}/rsa_ssh2_crnl.prv | diff - ${.CURDIR}/rsa_openssh.prv |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 139 | |
| 140 | t2: |
Tim Rice | 8b2157d | 2003-09-09 06:07:10 -0700 | [diff] [blame] | 141 | cat ${.CURDIR}/rsa_openssh.prv > $(OBJ)/t2.out |
| 142 | chmod 600 $(OBJ)/t2.out |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 143 | ${TEST_SSH_SSHKEYGEN} -yf $(OBJ)/t2.out | diff - ${.CURDIR}/rsa_openssh.pub |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 144 | |
| 145 | t3: |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 146 | ${TEST_SSH_SSHKEYGEN} -ef ${.CURDIR}/rsa_openssh.pub >$(OBJ)/t3.out |
| 147 | ${TEST_SSH_SSHKEYGEN} -if $(OBJ)/t3.out | diff - ${.CURDIR}/rsa_openssh.pub |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 148 | |
| 149 | t4: |
djm@openbsd.org | 1e30483 | 2014-12-22 02:15:52 +0000 | [diff] [blame] | 150 | ${TEST_SSH_SSHKEYGEN} -E md5 -lf ${.CURDIR}/rsa_openssh.pub |\ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 151 | awk '{print $$2}' | diff - ${.CURDIR}/t4.ok |
| 152 | |
| 153 | t5: |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 154 | ${TEST_SSH_SSHKEYGEN} -Bf ${.CURDIR}/rsa_openssh.pub |\ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 155 | awk '{print $$2}' | diff - ${.CURDIR}/t5.ok |
| 156 | |
| 157 | t6: |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 158 | ${TEST_SSH_SSHKEYGEN} -if ${.CURDIR}/dsa_ssh2.prv > $(OBJ)/t6.out1 |
| 159 | ${TEST_SSH_SSHKEYGEN} -if ${.CURDIR}/dsa_ssh2.pub > $(OBJ)/t6.out2 |
Tim Rice | 8b2157d | 2003-09-09 06:07:10 -0700 | [diff] [blame] | 160 | chmod 600 $(OBJ)/t6.out1 |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 161 | ${TEST_SSH_SSHKEYGEN} -yf $(OBJ)/t6.out1 | diff - $(OBJ)/t6.out2 |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 162 | |
Tim Rice | 8b2157d | 2003-09-09 06:07:10 -0700 | [diff] [blame] | 163 | $(OBJ)/t7.out: |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 164 | ${TEST_SSH_SSHKEYGEN} -q -t rsa -N '' -f $@ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 165 | |
Tim Rice | 8b2157d | 2003-09-09 06:07:10 -0700 | [diff] [blame] | 166 | t7: $(OBJ)/t7.out |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 167 | ${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t7.out > /dev/null |
| 168 | ${TEST_SSH_SSHKEYGEN} -Bf $(OBJ)/t7.out > /dev/null |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 169 | |
Tim Rice | 522262f | 2010-11-07 13:00:27 -0800 | [diff] [blame] | 170 | $(OBJ)/t8.out: |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 171 | ${TEST_SSH_SSHKEYGEN} -q -t dsa -N '' -f $@ |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 172 | |
Tim Rice | 522262f | 2010-11-07 13:00:27 -0800 | [diff] [blame] | 173 | t8: $(OBJ)/t8.out |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 174 | ${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t8.out > /dev/null |
| 175 | ${TEST_SSH_SSHKEYGEN} -Bf $(OBJ)/t8.out > /dev/null |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 176 | |
Tim Rice | 522262f | 2010-11-07 13:00:27 -0800 | [diff] [blame] | 177 | $(OBJ)/t9.out: |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 178 | test "${TEST_SSH_ECC}" != yes || \ |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 179 | ${TEST_SSH_SSHKEYGEN} -q -t ecdsa -N '' -f $@ |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 180 | |
Tim Rice | 522262f | 2010-11-07 13:00:27 -0800 | [diff] [blame] | 181 | t9: $(OBJ)/t9.out |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 182 | test "${TEST_SSH_ECC}" != yes || \ |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 183 | ${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t9.out > /dev/null |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 184 | test "${TEST_SSH_ECC}" != yes || \ |
Damien Miller | 369c0e8 | 2011-01-17 10:51:40 +1100 | [diff] [blame] | 185 | ${TEST_SSH_SSHKEYGEN} -Bf $(OBJ)/t9.out > /dev/null |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 186 | |
Damien Miller | f54542a | 2013-12-07 16:32:44 +1100 | [diff] [blame] | 187 | |
| 188 | $(OBJ)/t10.out: |
| 189 | ${TEST_SSH_SSHKEYGEN} -q -t ed25519 -N '' -f $@ |
| 190 | |
| 191 | t10: $(OBJ)/t10.out |
| 192 | ${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t10.out > /dev/null |
| 193 | ${TEST_SSH_SSHKEYGEN} -Bf $(OBJ)/t10.out > /dev/null |
| 194 | |
djm@openbsd.org | 1e30483 | 2014-12-22 02:15:52 +0000 | [diff] [blame] | 195 | t11: |
| 196 | ${TEST_SSH_SSHKEYGEN} -E sha256 -lf ${.CURDIR}/rsa_openssh.pub |\ |
| 197 | awk '{print $$2}' | diff - ${.CURDIR}/t11.ok |
| 198 | |
Tim Rice | a170f22 | 2015-06-09 22:41:13 -0700 | [diff] [blame] | 199 | $(OBJ)/t12.out: |
| 200 | ${TEST_SSH_SSHKEYGEN} -q -t ed25519 -N '' -C 'test-comment-1234' -f $@ |
markus@openbsd.org | 27ca1a5 | 2015-01-12 20:13:27 +0000 | [diff] [blame] | 201 | |
Tim Rice | a170f22 | 2015-06-09 22:41:13 -0700 | [diff] [blame] | 202 | t12: $(OBJ)/t12.out |
Tim Rice | 9f82e5a | 2015-03-16 22:49:20 -0700 | [diff] [blame] | 203 | ${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t12.out.pub | grep test-comment-1234 >/dev/null |
markus@openbsd.org | 27ca1a5 | 2015-01-12 20:13:27 +0000 | [diff] [blame] | 204 | |
Damien Miller | faabeb6 | 2012-12-12 12:51:54 +1100 | [diff] [blame] | 205 | t-exec: ${LTESTS:=.sh} |
Darren Tucker | ebc3c13 | 2003-09-04 15:37:58 +1000 | [diff] [blame] | 206 | @if [ "x$?" = "x" ]; then exit 0; fi; \ |
| 207 | for TEST in ""$?; do \ |
| 208 | echo "run test $${TEST}" ... 1>&2; \ |
Tim Rice | 5ab9b63 | 2013-06-02 14:05:48 -0700 | [diff] [blame] | 209 | (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} ${TEST_SHELL} ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ |
Darren Tucker | ebc3c13 | 2003-09-04 15:37:58 +1000 | [diff] [blame] | 210 | done |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 211 | |
| 212 | t-exec-interop: ${INTEROP_TESTS:=.sh} |
| 213 | @if [ "x$?" = "x" ]; then exit 0; fi; \ |
| 214 | for TEST in ""$?; do \ |
| 215 | echo "run test $${TEST}" ... 1>&2; \ |
Tim Rice | 5ab9b63 | 2013-06-02 14:05:48 -0700 | [diff] [blame] | 216 | (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} ${TEST_SHELL} ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 217 | done |
| 218 | |
Darren Tucker | eab5f0d | 2010-11-05 18:23:38 +1100 | [diff] [blame] | 219 | # Not run by default |
| 220 | interop: ${INTEROP_TARGETS} |
Damien Miller | e7429f2 | 2014-05-15 18:01:01 +1000 | [diff] [blame] | 221 | |
| 222 | # Unit tests, built by top-level Makefile |
| 223 | unit: |
Damien Miller | dd8b1dd | 2014-07-02 17:38:31 +1000 | [diff] [blame] | 224 | set -e ; if test -z "${SKIP_UNIT}" ; then \ |
Damien Miller | bd58853 | 2015-02-25 16:58:22 -0800 | [diff] [blame] | 225 | V="" ; \ |
Damien Miller | f7f3116 | 2015-02-27 15:52:49 -0800 | [diff] [blame] | 226 | test "x${USE_VALGRIND}" = "x" || \ |
Damien Miller | bd58853 | 2015-02-25 16:58:22 -0800 | [diff] [blame] | 227 | V=${.CURDIR}/valgrind-unit.sh ; \ |
| 228 | $$V ${.OBJDIR}/unittests/sshbuf/test_sshbuf ; \ |
| 229 | $$V ${.OBJDIR}/unittests/sshkey/test_sshkey \ |
Damien Miller | e89c780 | 2015-02-17 10:04:55 +1100 | [diff] [blame] | 230 | -d ${.CURDIR}/unittests/sshkey/testdata ; \ |
Damien Miller | bd58853 | 2015-02-25 16:58:22 -0800 | [diff] [blame] | 231 | $$V ${.OBJDIR}/unittests/bitmap/test_bitmap ; \ |
Darren Tucker | b1b22dd | 2017-03-14 14:19:36 +1100 | [diff] [blame] | 232 | $$V ${.OBJDIR}/unittests/conversion/test_conversion ; \ |
Damien Miller | bd58853 | 2015-02-25 16:58:22 -0800 | [diff] [blame] | 233 | $$V ${.OBJDIR}/unittests/kex/test_kex ; \ |
| 234 | $$V ${.OBJDIR}/unittests/hostkeys/test_hostkeys \ |
Damien Miller | e89c780 | 2015-02-17 10:04:55 +1100 | [diff] [blame] | 235 | -d ${.CURDIR}/unittests/hostkeys/testdata ; \ |
Damien Miller | 6ee4f1c | 2016-08-23 16:33:48 +1000 | [diff] [blame] | 236 | $$V ${.OBJDIR}/unittests/match/test_match ; \ |
Darren Tucker | 47b8c99 | 2016-12-08 15:48:34 +1100 | [diff] [blame] | 237 | if test "x${TEST_SSH_UTF8}" = "xyes" ; then \ |
| 238 | $$V ${.OBJDIR}/unittests/utf8/test_utf8 ; \ |
| 239 | fi \ |
Damien Miller | dd8b1dd | 2014-07-02 17:38:31 +1000 | [diff] [blame] | 240 | fi |