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 1QZNXu-0007vQ-Dd for garchives@archives.gentoo.org; Wed, 22 Jun 2011 13:32:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6AC221C123; Wed, 22 Jun 2011 13:32:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3D7471C123 for ; Wed, 22 Jun 2011 13:32:29 +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 BC0321B4002 for ; Wed, 22 Jun 2011 13:32:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2805F8003C for ; Wed, 22 Jun 2011 13:32:28 +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: <95e4eafd235bae4797faaad4f57f933a6d46a9d2.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: 95e4eafd235bae4797faaad4f57f933a6d46a9d2 Date: Wed, 22 Jun 2011 13:32:28 +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: 71c2799459687f9eb8678c056ee78854 commit: 95e4eafd235bae4797faaad4f57f933a6d46a9d2 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Wed Jun 22 13:19:11 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Wed Jun 22 13:19:11 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D95e4eafd Add a test for INHERITED variable definition. --- PMSTestSuite/library/standard/__init__.py | 3 ++- PMSTestSuite/library/standard/special_vars.py | 21 +++++++++++++++++++= ++ 2 files changed, 23 insertions(+), 1 deletions(-) diff --git a/PMSTestSuite/library/standard/__init__.py b/PMSTestSuite/lib= rary/standard/__init__.py index cd1cf75..6faef96 100644 --- a/PMSTestSuite/library/standard/__init__.py +++ b/PMSTestSuite/library/standard/__init__.py @@ -18,7 +18,8 @@ class StandardTestLibrary(TestLibrary): 'depend.DependTest', 'depend.RDependTest', 'depend.FailingDependTest', - 'depend.FailingRDependTest' + 'depend.FailingRDependTest', + 'special_vars.InheritedVariableTest' ] =20 def get_common_files(self): diff --git a/PMSTestSuite/library/standard/special_vars.py b/PMSTestSuite= /library/standard/special_vars.py new file mode 100644 index 0000000..56ae41c --- /dev/null +++ b/PMSTestSuite/library/standard/special_vars.py @@ -0,0 +1,21 @@ +# 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 InheritedVariableTest(DBusEbuildTestCase): + """ INHERITED variable definition test. """ + + relevant_eapis =3D (0,) + + phase_funcs =3D { + 'src_compile': [ + 'pms-test-dbus_append_result "${INHERITED}"' + ] + } + + def check_dbus_result(self, output, pm): + inherits =3D output.split() + return 'pms-test-dbus' in inherits \ + and DBusEbuildTestCase.check_dbus_result(self, output, pm)