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 1QZrFB-0001Cg-9x for garchives@archives.gentoo.org; Thu, 23 Jun 2011 21:15:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B05311C017; Thu, 23 Jun 2011 21:15:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6C0441C017 for ; Thu, 23 Jun 2011 21:14:56 +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 5BBAB1B4019 for ; Thu, 23 Jun 2011 21:14:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C5F928003E for ; Thu, 23 Jun 2011 21:14:54 +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: <6d3035bfe6b928b18f179199381cfe7930bed11c.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/library/standard/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: PMSTestSuite/library/standard/__init__.py PMSTestSuite/library/standard/special_vars.py X-VCS-Directories: PMSTestSuite/library/standard/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6d3035bfe6b928b18f179199381cfe7930bed11c Date: Thu, 23 Jun 2011 21:14:54 +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: 896c70a268b0eef8e3933f583f6cd4e5 commit: 6d3035bfe6b928b18f179199381cfe7930bed11c Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Thu Jun 23 20:38:23 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Thu Jun 23 20:38:23 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D6d3035bf Add a test for DEFINED_PHASES variable. --- PMSTestSuite/library/standard/__init__.py | 3 ++- PMSTestSuite/library/standard/special_vars.py | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletions(-) diff --git a/PMSTestSuite/library/standard/__init__.py b/PMSTestSuite/lib= rary/standard/__init__.py index 5cfff7c..9374605 100644 --- a/PMSTestSuite/library/standard/__init__.py +++ b/PMSTestSuite/library/standard/__init__.py @@ -20,7 +20,8 @@ class StandardTestLibrary(TestLibrary): 'depend.FailingDependTest', 'depend.FailingRDependTest', 'special_vars.InheritedVariableTest', - 'special_vars.RDependFallbackTest' + 'special_vars.RDependFallbackTest', + 'special_vars.DefinedPhasesTest' ] =20 def get_common_files(self): diff --git a/PMSTestSuite/library/standard/special_vars.py b/PMSTestSuite= /library/standard/special_vars.py index 63301c4..ef8568f 100644 --- a/PMSTestSuite/library/standard/special_vars.py +++ b/PMSTestSuite/library/standard/special_vars.py @@ -35,3 +35,19 @@ class RDependFallbackTest(DBusEbuildTestCase): =20 return ((self.eapi =3D=3D 4) !=3D ('virtual/libc' in pm.vdb[self.cpv].= RDEPEND.split())) \ and DBusEbuildTestCase.check_dbus_result(self, output, pm) + +class DefinedPhasesTest(DBusEbuildTestCase): + """ Test whether DEFINED_PHASES are declared in EAPI 4. """ + + relevant_eapis =3D (4,) + phase_funcs =3D { + 'pkg_setup': [ + ':' + ] + } + + def check_dbus_result(self, output, pm): + phases =3D pm.vdb[self.cpv].DEFINED_PHASES.split() + return (' '.join(phases) =3D=3D 'setup') \ + and DBusEbuildTestCase.check_dbus_result(self, output, pm) +