aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-01-25 22:20:17 -0800
committerZac Medico <zmedico@gentoo.org>2020-01-25 22:27:00 -0800
commit097cf78c22b3d523f701ab36f47714c604690b23 (patch)
treefba850b5ac40401f374b9d39d77af9843744d703
parentMultirepoTestCase: package.keywords -> package.accept_keywords (diff)
downloadgentoo-portage-097cf78c22b3d523f701ab36f47714c604690b23.tar.xz
gentoo-portage-097cf78c22b3d523f701ab36f47714c604690b23.zip
OrChoicesTestCase: split out bug 480736 libpostproc test case
This case will become an expected failure after bug 706278 is fixed. The packages that triggered bug 480736 not longer exist. Bug: https://bugs.gentoo.org/480736 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--lib/portage/tests/resolver/test_or_choices.py115
1 files changed, 59 insertions, 56 deletions
diff --git a/lib/portage/tests/resolver/test_or_choices.py b/lib/portage/tests/resolver/test_or_choices.py
index 63e62d010..c0316bfb3 100644
--- a/lib/portage/tests/resolver/test_or_choices.py
+++ b/lib/portage/tests/resolver/test_or_choices.py
@@ -78,62 +78,6 @@ class OrChoicesTestCase(TestCase):
finally:
playground.cleanup()
- def testOrChoicesLibpostproc(self):
- ebuilds = {
- "media-video/ffmpeg-0.10" : {
- "EAPI": "5",
- "SLOT": "0.10"
- },
- "media-video/ffmpeg-1.2.2" : {
- "EAPI": "5",
- "SLOT": "0"
- },
- "media-libs/libpostproc-0.8.0.20121125" : {
- "EAPI": "5"
- },
- "media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r1" : {
- "EAPI": "5",
- "RDEPEND" : "|| ( media-video/ffmpeg:0 media-libs/libpostproc )"
- },
- }
-
- installed = {
- "media-video/ffmpeg-0.10" : {
- "EAPI": "5",
- "SLOT": "0.10"
- },
- "media-libs/libpostproc-0.8.0.20121125" : {
- "EAPI": "5"
- },
- "media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r1" : {
- "EAPI": "5",
- "RDEPEND" : "|| ( media-video/ffmpeg:0 media-libs/libpostproc )"
- },
- }
-
- world = ["media-plugins/gst-plugins-ffmpeg"]
-
- test_cases = (
- # Demonstrate that libpostproc is preferred
- # over ffmpeg:0 for bug #480736.
- ResolverPlaygroundTestCase(
- ["@world"],
- options = {"--update": True, "--deep": True},
- success=True,
- all_permutations = True,
- mergelist = []),
- )
-
- playground = ResolverPlayground(ebuilds=ebuilds, installed=installed,
- world=world, debug=False)
- try:
- for test_case in test_cases:
- playground.run_TestCase(test_case)
- self.assertEqual(test_case.test_success, True, test_case.fail_msg)
- finally:
- playground.cleanup()
-
-
def testInitiallyUnsatisfied(self):
ebuilds = {
@@ -340,3 +284,62 @@ class OrChoicesTestCase(TestCase):
# Disable debug so that cleanup works.
playground.debug = False
playground.cleanup()
+
+class OrChoicesLibpostprocTestCase(TestCase):
+
+ def testOrChoicesLibpostproc(self):
+
+ ebuilds = {
+ "media-video/ffmpeg-0.10" : {
+ "EAPI": "5",
+ "SLOT": "0.10"
+ },
+ "media-video/ffmpeg-1.2.2" : {
+ "EAPI": "5",
+ "SLOT": "0"
+ },
+ "media-libs/libpostproc-0.8.0.20121125" : {
+ "EAPI": "5"
+ },
+ "media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r1" : {
+ "EAPI": "5",
+ "RDEPEND" : "|| ( media-video/ffmpeg:0 media-libs/libpostproc )"
+ },
+ }
+
+ installed = {
+ "media-video/ffmpeg-0.10" : {
+ "EAPI": "5",
+ "SLOT": "0.10"
+ },
+ "media-libs/libpostproc-0.8.0.20121125" : {
+ "EAPI": "5"
+ },
+ "media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r1" : {
+ "EAPI": "5",
+ "RDEPEND" : "|| ( media-video/ffmpeg:0 media-libs/libpostproc )"
+ },
+ }
+
+ world = ["media-plugins/gst-plugins-ffmpeg"]
+
+ test_cases = (
+ # Demonstrate that libpostproc is preferred
+ # over ffmpeg:0 for bug #480736.
+ ResolverPlaygroundTestCase(
+ ["@world"],
+ options = {"--update": True, "--deep": True},
+ success=True,
+ all_permutations = True,
+ mergelist = []),
+ )
+
+ playground = ResolverPlayground(ebuilds=ebuilds, installed=installed,
+ world=world, debug=False)
+ try:
+ for test_case in test_cases:
+ playground.run_TestCase(test_case)
+ self.assertEqual(test_case.test_success, True, test_case.fail_msg)
+ finally:
+ playground.debug = False
+ playground.cleanup()