freebsd-dev/regress/Makefile

117 lines
2.9 KiB
Makefile
Raw Normal View History

2008-07-23 09:33:08 +00:00
# $OpenBSD: Makefile,v 1.48 2008/06/28 13:57:25 djm Exp $
2002-06-27 22:31:32 +00:00
2004-01-07 11:10:17 +00:00
REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t-exec
tests: $(REGRESS_TARGETS)
2002-06-27 22:31:32 +00:00
# Interop tests are not run by default
interop interop-tests: t-exec-interop
2004-01-07 11:10:17 +00:00
clean:
for F in $(CLEANFILES); do rm -f $(OBJ)$$F; done
rm -rf $(OBJ).putty
2004-01-07 11:10:17 +00:00
distclean: clean
2002-06-27 22:31:32 +00:00
LTESTS= connect \
proxy-connect \
connect-privsep \
proto-version \
proto-mismatch \
exit-status \
2004-10-28 16:03:53 +00:00
envpass \
2002-06-27 22:31:32 +00:00
transfer \
2004-02-26 10:38:49 +00:00
banner \
2004-01-07 11:10:17 +00:00
rekey \
2002-06-27 22:31:32 +00:00
stderr-data \
stderr-after-eof \
broken-pipe \
try-ciphers \
yes-head \
2004-04-20 09:35:04 +00:00
login-timeout \
2002-06-27 22:31:32 +00:00
agent \
agent-getpeereid \
agent-timeout \
agent-ptrace \
2002-06-27 22:31:32 +00:00
keyscan \
keygen-change \
2008-07-23 09:33:08 +00:00
key-options \
2004-10-28 16:03:53 +00:00
scp \
2002-06-27 22:31:32 +00:00
sftp \
sftp-cmds \
2004-01-07 11:10:17 +00:00
sftp-badcmds \
sftp-batch \
2005-06-05 15:40:50 +00:00
sftp-glob \
2004-01-07 11:10:17 +00:00
reconfigure \
dynamic-forward \
2004-10-28 16:03:53 +00:00
forwarding \
multiplex \
2005-06-05 15:40:50 +00:00
reexec \
2006-09-30 13:29:51 +00:00
brokenkeys \
cfgmatch \
2008-07-23 09:33:08 +00:00
addrmatch \
localcommand \
2006-09-30 13:29:51 +00:00
forcecommand
2002-06-27 22:31:32 +00:00
2008-07-23 09:33:08 +00:00
INTEROP_TESTS= putty-transfer putty-ciphers putty-kex conch-ciphers
#INTEROP_TESTS+=ssh-com ssh-com-client ssh-com-keygen ssh-com-sftp
2002-06-27 22:31:32 +00:00
USER!= id -un
2004-01-07 11:10:17 +00:00
CLEANFILES= t2.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \
authorized_keys_${USER} known_hosts pidfile \
2005-06-05 15:40:50 +00:00
ssh_config sshd_config.orig ssh_proxy sshd_config sshd_proxy \
2002-06-27 22:31:32 +00:00
rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \
rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \
2004-10-28 16:03:53 +00:00
ls.copy banner.in banner.out empty.in \
2006-09-30 13:29:51 +00:00
scp-ssh-wrapper.scp ssh_proxy_envpass remote_pid \
sshd_proxy_bak rsa_ssh2_cr.prv rsa_ssh2_crnl.prv \
putty.rsa2
2002-06-27 22:31:32 +00:00
t1:
ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv
t2:
2004-01-07 11:10:17 +00:00
cat ${.CURDIR}/rsa_openssh.prv > $(OBJ)/t2.out
chmod 600 $(OBJ)/t2.out
ssh-keygen -yf $(OBJ)/t2.out | diff - ${.CURDIR}/rsa_openssh.pub
2002-06-27 22:31:32 +00:00
t3:
2004-01-07 11:10:17 +00:00
ssh-keygen -ef ${.CURDIR}/rsa_openssh.pub >$(OBJ)/rsa_secsh.pub
ssh-keygen -if $(OBJ)/rsa_secsh.pub | diff - ${.CURDIR}/rsa_openssh.pub
rm -f ${.CURDIR}/rsa_secsh.pub
2002-06-27 22:31:32 +00:00
t4:
ssh-keygen -lf ${.CURDIR}/rsa_openssh.pub |\
awk '{print $$2}' | diff - ${.CURDIR}/t4.ok
t5:
ssh-keygen -Bf ${.CURDIR}/rsa_openssh.pub |\
awk '{print $$2}' | diff - ${.CURDIR}/t5.ok
t6:
2004-01-07 11:10:17 +00:00
ssh-keygen -if ${.CURDIR}/dsa_ssh2.prv > $(OBJ)/t6.out1
ssh-keygen -if ${.CURDIR}/dsa_ssh2.pub > $(OBJ)/t6.out2
chmod 600 $(OBJ)/t6.out1
ssh-keygen -yf $(OBJ)/t6.out1 | diff - $(OBJ)/t6.out2
2002-06-27 22:31:32 +00:00
2004-01-07 11:10:17 +00:00
$(OBJ)/t7.out:
2002-06-27 22:31:32 +00:00
ssh-keygen -q -t rsa -N '' -f $@
2004-01-07 11:10:17 +00:00
t7: $(OBJ)/t7.out
ssh-keygen -lf $(OBJ)/t7.out > /dev/null
ssh-keygen -Bf $(OBJ)/t7.out > /dev/null
2002-06-27 22:31:32 +00:00
2004-01-07 11:10:17 +00:00
t-exec: ${LTESTS:=.sh}
@if [ "x$?" = "x" ]; then exit 0; fi; \
for TEST in ""$?; do \
echo "run test $${TEST}" ... 1>&2; \
2005-06-05 15:40:50 +00:00
(env SUDO=${SUDO} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \
2004-01-07 11:10:17 +00:00
done
t-exec-interop: ${INTEROP_TESTS:=.sh}
@if [ "x$?" = "x" ]; then exit 0; fi; \
for TEST in ""$?; do \
echo "run test $${TEST}" ... 1>&2; \
(env SUDO=${SUDO} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \
done