Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 516926 Details for
Bug 645914
virtual deps no longer correctly satisfied when using ||() deps
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
unit test for virtual/target-os with targetroot=True
test_virtual_target_os.py (text/x-python), 1.98 KB, created by
Zac Medico
on 2018-01-27 21:43:13 UTC
(
hide
)
Description:
unit test for virtual/target-os with targetroot=True
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2018-01-27 21:43:13 UTC
Size:
1.98 KB
patch
obsolete
># Copyright 2018 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >from portage.tests import TestCase >from portage.tests.resolver.ResolverPlayground import ( > ResolverPlayground, > ResolverPlaygroundTestCase, >) > >class VirtualTargetOsTestCase(TestCase): > > def testVirtualTargetOs(self): > binpkgs = { > 'app-eselect/eselect-awk-0.2': {}, > 'sys-apps/gawk-4.1.4': { > 'RDEPEND': 'sys-libs/readline' > }, > 'sys-apps/mawk-1.3.4_p20171017-r1': { > 'RDEPEND': 'app-eselect/eselect-awk' > }, > 'sys-libs/ncurses-6.0-r2': {}, > 'sys-libs/readline-7.0_p3': { > 'RDEPEND': 'sys-libs/ncurses' > }, > 'virtual/awk-1': { > 'RDEPEND': '|| ( >=sys-apps/gawk-4.0.1-r1 sys-apps/mawk )' > }, > 'virtual/implicit-system-1': { > 'RDEPEND': '|| ( sys-apps/mawk )' > }, > 'virtual/target-os-1': { > 'RDEPEND': '|| ( virtual/implicit-system virtual/awk )' > }, > } > > test_cases = ( > # bug 645914 > ResolverPlaygroundTestCase( > ['virtual/target-os'], > options={'--usepkgonly': True}, > success=True, > mergelist=[ > '[binary]app-eselect/eselect-awk-0.2{targetroot}', > '[binary]sys-apps/mawk-1.3.4_p20171017-r1{targetroot}', > '[binary]virtual/implicit-system-1{targetroot}', > '[binary]virtual/target-os-1{targetroot}', > ] > ), > # test gawk preference > ResolverPlaygroundTestCase( > ['sys-apps/gawk', 'virtual/target-os'], > options={'--usepkgonly': True}, > success=True, > mergelist=[ > '[binary]sys-libs/ncurses-6.0-r2{targetroot}', > '[binary]sys-libs/readline-7.0_p3{targetroot}', > '[binary]sys-apps/gawk-4.1.4{targetroot}', > '[binary]virtual/awk-1{targetroot}', > '[binary]virtual/target-os-1{targetroot}', > ] > ), > ) > > playground = ResolverPlayground(debug=False, > binpkgs=binpkgs, targetroot=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.debug = False > playground.cleanup()
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 Raw
Actions:
View
Attachments on
bug 645914
:
516924
|
516926
|
516934
|
516936