diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-08-21 22:21:30 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-11-25 11:32:19 +0100 |
commit | 7fa292edbe924923cc689721fe58244ca0a40bcd (patch) | |
tree | fad811887e13057885056900431bdce9de62e487 /test | |
parent | 8428114608627fe0a08dcf1589931f6db025f0b4 (diff) |
patterns: Add ?source-name and ?source-version
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-apt-patterns | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/integration/test-apt-patterns b/test/integration/test-apt-patterns index a78413011..c030e37ec 100755 --- a/test/integration/test-apt-patterns +++ b/test/integration/test-apt-patterns @@ -10,8 +10,8 @@ insertpackage 'unstable' 'available' 'all' '1.0' insertinstalledpackage 'manual1' 'i386' '1.0' 'Depends: automatic1' insertinstalledpackage 'manual2' 'i386' '1.0' -insertinstalledpackage 'automatic1' 'i386' '1.0' -insertinstalledpackage 'automatic2' 'i386' '1.0' +insertinstalledpackage 'automatic1' 'i386' '1.0' 'Source: automatic (0)' +insertinstalledpackage 'automatic2' 'i386' '1.0' 'Source: automatic (1)' insertinstalledpackage 'essential' 'i386' '1.0' 'Essential: yes' insertinstalledpackage 'conf-only' 'i386' '1.0' '' '' 'deinstall ok config-files' @@ -158,6 +158,13 @@ foreign/unstable 2.0 amd64 not-obsolete/unstable 2.0 i386 [upgradable from: 1.0]" apt list '?not(?obsolete)' testsuccessequal "Listing... +automatic1/now 1.0 i386 [installed,local] +automatic2/now 1.0 i386 [installed,local]" apt list '?source-package(^automatic$)' + +testsuccessequal "Listing... +automatic2/now 1.0 i386 [installed,local]" apt list '?source-version(^1$)' + +testsuccessequal "Listing... not-obsolete/unstable 2.0 i386 [upgradable from: 1.0] N: There is 1 additional version. Please use the '-a' switch to see it" apt list '?upgradable' |