summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-20 06:55:27 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-20 06:55:27 +0000
commite6eab02ea0649bdffe7ff4bfb73f86f87251c86b (patch)
tree531eeba9d539b6b3da1c95ab117fcadf4a96ae74 /dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild
parentadd support for src_test (diff)
downloadgentoo-2-e6eab02ea0649bdffe7ff4bfb73f86f87251c86b.tar.gz
gentoo-2-e6eab02ea0649bdffe7ff4bfb73f86f87251c86b.tar.bz2
gentoo-2-e6eab02ea0649bdffe7ff4bfb73f86f87251c86b.zip
Dont try to run src_test() if dejagnu isnt installed yet since it uses itself to run the tests.
(Portage version: 2.0.51-r13)
Diffstat (limited to 'dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild')
-rw-r--r--dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild b/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild
index 85e9a2fd82a4..6b84487c7dd8 100644
--- a/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild
+++ b/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild,v 1.8 2005/01/19 23:33:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild,v 1.9 2005/01/20 06:55:27 vapier Exp $
inherit eutils
@@ -23,6 +23,13 @@ src_unpack() {
epatch ${FILESDIR}/dejagnu-ignore-libwarning.patch
}
+src_test() {
+ # if you dont have dejagnu emerged yet, you cant
+ # run the tests ... crazy aint it :)
+ type -p runtest || return 0
+ make check || die "check failed :("
+}
+
src_install() {
make install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README TODO