Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 915969 Details for
Bug 947587
sys-apps/portage-3.0.66.1-35+g6417df1f8: gcc[ada] prefers older gcc slots over ada-bootstrap, leading to multiple gcc builds
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch adding testcase
0001-Add-test-for-bug-947587.patch (text/plain), 3.60 KB, created by
Alfred Wingate
on 2025-01-06 07:49:23 UTC
(
hide
)
Description:
Patch adding testcase
Filename:
MIME Type:
Creator:
Alfred Wingate
Created:
2025-01-06 07:49:23 UTC
Size:
3.60 KB
patch
obsolete
>From 1a2a41b62078f5341d988743a9eb5bf0d8227165 Mon Sep 17 00:00:00 2001 >From: Alfred Wingate <parona@protonmail.com> >Date: Mon, 6 Jan 2025 09:45:50 +0200 >Subject: [PATCH] Add test for bug #947587 > >Bug: https://bugs.gentoo.org/947587 >Signed-off-by: Alfred Wingate <parona@protonmail.com> >--- > lib/portage/tests/resolver/meson.build | 1 + > .../tests/resolver/test_placeholder.py | 76 +++++++++++++++++++ > 2 files changed, 77 insertions(+) > create mode 100644 lib/portage/tests/resolver/test_placeholder.py > >diff --git a/lib/portage/tests/resolver/meson.build b/lib/portage/tests/resolver/meson.build >index ea948982e..8eaf4d13d 100644 >--- a/lib/portage/tests/resolver/meson.build >+++ b/lib/portage/tests/resolver/meson.build >@@ -48,6 +48,7 @@ py.install_sources( > 'test_output.py', > 'test_package_tracker.py', > 'test_perl_rebuild_bug.py', >+ 'test_placeholder.py', > 'test_profile_default_eapi.py', > 'test_profile_package_set.py', > 'test_rebuild.py', >diff --git a/lib/portage/tests/resolver/test_placeholder.py b/lib/portage/tests/resolver/test_placeholder.py >new file mode 100644 >index 000000000..824cecd40 >--- /dev/null >+++ b/lib/portage/tests/resolver/test_placeholder.py >@@ -0,0 +1,76 @@ >+# Copyright 2025 Gentoo Authors >+# Distributed under the terms of the GNU General Public License v2 >+ >+import pytest >+ >+from portage.tests import TestCase >+from portage.tests.resolver.ResolverPlayground import ( >+ ResolverPlayground, >+ ResolverPlaygroundTestCase, >+) >+ >+ >+class PlaceholdernameTestCase(TestCase): >+ @pytest.mark.xfail(reason="bug #947587") >+ def testplaceholdername(self): >+ ebuilds = { >+ "dev-libs/A-1": { >+ "EAPI": "8", >+ "SLOT": "1", >+ "IUSE": "B", >+ "BDEPEND": "B? ( || ( dev-libs/A:1[B] <dev-libs/B-2 ) )", >+ }, >+ "dev-libs/A-2": { >+ "EAPI": "8", >+ "SLOT": "2", >+ "IUSE": "B", >+ "BDEPEND": "B? ( || ( dev-libs/A:2[B] <dev-libs/B-3 <dev-libs/A-2[B] ) )", >+ }, >+ "dev-libs/A-3": { >+ "EAPI": "8", >+ "SLOT": "3", >+ "IUSE": "B", >+ "BDEPEND": "B? ( || ( dev-libs/A:3[B] <dev-libs/B-4 <dev-libs/A-3[B] ) )", >+ }, >+ "dev-libs/A-4": { >+ "EAPI": "8", >+ "SLOT": "4", >+ "IUSE": "B", >+ "BDEPEND": "B? ( || ( dev-libs/A:4[B] <dev-libs/B-5 <dev-libs/A-4[B] ) )", >+ }, >+ "dev-libs/B-1": {}, >+ "dev-libs/B-2": {}, >+ "dev-libs/B-3": {}, >+ "dev-libs/B-4": {}, >+ } >+ >+ installed = { >+ "dev-libs/A-4": { >+ "SLOT": "4", >+ "IUSE": "B", >+ "USE": "", >+ "BDEPEND": "B? ( || ( dev-libs/A:4[B] <dev-libs/B-5 <dev-libs/A-4[B]) )", >+ }, >+ } >+ >+ user_config = { >+ "package.use": ("dev-libs/A B",), >+ } >+ >+ test_cases = ( >+ ResolverPlaygroundTestCase( >+ ["dev-libs/A:4"], >+ success=True, >+ mergelist=["dev-libs/B-4", "dev-libs/A-4"], >+ ), >+ ) >+ >+ playground = ResolverPlayground( >+ ebuilds=ebuilds, installed=installed, user_config=user_config, debug=True >+ ) >+ 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() >-- >2.47.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 947587
:
915968
|
915969
|
915972