diff options
Diffstat (limited to 'pym/portage/tests/repoman/test_simple.py')
-rw-r--r-- | pym/portage/tests/repoman/test_simple.py | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/pym/portage/tests/repoman/test_simple.py b/pym/portage/tests/repoman/test_simple.py index eab06d9b8..639ec31ea 100644 --- a/pym/portage/tests/repoman/test_simple.py +++ b/pym/portage/tests/repoman/test_simple.py @@ -78,7 +78,22 @@ class SimpleRepomanTestCase(TestCase): ("x86", "default/linux/x86/test_profile", "stable"), ) + profile = { + "eapi": ("5_pre2",), + "package.use.stable.mask": ("dev-libs/A flag",) + } + ebuilds = { + "dev-libs/A-0": { + "COPYRIGHT_HEADER" : copyright_header, + "DESCRIPTION" : "Desc goes here", + "EAPI" : "5_pre2", + "HOMEPAGE" : "http://example.com", + "IUSE" : "flag", + "KEYWORDS": "x86", + "LICENSE": "GPL-2", + "RDEPEND": "flag? ( dev-libs/B[flag] )", + }, "dev-libs/A-1": { "COPYRIGHT_HEADER" : copyright_header, "DESCRIPTION" : "Desc goes here", @@ -98,6 +113,17 @@ class SimpleRepomanTestCase(TestCase): "KEYWORDS": "~x86", "LICENSE": "GPL-2", }, + "dev-libs/C-0": { + "COPYRIGHT_HEADER" : copyright_header, + "DESCRIPTION" : "Desc goes here", + "EAPI" : "4", + "HOMEPAGE" : "http://example.com", + "IUSE" : "flag", + # must be unstable, since dev-libs/A[flag] is stable masked + "KEYWORDS": "~x86", + "LICENSE": "GPL-2", + "RDEPEND": "flag? ( dev-libs/A[flag] )", + }, } licenses = ["GPL-2"] arch_list = ["x86"] @@ -117,6 +143,13 @@ class SimpleRepomanTestCase(TestCase): "flags" : "<flag name='flag'>Description of how USE='flag' affects this package</flag>", }, ), + ( + "dev-libs/C", + { + "herd" : "no-herd", + "flags" : "<flag name='flag'>Description of how USE='flag' affects this package</flag>", + }, + ), ) use_desc = ( @@ -124,7 +157,7 @@ class SimpleRepomanTestCase(TestCase): ) playground = ResolverPlayground(ebuilds=ebuilds, - repo_configs=repo_configs, debug=debug) + profile=profile, repo_configs=repo_configs, debug=debug) settings = playground.settings eprefix = settings["EPREFIX"] eroot = settings["EROOT"] |