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 1QbaxL-0003gG-2w for garchives@archives.gentoo.org; Tue, 28 Jun 2011 16:16:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C74CB1C03C; Tue, 28 Jun 2011 16:15:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 95B451C03C for ; Tue, 28 Jun 2011 16:15:43 +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 093B21BC022 for ; Tue, 28 Jun 2011 16:15:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 596018003C for ; Tue, 28 Jun 2011 16:15:42 +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: <83babec5591836f69120e6e43fe3af5c3f4ca173.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/deprecated_vars.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: 83babec5591836f69120e6e43fe3af5c3f4ca173 Date: Tue, 28 Jun 2011 16:15:42 +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: 1dddaf3837b33ee9e60a2607f3f51341 commit: 83babec5591836f69120e6e43fe3af5c3f4ca173 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Tue Jun 28 14:04:22 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Tue Jun 28 16:12:53 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D83babec5 Add a test for the AA variable. --- pmstestsuite/library/standard/__init__.py | 1 + pmstestsuite/library/standard/deprecated_vars.py | 29 ++++++++++++++++= ++++++ pmstestsuite/library/standard/special_vars.py | 1 - 3 files changed, 30 insertions(+), 1 deletions(-) diff --git a/pmstestsuite/library/standard/__init__.py b/pmstestsuite/lib= rary/standard/__init__.py index 20f8e4f..68d9434 100644 --- a/pmstestsuite/library/standard/__init__.py +++ b/pmstestsuite/library/standard/__init__.py @@ -20,6 +20,7 @@ class StandardTestLibrary(TestLibrary): 'depend.PDependTest', 'depend.FailingDependTest', 'depend.FailingRDependTest', + 'deprecated_vars.AATest', 'special_vars.InheritedVariableTest', 'special_vars.RDependFallbackTest', 'special_vars.DefinedPhasesTest', diff --git a/pmstestsuite/library/standard/deprecated_vars.py b/pmstestsu= ite/library/standard/deprecated_vars.py new file mode 100644 index 0000000..5db24ef --- /dev/null +++ b/pmstestsuite/library/standard/deprecated_vars.py @@ -0,0 +1,29 @@ +# vim:fileencoding=3Dutf-8 +# (c) 2011 Micha=C5=82 G=C3=B3rny +# Released under the terms of the 2-clause BSD license. + +from pmstestsuite.library.standard.dbus_case import DBusEbuildTestCase + +class AATest(DBusEbuildTestCase): + """ Test whether AA is declared. """ + + relevant_eapis =3D (3, 4) + ebuild_vars =3D { + 'IUSE': 'pms_tests_magical_hidden_use', # XXX? + 'SRC_URI': '''pms_tests_magical_hidden_use? ( + http://www.gentoo.org/ -> pms-test-suite-dummy.html )''' + } + phase_funcs =3D { + 'src_unpack': [ + 'pms-test-dbus_append_result "${AA}"' + ] + } + + def check_dbus_result(self, output, pm): + if self.eapi < 4: + expect =3D 'pms-test-suite-dummy.html' + else: + expect =3D '' + + return output =3D=3D expect \ + and DBusEbuildTestCase.check_dbus_result(self, output, pm) diff --git a/pmstestsuite/library/standard/special_vars.py b/pmstestsuite= /library/standard/special_vars.py index fa01bc2..2a38897 100644 --- a/pmstestsuite/library/standard/special_vars.py +++ b/pmstestsuite/library/standard/special_vars.py @@ -50,4 +50,3 @@ class DefinedPhasesTest(DBusEbuildTestCase): phases =3D pm.vdb[self.cpv].DEFINED_PHASES.split() return (' '.join(phases) =3D=3D 'setup') \ and DBusEbuildTestCase.check_dbus_result(self, output, pm) -