From: Amy Fong <amy.fong@windriver.com>
To: Openembedded core <openembedded-core@lists.openembedded.org>
Subject: [PATCH] openssh: package testing
Date: Fri, 27 Jul 2012 11:24:54 -0400 [thread overview]
Message-ID: <20120727152454.GA5706@windriver.com> (raw)
openssh: package testing
Package openssh's regression tests
Signed-off-by: Amy Fong <amy.fong@windriver.com>
---
openssh-5.9p1/runtests.sh | 29 +++++++++++++++++++++++++++++
openssh_5.9p1.bb | 9 +++++++++
2 files changed, 38 insertions(+)
diff --git a/meta/recipes-connectivity/openssh/openssh-5.9p1/runtests.sh b/meta/recipes-connectivity/openssh/openssh-5.9p1/runtests.sh
new file mode 100755
index 0000000..bb99a05
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh-5.9p1/runtests.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+cd regress
+
+make \
+ .OBJDIR=`pwd` \
+ .CURDIR=`pwd` \
+ BUILDDIR=`pwd` \
+ OBJ=`pwd` \
+ PATH=$PATH:. \
+ TEST_SHELL=sh \
+ TEST_SSH_SSH=`which ssh` \
+ TEST_SSH_SSHD=`which sshd` \
+ TEST_SSH_SSHAGENT=`which ssh-agent` \
+ TEST_SSH_SSHADD=`which ssh-add` \
+ TEST_SSH_SSHKEYGEN=`which ssh-keygen` \
+ TEST_SSH_SSHPKCS11HELPER="/usr/libexec/ssh-pkcs11-helper" \
+ TEST_SSH_SSHKEYSCAN=`which ssh-keyscan` \
+ TEST_SSH_SFTP=`which sftp` \
+ TEST_SSH_SFTPSERVER="/usr/libexec/sftp-server" \
+ TEST_SSH_PLINK="plink" \
+ TEST_SSH_PUTTYGEN="puttygen" \
+ TEST_SSH_CONCH="conch" \
+ TEST_SSH_IPV6="yes" \
+ TEST_SSH_ECC="yes" \
+ TEST_SSH_SHA256="yes" \
+ EXEEXT="" \
+ tests
+
diff --git a/meta/recipes-connectivity/openssh/openssh_5.9p1.bb b/meta/recipes-connectivity/openssh/openssh_5.9p1.bb
index 749f89e..f0880c0 100644
--- a/meta/recipes-connectivity/openssh/openssh_5.9p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_5.9p1.bb
@@ -23,6 +23,7 @@ SRC_URI = "ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar.
file://sshd_config \
file://ssh_config \
file://init \
+ file://runtests.sh \
${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}"
PAM_SRC_URI = "file://sshd"
@@ -81,6 +82,9 @@ do_install_append () {
mv ${D}${bindir}/ssh ${D}${bindir}/ssh.${PN}
rm -f ${D}${bindir}/slogin ${D}${datadir}/Ssh.bin
rmdir ${D}/var/run/sshd ${D}/var/run ${D}/var
+ if [ ! -d ${D}/opt/${PN}-tests/ ]; then mkdir -p ${D}/opt/${PN}-tests/; fi
+ install -m 755 ${WORKDIR}/runtests.sh ${D}/opt/${PN}-tests/
+ cp -ra ${S}/regress ${D}/opt/${PN}-tests/
}
ALLOW_EMPTY_${PN} = "1"
@@ -95,6 +99,11 @@ FILES_${PN}-sftp-server = "${libexecdir}/sftp-server"
FILES_${PN}-misc = "${bindir}/ssh* ${libexecdir}/ssh*"
FILES_${PN}-keygen = "${bindir}/ssh-keygen"
+PACKAGES += "${PN}-testing"
+DEPENDS_${PN}-testing += "${PN}-keygen ${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-sftp ${PN}-misc ${PN}-sftp-server"
+FILES_${PN}-testing += "/opt/${PN}-tests/*"
+FILES_${PN}-dbg += "/opt/${PN}-tests/.debug/*"
+
RDEPENDS_${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen"
DEPENDS_${PN}-sshd += "update-rc.d"
RDEPENDS_${PN}-sshd += "update-rc.d ${PN}-keygen"
next reply other threads:[~2012-07-27 15:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-27 15:24 Amy Fong [this message]
2012-07-27 16:35 ` [PATCH] openssh: package testing Saul Wold
2012-07-27 18:15 ` Mark Hatle
2012-07-27 20:05 ` Saul Wold
2012-07-27 20:58 ` Koen Kooi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120727152454.GA5706@windriver.com \
--to=amy.fong@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.