aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-17 02:43:02 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-17 02:43:02 -0800
commitad4b1c9df3eb00382b03fbc9c24f2a3a8eab58f4 (patch)
treea27b2c166411ddb356ac00f0467caa4c0e3b6bb2 /pym/portage/tests
parentemerge --sync: display message when cvs fails (diff)
downloadportage-ad4b1c9df3eb00382b03fbc9c24f2a3a8eab58f4.tar.gz
portage-ad4b1c9df3eb00382b03fbc9c24f2a3a8eab58f4.tar.bz2
portage-ad4b1c9df3eb00382b03fbc9c24f2a3a8eab58f4.zip
ResolverDepthTestCase: test --selective more
Diffstat (limited to 'pym/portage/tests')
-rw-r--r--pym/portage/tests/resolver/test_depth.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pym/portage/tests/resolver/test_depth.py b/pym/portage/tests/resolver/test_depth.py
index f07016784..ec3e23894 100644
--- a/pym/portage/tests/resolver/test_depth.py
+++ b/pym/portage/tests/resolver/test_depth.py
@@ -187,6 +187,21 @@ class ResolverDepthTestCase(TestCase):
success = True,
mergelist = ["dev-db/hsqldb-1.8"]),
+ # Don't traverse deps of an installed package with --deep=0,
+ # even if it's a virtual.
+ ResolverPlaygroundTestCase(
+ ["virtual/libusb:0"],
+ options = {"--selective" : True, "--deep" : 0},
+ success = True,
+ mergelist = []),
+
+ # Satisfy unsatisfied dep of installed package with --deep=1.
+ ResolverPlaygroundTestCase(
+ ["virtual/libusb:0"],
+ options = {"--selective" : True, "--deep" : 1},
+ success = True,
+ mergelist = ['dev-libs/libusb-0.1.13']),
+
# Pull in direct dep of virtual, even with --deep=0.
ResolverPlaygroundTestCase(
["sys-fs/udev"],