Tests: Make sure the ResolverPlayground doesn't ignore DEPEND
authorSebastian Luther <SebastianLuther@gmx.de>
Wed, 18 Aug 2010 16:44:08 +0000 (18:44 +0200)
committerZac Medico <zmedico@gentoo.org>
Wed, 18 Aug 2010 20:22:36 +0000 (13:22 -0700)
pym/portage/tests/resolver/test_simple.py

index 8665098a8222b1f01f55e00d2c6194fa74bc9b85..4e69d656493f093ed1039c098d6fa98dac19de04 100644 (file)
@@ -11,6 +11,11 @@ class SimpleResolverTestCase(TestCase):
                        "dev-libs/A-1": {}, 
                        "dev-libs/A-2": { "KEYWORDS": "~x86" },
                        "dev-libs/B-1.2": {},
+
+                       "app-misc/Z-1": { "DEPEND": "|| ( app-misc/Y ( app-misc/X app-misc/W ) )", "RDEPEND": "" },
+                       "app-misc/Y-1": { "KEYWORDS": "~x86" },
+                       "app-misc/X-1": {},
+                       "app-misc/W-1": {},
                        }
                installed = {
                        "dev-libs/B-1.1": {},
@@ -29,6 +34,11 @@ class SimpleResolverTestCase(TestCase):
                                options = {"--update": True},
                                success = True,
                                mergelist = ["dev-libs/B-1.2"]),
+
+                       ResolverPlaygroundTestCase(
+                               ["app-misc/Z"],
+                               success = True,
+                               mergelist = ["app-misc/W-1", "app-misc/X-1", "app-misc/Z-1"]),
                        )
 
                playground = ResolverPlayground(ebuilds=ebuilds, installed=installed)