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 1QaAjX-0008Jq-CA for garchives@archives.gentoo.org; Fri, 24 Jun 2011 18:03:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2F9B1C096; Fri, 24 Jun 2011 18:03:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 606EF1C0BD for ; Fri, 24 Jun 2011 18:03:44 +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 97B151B401C for ; Fri, 24 Jun 2011 18:03:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id EE0F18003C for ; Fri, 24 Jun 2011 18:03: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: 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/workdir_fallback.py X-VCS-Directories: PMSTestSuite/library/standard/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e2366f34386c38fe993853a3526a0d63ac6caaa3 Date: Fri, 24 Jun 2011 18:03: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: c9fd952be4f24ff623cc6828f3c648f4 commit: e2366f34386c38fe993853a3526a0d63ac6caaa3 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Fri Jun 24 17:51:34 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Fri Jun 24 17:51:34 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3De2366f34 Add EAPI=3D4 ${WORKDIR} fallback test. --- PMSTestSuite/library/standard/__init__.py | 3 +- PMSTestSuite/library/standard/workdir_fallback.py | 30 +++++++++++++++= ++++++ 2 files changed, 32 insertions(+), 1 deletions(-) diff --git a/PMSTestSuite/library/standard/__init__.py b/PMSTestSuite/lib= rary/standard/__init__.py index d884dd6..d79793b 100644 --- a/PMSTestSuite/library/standard/__init__.py +++ b/PMSTestSuite/library/standard/__init__.py @@ -22,7 +22,8 @@ class StandardTestLibrary(TestLibrary): 'depend.FailingRDependTest', 'special_vars.InheritedVariableTest', 'special_vars.RDependFallbackTest', - 'special_vars.DefinedPhasesTest' + 'special_vars.DefinedPhasesTest', + 'workdir_fallback.WorkdirFallbackTest' ] =20 def get_common_files(self): diff --git a/PMSTestSuite/library/standard/workdir_fallback.py b/PMSTestS= uite/library/standard/workdir_fallback.py new file mode 100644 index 0000000..49f42cd --- /dev/null +++ b/PMSTestSuite/library/standard/workdir_fallback.py @@ -0,0 +1,30 @@ +# 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 WorkdirFallbackTest(DBusEbuildTestCase): + """ S=3D${WORKDIR} fallback test. """ + + relevant_eapis =3D (4,) + + # In order to disallow S=3D${WORKDIR} fallback, we need to: + # 1) have something in ${A} (i.e. fetch something), + # 2) have src_unpack() of some kind, + # 3) have one of the further phase funcs. + + ebuild_vars =3D { + 'RESTRICT': 'mirror', + 'SRC_URI': 'http://www.gentoo.org/ -> pms-test-suite-dummy.html', + 'S': '${WORKDIR}/nonexistent' + } + phase_funcs =3D { + 'src_unpack': [ + 'echo $A' + ], + 'src_compile': [ + ':' + ] + } + expect_failure =3D True