1 |
commit: 097cf78c22b3d523f701ab36f47714c604690b23 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 26 06:20:17 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 26 06:27:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=097cf78c |
7 |
|
8 |
OrChoicesTestCase: split out bug 480736 libpostproc test case |
9 |
|
10 |
This case will become an expected failure after bug 706278 |
11 |
is fixed. The packages that triggered bug 480736 not longer |
12 |
exist. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/480736 |
15 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
16 |
|
17 |
lib/portage/tests/resolver/test_or_choices.py | 115 +++++++++++++------------- |
18 |
1 file changed, 59 insertions(+), 56 deletions(-) |
19 |
|
20 |
diff --git a/lib/portage/tests/resolver/test_or_choices.py b/lib/portage/tests/resolver/test_or_choices.py |
21 |
index 63e62d010..c0316bfb3 100644 |
22 |
--- a/lib/portage/tests/resolver/test_or_choices.py |
23 |
+++ b/lib/portage/tests/resolver/test_or_choices.py |
24 |
@@ -78,62 +78,6 @@ class OrChoicesTestCase(TestCase): |
25 |
finally: |
26 |
playground.cleanup() |
27 |
|
28 |
- def testOrChoicesLibpostproc(self): |
29 |
- ebuilds = { |
30 |
- "media-video/ffmpeg-0.10" : { |
31 |
- "EAPI": "5", |
32 |
- "SLOT": "0.10" |
33 |
- }, |
34 |
- "media-video/ffmpeg-1.2.2" : { |
35 |
- "EAPI": "5", |
36 |
- "SLOT": "0" |
37 |
- }, |
38 |
- "media-libs/libpostproc-0.8.0.20121125" : { |
39 |
- "EAPI": "5" |
40 |
- }, |
41 |
- "media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r1" : { |
42 |
- "EAPI": "5", |
43 |
- "RDEPEND" : "|| ( media-video/ffmpeg:0 media-libs/libpostproc )" |
44 |
- }, |
45 |
- } |
46 |
- |
47 |
- installed = { |
48 |
- "media-video/ffmpeg-0.10" : { |
49 |
- "EAPI": "5", |
50 |
- "SLOT": "0.10" |
51 |
- }, |
52 |
- "media-libs/libpostproc-0.8.0.20121125" : { |
53 |
- "EAPI": "5" |
54 |
- }, |
55 |
- "media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r1" : { |
56 |
- "EAPI": "5", |
57 |
- "RDEPEND" : "|| ( media-video/ffmpeg:0 media-libs/libpostproc )" |
58 |
- }, |
59 |
- } |
60 |
- |
61 |
- world = ["media-plugins/gst-plugins-ffmpeg"] |
62 |
- |
63 |
- test_cases = ( |
64 |
- # Demonstrate that libpostproc is preferred |
65 |
- # over ffmpeg:0 for bug #480736. |
66 |
- ResolverPlaygroundTestCase( |
67 |
- ["@world"], |
68 |
- options = {"--update": True, "--deep": True}, |
69 |
- success=True, |
70 |
- all_permutations = True, |
71 |
- mergelist = []), |
72 |
- ) |
73 |
- |
74 |
- playground = ResolverPlayground(ebuilds=ebuilds, installed=installed, |
75 |
- world=world, debug=False) |
76 |
- try: |
77 |
- for test_case in test_cases: |
78 |
- playground.run_TestCase(test_case) |
79 |
- self.assertEqual(test_case.test_success, True, test_case.fail_msg) |
80 |
- finally: |
81 |
- playground.cleanup() |
82 |
- |
83 |
- |
84 |
def testInitiallyUnsatisfied(self): |
85 |
|
86 |
ebuilds = { |
87 |
@@ -340,3 +284,62 @@ class OrChoicesTestCase(TestCase): |
88 |
# Disable debug so that cleanup works. |
89 |
playground.debug = False |
90 |
playground.cleanup() |
91 |
+ |
92 |
+class OrChoicesLibpostprocTestCase(TestCase): |
93 |
+ |
94 |
+ def testOrChoicesLibpostproc(self): |
95 |
+ |
96 |
+ ebuilds = { |
97 |
+ "media-video/ffmpeg-0.10" : { |
98 |
+ "EAPI": "5", |
99 |
+ "SLOT": "0.10" |
100 |
+ }, |
101 |
+ "media-video/ffmpeg-1.2.2" : { |
102 |
+ "EAPI": "5", |
103 |
+ "SLOT": "0" |
104 |
+ }, |
105 |
+ "media-libs/libpostproc-0.8.0.20121125" : { |
106 |
+ "EAPI": "5" |
107 |
+ }, |
108 |
+ "media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r1" : { |
109 |
+ "EAPI": "5", |
110 |
+ "RDEPEND" : "|| ( media-video/ffmpeg:0 media-libs/libpostproc )" |
111 |
+ }, |
112 |
+ } |
113 |
+ |
114 |
+ installed = { |
115 |
+ "media-video/ffmpeg-0.10" : { |
116 |
+ "EAPI": "5", |
117 |
+ "SLOT": "0.10" |
118 |
+ }, |
119 |
+ "media-libs/libpostproc-0.8.0.20121125" : { |
120 |
+ "EAPI": "5" |
121 |
+ }, |
122 |
+ "media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r1" : { |
123 |
+ "EAPI": "5", |
124 |
+ "RDEPEND" : "|| ( media-video/ffmpeg:0 media-libs/libpostproc )" |
125 |
+ }, |
126 |
+ } |
127 |
+ |
128 |
+ world = ["media-plugins/gst-plugins-ffmpeg"] |
129 |
+ |
130 |
+ test_cases = ( |
131 |
+ # Demonstrate that libpostproc is preferred |
132 |
+ # over ffmpeg:0 for bug #480736. |
133 |
+ ResolverPlaygroundTestCase( |
134 |
+ ["@world"], |
135 |
+ options = {"--update": True, "--deep": True}, |
136 |
+ success=True, |
137 |
+ all_permutations = True, |
138 |
+ mergelist = []), |
139 |
+ ) |
140 |
+ |
141 |
+ playground = ResolverPlayground(ebuilds=ebuilds, installed=installed, |
142 |
+ world=world, debug=False) |
143 |
+ try: |
144 |
+ for test_case in test_cases: |
145 |
+ playground.run_TestCase(test_case) |
146 |
+ self.assertEqual(test_case.test_success, True, test_case.fail_msg) |
147 |
+ finally: |
148 |
+ playground.debug = False |
149 |
+ playground.cleanup() |