diff options
author | Julian Andres Klode <jak@debian.org> | 2021-10-18 13:36:20 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2021-10-18 13:36:20 +0000 |
commit | f6b08c78dcdda1734710a5ef01553f53ceb5c52e (patch) | |
tree | b424e0113908194e71b602a277a13e6b136df61a /test/integration | |
parent | edf4b2169405e7ca6e21f408229e5fc4bbd4f4ed (diff) | |
parent | cdfae5a9624e7283d372fce261efd018841d21cb (diff) |
Merge branch 'bug-989558' into 'main'
add pattern to select packages by priority (closes: #989558)
See merge request apt-team/apt!185
Diffstat (limited to 'test/integration')
-rwxr-xr-x | test/integration/test-apt-patterns | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/integration/test-apt-patterns b/test/integration/test-apt-patterns index 33df21d36..5355becff 100755 --- a/test/integration/test-apt-patterns +++ b/test/integration/test-apt-patterns @@ -15,6 +15,7 @@ insertinstalledpackage 'automatic2' 'i386' '1.0' 'Source: automatic (1)' insertinstalledpackage 'essential' 'i386' '1.0' 'Essential: yes Section: asection' +insertinstalledpackage 'required' 'i386' '1.0' 'Priority: required' insertinstalledpackage 'conf-only' 'i386' '1.0' '' '' 'deinstall ok config-files' insertinstalledpackage 'broken' 'i386' '1.0' 'Depends: does-not-exist' @@ -96,7 +97,8 @@ foreign/unstable 2.0 amd64 manual1/now 1.0 i386 [installed,local] manual2/now 1.0 i386 [installed,local] nosection/now 29 amd64 [installed,local] -not-obsolete/unstable 2.0 i386 [upgradable from: 1.0]" apt list "$pattern" +not-obsolete/unstable 2.0 i386 [upgradable from: 1.0] +required/now 1.0 i386 [installed,local]" apt list "$pattern" done testsuccessequal "Listing..." apt list '?false' testsuccessequal "Listing..." apt list '?not(?true)' @@ -159,6 +161,9 @@ conf-only/now 1.0 i386 [residual-config]" apt list '?config-files' testsuccessequal "Listing... essential/now 1.0 i386 [installed,local]" apt list '?essential' +testsuccessequal "Listing... +required/now 1.0 i386 [installed,local]" apt list '?priority(required)' + testsuccessequal "Listing..." apt list '?exact-name(automatic)' testsuccessequal "Listing... automatic1/now 1.0 i386 [installed,local]" apt list '?exact-name(automatic1)' @@ -175,7 +180,8 @@ essential/now 1.0 i386 [installed,local] manual1/now 1.0 i386 [installed,local] manual2/now 1.0 i386 [installed,local] nosection/now 29 amd64 [installed,local] -not-obsolete/unstable 2.0 i386 [upgradable from: 1.0]" apt list '?installed' +not-obsolete/unstable 2.0 i386 [upgradable from: 1.0] +required/now 1.0 i386 [installed,local]" apt list '?installed' testsuccessequal "Listing... available/unstable 1.0 all |