diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-08-12 12:31:23 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-12 03:40:45 -0700 |
commit | a1b9a2d52517c71931c78389dbb943c0eb374070 (patch) | |
tree | ddba92777ac371294f7b7186380ca97fc92f0d48 | |
parent | e341cb822a979baac8ad5a7acb7b4d0f18b8fe27 (diff) | |
download | portage-a1b9a2d52517c71931c78389dbb943c0eb374070.tar.gz portage-a1b9a2d52517c71931c78389dbb943c0eb374070.tar.bz2 portage-a1b9a2d52517c71931c78389dbb943c0eb374070.zip |
Tests: more resolver/test_autounmask tests
-rw-r--r-- | pym/portage/tests/resolver/test_autounmask.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pym/portage/tests/resolver/test_autounmask.py b/pym/portage/tests/resolver/test_autounmask.py index bb7ff0ad7..929330c3e 100644 --- a/pym/portage/tests/resolver/test_autounmask.py +++ b/pym/portage/tests/resolver/test_autounmask.py @@ -35,6 +35,11 @@ class AutounmaskTestCase(TestCase): "sci-libs/L-1": { "IUSE": "bar" }, "sci-libs/M-1": { "KEYWORDS": "~x86" }, "sci-libs/P-1": { }, + + #ebuilds to test these nice "required by cat/pkg[foo]" messages + "dev-util/Q-1": { "DEPEND": "foo? ( dev-util/R[bar] )", "IUSE": "+foo", "EAPI": 2 }, + "dev-util/Q-2": { "RDEPEND": "!foo? ( dev-util/R[bar] )", "IUSE": "foo", "EAPI": 2 }, + "dev-util/R-1": { "IUSE": "bar" }, } test_cases = ( @@ -141,6 +146,20 @@ class AutounmaskTestCase(TestCase): success = False, mergelist = ["sci-libs/L-1", "sci-libs/K-8"], use_changes = { "sci-libs/L-1": { "bar": True } }), + + #Test these nice "required by cat/pkg[foo]" messages. + ResolverPlaygroundTestCase( + ["=dev-util/Q-1"], + options = {"--autounmask": True}, + success = False, + mergelist = ["dev-util/R-1", "dev-util/Q-1"], + use_changes = { "dev-util/R-1": { "bar": True } }), + ResolverPlaygroundTestCase( + ["=dev-util/Q-2"], + options = {"--autounmask": True}, + success = False, + mergelist = ["dev-util/R-1", "dev-util/Q-2"], + use_changes = { "dev-util/R-1": { "bar": True } }), ) playground = ResolverPlayground(ebuilds=ebuilds) |