From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QWP39-0006aS-Sn for garchives@archives.gentoo.org; Tue, 14 Jun 2011 08:32:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 196BA1C042; Tue, 14 Jun 2011 08:32:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E3B3E1C042 for ; Tue, 14 Jun 2011 08:32:17 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A0D7F1B401C for ; Tue, 14 Jun 2011 08:32:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B3D338003E for ; Tue, 14 Jun 2011 08:32:16 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: Subject: [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/library/standard/basic/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: PMSTestSuite/library/standard/basic/depend.py X-VCS-Directories: PMSTestSuite/library/standard/basic/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e8da4c1622a8ccfee625e319e869641c4f2cb4d8 Date: Tue, 14 Jun 2011 08:32:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 71648bdd5962e66e1a45a644f86ec420 commit: e8da4c1622a8ccfee625e319e869641c4f2cb4d8 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Tue Jun 14 08:32:15 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Tue Jun 14 08:32:15 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3De8da4c16 Make DependTest actually work. --- PMSTestSuite/library/standard/basic/depend.py | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/PMSTestSuite/library/standard/basic/depend.py b/PMSTestSuite= /library/standard/basic/depend.py index 5bafd90..c477427 100644 --- a/PMSTestSuite/library/standard/basic/depend.py +++ b/PMSTestSuite/library/standard/basic/depend.py @@ -8,10 +8,26 @@ from PMSTestSuite.library.depend_case import EbuildDepe= ndencyTestCase class EbuildToucher(DBusEbuildTestCase): """ Touched file installer (for dependency tests). """ =20 - pass + def __init__(self, *args, **kwargs): + DBusEbuildTestCase.__init__(self, *args, **kwargs) + self.phase_funcs['src_unpack'].append( + '''cat >> mytrue.sh <<_EOF_ +#!/bin/sh +true +_EOF_''' + ) + self.phase_funcs['src_install'].append( + 'newbin mytrue.sh pms-test-suite-%s || die' % id(self) + ) =20 class DependTest(EbuildDependencyTestCase): """ DEPEND fulfilling test. """ =20 relevant_eapis =3D (0,) depend_classes =3D [EbuildToucher] + + def __init__(self, *args, **kwargs): + EbuildDependencyTestCase.__init__(self, *args, **kwargs) + self.phase_funcs['src_compile'].append( + 'pms-test-suite-%s || die' % id(self.depend_objs[0]) + )