1 |
commit: 45bdfae8b20dc24559d325db7322576855d6a582 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 26 12:40:15 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 26 22:07:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=45bdfae8 |
7 |
|
8 |
test_required_use: Add tests for ?? operator |
9 |
|
10 |
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
pym/portage/tests/resolver/test_required_use.py | 12 ++++++++++++ |
13 |
1 file changed, 12 insertions(+) |
14 |
|
15 |
diff --git a/pym/portage/tests/resolver/test_required_use.py b/pym/portage/tests/resolver/test_required_use.py |
16 |
index c8810faef..d40222204 100644 |
17 |
--- a/pym/portage/tests/resolver/test_required_use.py |
18 |
+++ b/pym/portage/tests/resolver/test_required_use.py |
19 |
@@ -44,6 +44,12 @@ class RequiredUSETestCase(TestCase): |
20 |
"dev-libs/D-3" : {"EAPI": "4", "IUSE": "+w +x y z", "REQUIRED_USE": "w? ( x || ( y z ) )"}, |
21 |
"dev-libs/D-4" : {"EAPI": "4", "IUSE": "+w x +y +z", "REQUIRED_USE": "w? ( x || ( y z ) )"}, |
22 |
"dev-libs/D-5" : {"EAPI": "4", "IUSE": "w x y z", "REQUIRED_USE": "w? ( x || ( y z ) )"}, |
23 |
+ |
24 |
+ "dev-libs/E-1" : {"EAPI": "5", "IUSE": "foo bar", "REQUIRED_USE": "?? ( foo bar )"}, |
25 |
+ "dev-libs/E-2" : {"EAPI": "5", "IUSE": "foo +bar", "REQUIRED_USE": "?? ( foo bar )"}, |
26 |
+ "dev-libs/E-3" : {"EAPI": "5", "IUSE": "+foo bar", "REQUIRED_USE": "?? ( foo bar )"}, |
27 |
+ "dev-libs/E-4" : {"EAPI": "5", "IUSE": "+foo +bar", "REQUIRED_USE": "?? ( foo bar )"}, |
28 |
+ "dev-libs/E-5" : {"EAPI": "5", "IUSE": "+foo +bar", "REQUIRED_USE": "?? ( )"}, |
29 |
} |
30 |
|
31 |
test_cases = ( |
32 |
@@ -79,6 +85,12 @@ class RequiredUSETestCase(TestCase): |
33 |
ResolverPlaygroundTestCase(["=dev-libs/D-3"], success = False), |
34 |
ResolverPlaygroundTestCase(["=dev-libs/D-4"], success = False), |
35 |
ResolverPlaygroundTestCase(["=dev-libs/D-5"], success = True, mergelist=["dev-libs/D-5"]), |
36 |
+ |
37 |
+ ResolverPlaygroundTestCase(["=dev-libs/E-1"], success = True, mergelist=["dev-libs/E-1"]), |
38 |
+ ResolverPlaygroundTestCase(["=dev-libs/E-2"], success = True, mergelist=["dev-libs/E-2"]), |
39 |
+ ResolverPlaygroundTestCase(["=dev-libs/E-3"], success = True, mergelist=["dev-libs/E-3"]), |
40 |
+ ResolverPlaygroundTestCase(["=dev-libs/E-4"], success = False), |
41 |
+ ResolverPlaygroundTestCase(["=dev-libs/E-5"], success = True, mergelist=["dev-libs/E-5"]), |
42 |
) |
43 |
|
44 |
playground = ResolverPlayground(ebuilds=ebuilds) |