summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-13 03:34:32 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-13 03:34:32 -0800
commitcb23a2b4a53fb4847ca1c89492bed3fd7e408923 (patch)
treedab4021492d7f03256100f3ec9c0ffbc4ff29df9
parentd7afc73681967c64a641d9769dae23886b908164 (diff)
downloadportage-cb23a2b4a53fb4847ca1c89492bed3fd7e408923.tar.gz
portage-cb23a2b4a53fb4847ca1c89492bed3fd7e408923.tar.bz2
portage-cb23a2b4a53fb4847ca1c89492bed3fd7e408923.zip
ResolverDepthTestCase: add more cases
-rw-r--r--pym/portage/tests/resolver/test_depth.py31
1 files changed, 29 insertions, 2 deletions
diff --git a/pym/portage/tests/resolver/test_depth.py b/pym/portage/tests/resolver/test_depth.py
index 5a309416d..dc670052e 100644
--- a/pym/portage/tests/resolver/test_depth.py
+++ b/pym/portage/tests/resolver/test_depth.py
@@ -24,6 +24,8 @@ class ResolverDepthTestCase(TestCase):
"dev-libs/C-1": {},
}
+ world = ["dev-libs/A"]
+
test_cases = (
ResolverPlaygroundTestCase(
["dev-libs/A"],
@@ -39,12 +41,37 @@ class ResolverDepthTestCase(TestCase):
ResolverPlaygroundTestCase(
["dev-libs/A"],
- options = {"--update": True, "--deep": 3},
+ options = {"--update": True, "--deep": 2},
+ success = True,
+ mergelist = ["dev-libs/C-2", "dev-libs/B-2", "dev-libs/A-2"]),
+
+ ResolverPlaygroundTestCase(
+ ["@world"],
+ options = {"--update": True, "--deep": True},
+ success = True,
+ mergelist = ["dev-libs/C-2", "dev-libs/B-2", "dev-libs/A-2"]),
+
+ ResolverPlaygroundTestCase(
+ ["@world"],
+ options = {"--emptytree": True},
success = True,
mergelist = ["dev-libs/C-2", "dev-libs/B-2", "dev-libs/A-2"]),
+
+ ResolverPlaygroundTestCase(
+ ["@world"],
+ options = {"--selective": True, "--deep": True},
+ success = True,
+ mergelist = []),
+
+ ResolverPlaygroundTestCase(
+ ["dev-libs/A"],
+ options = {"--deep": 2},
+ success = True,
+ mergelist = ["dev-libs/A-2"]),
)
- playground = ResolverPlayground(ebuilds=ebuilds, installed=installed)
+ playground = ResolverPlayground(ebuilds=ebuilds, installed=installed,
+ world=world)
try:
for test_case in test_cases:
playground.run_TestCase(test_case)