class AutounmaskTestCase(TestCase):
def testAutounmask(self):
+
+ EAPI_4 = '4_pre1'
+
ebuilds = {
#ebuilds to test use changes
"dev-libs/A-1": { "SLOT": 1, "DEPEND": "dev-libs/B[foo]", "EAPI": 2},
"dev-util/R-1": { "IUSE": "bar" },
#ebuilds to test interaction with REQUIRED_USE
- #~ "app-portage/A-1": { "DEPEND": "app-portage/B[foo]", "EAPI": 2 },
- #~ "app-portage/A-2": { "DEPEND": "app-portage/B[foo=]", "IUSE": "+foo", "REQUIRED_USE": "foo", "EAPI": 4 },
-#~
- #~ "app-portage/B-1": { "IUSE": "foo +bar", "REQUIRED_USE": "^^ ( foo bar )", "EAPI": 4 },
+ "app-portage/A-1": { "DEPEND": "app-portage/B[foo]", "EAPI": 2 },
+ "app-portage/A-2": { "DEPEND": "app-portage/B[foo=]", "IUSE": "+foo", "REQUIRED_USE": "foo", "EAPI": EAPI_4 },
+
+ "app-portage/B-1": { "IUSE": "foo +bar", "REQUIRED_USE": "^^ ( foo bar )", "EAPI": EAPI_4 },
}
test_cases = (
use_changes = { "dev-util/R-1": { "bar": True } }),
#Test interaction with REQUIRED_USE.
- #~ ResolverPlaygroundTestCase(
- #~ ["=app-portage/A-1"],
- #~ options = { "--autounmask": True },
- #~ use_changes = None,
- #~ success = False),
- #~ ResolverPlaygroundTestCase(
- #~ ["=app-portage/A-2"],
- #~ options = { "--autounmask": True },
- #~ use_changes = None,
- #~ success = False),
+ ResolverPlaygroundTestCase(
+ ["=app-portage/A-1"],
+ options = { "--autounmask": True },
+ use_changes = None,
+ success = False),
+ ResolverPlaygroundTestCase(
+ ["=app-portage/A-2"],
+ options = { "--autounmask": True },
+ use_changes = None,
+ success = False),
)
playground = ResolverPlayground(ebuilds=ebuilds)