diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2009-03-11 20:35:07 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2009-03-11 20:35:07 +0000 |
commit | 1bb698163c8d3f6ee3b4914422dd017ed610a871 (patch) | |
tree | b74cca44261c6b5ff798156b58ca856efbbd8e3f /net-misc | |
parent | Adding DEPEND (diff) | |
download | gentoo-2-1bb698163c8d3f6ee3b4914422dd017ed610a871.tar.gz gentoo-2-1bb698163c8d3f6ee3b4914422dd017ed610a871.tar.bz2 gentoo-2-1bb698163c8d3f6ee3b4914422dd017ed610a871.zip |
Add the SSH testsuite, because I think the latest HPN patch has a breakage that was missed.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/openssh/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/openssh/openssh-5.2_p1-r1.ebuild | 20 | ||||
-rw-r--r-- | net-misc/openssh/openssh-5.2_p1-r2.ebuild | 20 |
3 files changed, 44 insertions, 3 deletions
diff --git a/net-misc/openssh/ChangeLog b/net-misc/openssh/ChangeLog index bcffbce86085..dbc8deb785a5 100644 --- a/net-misc/openssh/ChangeLog +++ b/net-misc/openssh/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/openssh # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/ChangeLog,v 1.341 2009/03/09 03:42:25 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/ChangeLog,v 1.342 2009/03/11 20:35:07 robbat2 Exp $ + + 11 Mar 2009; Robin H. Johnson <robbat2@gentoo.org> + openssh-5.2_p1-r1.ebuild, openssh-5.2_p1-r2.ebuild: + Add the SSH testsuite, because I think the latest HPN patch has a breakage + that was missed. *openssh-5.2_p1-r2 (09 Mar 2009) diff --git a/net-misc/openssh/openssh-5.2_p1-r1.ebuild b/net-misc/openssh/openssh-5.2_p1-r1.ebuild index 10663014dda0..a4998c542477 100644 --- a/net-misc/openssh/openssh-5.2_p1-r1.ebuild +++ b/net-misc/openssh/openssh-5.2_p1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/openssh-5.2_p1-r1.ebuild,v 1.2 2009/02/25 18:13:18 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/openssh-5.2_p1-r1.ebuild,v 1.3 2009/03/11 20:35:07 robbat2 Exp $ inherit eutils flag-o-matic multilib autotools pam @@ -170,6 +170,24 @@ src_install() { dodir /etc/skel/.ssh } +src_test() { + local failed="" passwd="" + for t in tests interop-tests compat-tests ; do + einfo "Starting ${t} testsuite" + emake -j1 ${t} + [[ $? -eq 0 ]] \ + && passed="${passed}${t} " \ + || failed="${failed}${t} " + done + einfo "Failed tests: ${failed}" + einfo "Passed tests: ${passed}" + if [[ -n "${failed}" ]]; then + die "Some tests failed: ${failed}" + else + return 0 + fi +} + pkg_postinst() { enewgroup sshd 22 enewuser sshd 22 -1 /var/empty sshd diff --git a/net-misc/openssh/openssh-5.2_p1-r2.ebuild b/net-misc/openssh/openssh-5.2_p1-r2.ebuild index bcc84b6927fd..2953962a1bb2 100644 --- a/net-misc/openssh/openssh-5.2_p1-r2.ebuild +++ b/net-misc/openssh/openssh-5.2_p1-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/openssh-5.2_p1-r2.ebuild,v 1.2 2009/03/09 04:23:00 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/openssh-5.2_p1-r2.ebuild,v 1.3 2009/03/11 20:35:07 robbat2 Exp $ inherit eutils flag-o-matic multilib autotools pam @@ -178,6 +178,24 @@ src_install() { dodir /etc/skel/.ssh } +src_test() { + local failed="" passwd="" + for t in tests interop-tests compat-tests ; do + einfo "Starting ${t} testsuite" + emake -j1 ${t} + [[ $? -eq 0 ]] \ + && passed="${passed}${t} " \ + || failed="${failed}${t} " + done + einfo "Failed tests: ${failed}" + einfo "Passed tests: ${passed}" + if [[ -n "${failed}" ]]; then + die "Some tests failed: ${failed}" + else + return 0 + fi +} + pkg_postinst() { enewgroup sshd 22 enewuser sshd 22 -1 /var/empty sshd |