summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-21 13:21:59 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-21 13:21:59 -0700
commit7b0c428d546dfce267b9d9744fa039e9f9d2972a (patch)
treefe25039cba8a0a8376ecfe7cf02b67a3d8645146 /pym
parent7a61bce66255bd8f661c345e85a46c7d69a276c6 (diff)
downloadportage-7b0c428d546dfce267b9d9744fa039e9f9d2972a.tar.gz
portage-7b0c428d546dfce267b9d9744fa039e9f9d2972a.tar.bz2
portage-7b0c428d546dfce267b9d9744fa039e9f9d2972a.zip
Enable tests for autoumask with EAPI 4.
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/tests/resolver/test_autounmask.py31
1 files changed, 17 insertions, 14 deletions
diff --git a/pym/portage/tests/resolver/test_autounmask.py b/pym/portage/tests/resolver/test_autounmask.py
index 760c76487..d06b2fc30 100644
--- a/pym/portage/tests/resolver/test_autounmask.py
+++ b/pym/portage/tests/resolver/test_autounmask.py
@@ -7,6 +7,9 @@ from portage.tests.resolver.ResolverPlayground import ResolverPlayground, Resolv
class AutounmaskTestCase(TestCase):
def testAutounmask(self):
+
+ EAPI_4 = '4_pre1'
+
ebuilds = {
#ebuilds to test use changes
"dev-libs/A-1": { "SLOT": 1, "DEPEND": "dev-libs/B[foo]", "EAPI": 2},
@@ -42,10 +45,10 @@ class AutounmaskTestCase(TestCase):
"dev-util/R-1": { "IUSE": "bar" },
#ebuilds to test interaction with REQUIRED_USE
- #~ "app-portage/A-1": { "DEPEND": "app-portage/B[foo]", "EAPI": 2 },
- #~ "app-portage/A-2": { "DEPEND": "app-portage/B[foo=]", "IUSE": "+foo", "REQUIRED_USE": "foo", "EAPI": 4 },
-#~
- #~ "app-portage/B-1": { "IUSE": "foo +bar", "REQUIRED_USE": "^^ ( foo bar )", "EAPI": 4 },
+ "app-portage/A-1": { "DEPEND": "app-portage/B[foo]", "EAPI": 2 },
+ "app-portage/A-2": { "DEPEND": "app-portage/B[foo=]", "IUSE": "+foo", "REQUIRED_USE": "foo", "EAPI": EAPI_4 },
+
+ "app-portage/B-1": { "IUSE": "foo +bar", "REQUIRED_USE": "^^ ( foo bar )", "EAPI": EAPI_4 },
}
test_cases = (
@@ -168,16 +171,16 @@ class AutounmaskTestCase(TestCase):
use_changes = { "dev-util/R-1": { "bar": True } }),
#Test interaction with REQUIRED_USE.
- #~ ResolverPlaygroundTestCase(
- #~ ["=app-portage/A-1"],
- #~ options = { "--autounmask": True },
- #~ use_changes = None,
- #~ success = False),
- #~ ResolverPlaygroundTestCase(
- #~ ["=app-portage/A-2"],
- #~ options = { "--autounmask": True },
- #~ use_changes = None,
- #~ success = False),
+ ResolverPlaygroundTestCase(
+ ["=app-portage/A-1"],
+ options = { "--autounmask": True },
+ use_changes = None,
+ success = False),
+ ResolverPlaygroundTestCase(
+ ["=app-portage/A-2"],
+ options = { "--autounmask": True },
+ use_changes = None,
+ success = False),
)
playground = ResolverPlayground(ebuilds=ebuilds)