diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-30 18:44:37 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-30 18:44:37 -0800 |
commit | 0a6e259026e6adacbaeecca47a40626bc3c488ed (patch) | |
tree | c5aa083530535180a143c9826fd7aa47ae7a12d7 | |
parent | fe3c9a14360b5e810d8735e8886922c35eb9dd89 (diff) | |
download | portage-0a6e259026e6adacbaeecca47a40626bc3c488ed.tar.gz portage-0a6e259026e6adacbaeecca47a40626bc3c488ed.tar.bz2 portage-0a6e259026e6adacbaeecca47a40626bc3c488ed.zip |
REQUIRED_USE: more resolver tests
-rw-r--r-- | pym/portage/tests/resolver/test_required_use.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pym/portage/tests/resolver/test_required_use.py b/pym/portage/tests/resolver/test_required_use.py index cdff3ade6..90ccb3da0 100644 --- a/pym/portage/tests/resolver/test_required_use.py +++ b/pym/portage/tests/resolver/test_required_use.py @@ -38,6 +38,12 @@ class RequiredUSETestCase(TestCase): "dev-libs/C-12": {"EAPI": "4", "IUSE": "foo +bar", "REQUIRED_USE": "!foo? ( !bar )"}, "dev-libs/C-13": {"EAPI": "4", "IUSE": "+foo +bar", "REQUIRED_USE": "!foo? ( !bar )"}, "dev-libs/C-14": {"EAPI": "4", "IUSE": "+foo bar", "REQUIRED_USE": "!foo? ( !bar )"}, + + "dev-libs/D-1" : {"EAPI": "4", "IUSE": "+w +x +y z", "REQUIRED_USE": "w? ( x || ( y z ) )"}, + "dev-libs/D-2" : {"EAPI": "4", "IUSE": "+w +x +y +z", "REQUIRED_USE": "w? ( x || ( y z ) )"}, + "dev-libs/D-3" : {"EAPI": "4", "IUSE": "+w +x y z", "REQUIRED_USE": "w? ( x || ( y z ) )"}, + "dev-libs/D-4" : {"EAPI": "4", "IUSE": "+w x +y +z", "REQUIRED_USE": "w? ( x || ( y z ) )"}, + "dev-libs/D-5" : {"EAPI": "4", "IUSE": "w x y z", "REQUIRED_USE": "w? ( x || ( y z ) )"}, } test_cases = ( @@ -67,6 +73,12 @@ class RequiredUSETestCase(TestCase): ResolverPlaygroundTestCase(["=dev-libs/C-12"], success = False), ResolverPlaygroundTestCase(["=dev-libs/C-13"], success = True, mergelist=["dev-libs/C-13"]), ResolverPlaygroundTestCase(["=dev-libs/C-14"], success = True, mergelist=["dev-libs/C-14"]), + + ResolverPlaygroundTestCase(["=dev-libs/D-1"], success = True, mergelist=["dev-libs/D-1"]), + ResolverPlaygroundTestCase(["=dev-libs/D-2"], success = True, mergelist=["dev-libs/D-2"]), + ResolverPlaygroundTestCase(["=dev-libs/D-3"], success = False), + ResolverPlaygroundTestCase(["=dev-libs/D-4"], success = False), + ResolverPlaygroundTestCase(["=dev-libs/D-5"], success = True, mergelist=["dev-libs/D-5"]), ) playground = ResolverPlayground(ebuilds=ebuilds) |