diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-08-21 22:53:25 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-11-25 11:32:19 +0100 |
commit | 02b0afd5098534eff34a8fa1d44454c7a3e1ff09 (patch) | |
tree | c352b5670fc18c6e97dbff53aa75538f923647d1 /test | |
parent | 391c9f20208584bf429c7717047a0637d0d670fb (diff) |
patterns: Add ?origin
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-apt-patterns | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/test-apt-patterns b/test/integration/test-apt-patterns index 2fa5d336d..c0b0c18d0 100755 --- a/test/integration/test-apt-patterns +++ b/test/integration/test-apt-patterns @@ -22,6 +22,7 @@ insertpackage 'unstable' 'not-obsolete' 'all' '2.0' insertpackage 'unstable' 'foreign' 'amd64' '2.0' +getoriginfromsuite() { echo -n 'meow'; } setupaptarchive testsuccess aptmark auto automatic1 automatic2 @@ -163,6 +164,11 @@ foreign/unstable 2.0 amd64 not-obsolete/unstable 2.0 i386 [upgradable from: 1.0]" apt list '?not(?obsolete)' testsuccessequal "Listing... +available/unstable 1.0 all +foreign/unstable 2.0 amd64 +not-obsolete/unstable 2.0 i386 [upgradable from: 1.0]" apt list '?origin(^meow$)' + +testsuccessequal "Listing... automatic1/now 1.0 i386 [installed,local] automatic2/now 1.0 i386 [installed,local]" apt list '?source-package(^automatic$)' |