diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-09-13 12:37:28 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-09-13 12:37:28 -0700 |
commit | 34fd6700ba3ff1e18865322b37be31851570ab83 (patch) | |
tree | c811afa17137d59feebe8b0467fb9e47d7ac013e /pym/portage/tests/repoman | |
parent | 32dda00da1d9d33c345896119a7e01fc840df265 (diff) | |
download | portage-34fd6700ba3ff1e18865322b37be31851570ab83.tar.gz portage-34fd6700ba3ff1e18865322b37be31851570ab83.tar.bz2 portage-34fd6700ba3ff1e18865322b37be31851570ab83.zip |
repoman: test package.use.stable.mask
Diffstat (limited to 'pym/portage/tests/repoman')
-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"] |