tests.test_manager_emerge moduleΒΆ
Portage emerge exact-match tests.
They replay what Portage 3.0.81.3 and qlist printed on a Gentoo arm64 host, so they
need neither Portage nor a Gentoo host.
- tests.test_manager_emerge.SEARCH_OUTPUT = '[gentoo] Local copy of remote index is within TTL and will be used.\n\n[ Results for search key : %^tmux$ ]\nSearching...\n\n* app-misc/tmux\n Latest version available: 3.6a\n Latest version installed: [ Not Installed ]\n Size of files: 734 KiB\n Homepage: https://tmux.github.io/\n Description: Terminal multiplexer\n License: ISC\n\n[ Applications found : 1 ]\n\n'ΒΆ
emerge --color n --nospinner --search %^tmux$.
- tests.test_manager_emerge.INSTALLED_OUTPUT = 'app-admin/sudo-1.9.17_p2\ndev-perl/SGMLSpm-1.1-r2\nsys-process/htop-3.5.3\n'ΒΆ
Three rows of
qlist --installed --verbose --nocolor.
- tests.test_manager_emerge.NEW_DEPENDENCIES_PLAN = '\nThese are the packages that would be merged, in order:\n\nCalculating dependencies ... done!\nDependency resolution took 5.36 s (backtrack: 2/20).\n\n[binary N g ] dev-perl/Error [0.170.300-r1-2] USE="-test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" \n[binary N g ] dev-perl/Crypt-URandom [0.550.0-1] USE="-test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" \n[binary N g ] dev-perl/TimeDate [2.330.0-r1-4] USE="-test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" \n[binary N g ] dev-perl/Net-SSLeay [1.960.0-r1-1] USE="-examples -minimal -test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" \n[binary N g ] virtual/perl-Digest-MD5 [2.590.0-r1-1] \n[binary N g ] virtual/perl-Digest-SHA [6.40.0-r3-1] \n[binary NSg ] dev-build/autoconf [2.73-r2-1] [2.72-r7]\n[binary N g ] dev-perl/Digest-HMAC [1.50.0-2] USE="-test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" \n[binary N g ] dev-perl/IO-Socket-SSL [2.95.0-2] USE="-examples -idn -test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" \n[binary N g ] virtual/perl-libnet [3.150.0-r3-1] USE="ssl" \n[binary N g ] dev-perl/Authen-SASL [2.200.0-1] USE="-kerberos -test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" \n[binary N g ] dev-perl/MailTools [2.220.0-2] USE="-examples -test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" \n[binary N g ] dev-vcs/git [2.55.0-1] USE="curl gpg iconv nls pcre perl rust safe-directory webdav -cgi -cvs -debug -doc -highlight -keyring -perforce (-selinux) -subversion -test -tk -xinetd" PYTHON_SINGLE_TARGET="python3_14 -python3_12 -python3_13" \n[ebuild U *] sys-process/htop [9999] [3.5.3]\n\n * IMPORTANT: 26 news items need reading for repository \'gentoo\'.\n * Use eselect news read to view new items.\n\n'ΒΆ
emerge --color n --nospinner --update --deep --pretend --columns @world, oncesys-process/htop **admits the live ebuild, which pulls indev-vcs/git.
- tests.test_manager_emerge.DOWNGRADE_PLAN = '\nThese are the packages that would be merged, in order:\n\nCalculating dependencies . ... done!\nDependency resolution took 2.77 s (backtrack: 0/20).\n\n[ebuild UD ] sys-process/htop [3.5.1] [3.5.3] USE="-openvz% -vserver%" \n\n * IMPORTANT: 26 news items need reading for repository \'gentoo\'.\n * Use eselect news read to view new items.\n\n'ΒΆ
The same plan once
=sys-process/htop-3.5.3is masked.
- tests.test_manager_emerge.replaying(monkeypatch, output)[source]ΒΆ
A manager whose every command prints
output.- Return type:
- tests.test_manager_emerge.test_exact_search_matches_the_bare_name(monkeypatch)[source]ΒΆ
An exact query names the package without the category its ID carries.