summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-02-20 08:53:41 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-02-20 08:53:41 +0000
commitdae8d464d2f87e5044926dc0e47961947bba773a (patch)
tree94cff526c668a121a1049d3a3b2eda0dab06b5ac /net-libs/cvm/cvm-0.76.ebuild
parentsecurity bump; cleanups (diff)
downloadhistorical-dae8d464d2f87e5044926dc0e47961947bba773a.tar.gz
historical-dae8d464d2f87e5044926dc0e47961947bba773a.tar.bz2
historical-dae8d464d2f87e5044926dc0e47961947bba773a.zip
Add src_test functionality.
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'net-libs/cvm/cvm-0.76.ebuild')
-rw-r--r--net-libs/cvm/cvm-0.76.ebuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/net-libs/cvm/cvm-0.76.ebuild b/net-libs/cvm/cvm-0.76.ebuild
index a5f9014bae2f..2241f052210b 100644
--- a/net-libs/cvm/cvm-0.76.ebuild
+++ b/net-libs/cvm/cvm-0.76.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/cvm/cvm-0.76.ebuild,v 1.2 2005/12/12 15:20:50 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/cvm/cvm-0.76.ebuild,v 1.3 2006/02/20 08:53:41 robbat2 Exp $
inherit toolchain-funcs eutils
@@ -19,6 +19,13 @@ DEPEND="${RDEPEND}
mysql? ( dev-db/mysql )
postgres? ( dev-db/postgresql )"
+src_unpack() {
+ unpack ${A}
+ # disable this test, as it breaks under Portage
+ # and there is no easy fix
+ sed -i.orig -e '/qmail-lookup-nodomain/,/^END_OF_TEST_RESULTS/d' ${S}/tests.sh || die "sed failed"
+}
+
src_compile() {
echo "/usr/include/bglibs" > conf-bgincs
echo "/usr/lib/bglibs" > conf-bglibs
@@ -45,3 +52,7 @@ src_install() {
dodoc README.vmailmgr TODO VERSION
dohtml *.html
}
+
+src_test() {
+ sh tests.sh || die "Testing Failed"
+}