summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-11-26 11:34:34 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2019-11-26 11:34:34 +0100
commit6801e6d2c63d4ff087024fc84a0feb8aef86886b (patch)
tree2be0ce13c2500b4113c3ba721ec6cfaca3706287 /test/integration
parent02b0afd5098534eff34a8fa1d44454c7a3e1ff09 (diff)
patterns: Add ?any-version
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-apt-patterns14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/test-apt-patterns b/test/integration/test-apt-patterns
index c0b0c18d0..767fd22b1 100755
--- a/test/integration/test-apt-patterns
+++ b/test/integration/test-apt-patterns
@@ -104,6 +104,20 @@ testsuccessequal "Listing...
automatic1/now 1.0 i386 [installed,local]" apt list '?and(?name(^automatic),?name(1$))'
+msgmsg "Narrow and friends"
+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 '?and(?version(^1\.0$),?version(^2\.0$))'
+
+testsuccessequal "Listing..." apt list '?any-version(?and(?version(^1\.0$),?version(^2\.0$)))'
+
+# XXX FIXME: I guess we do want this to only show version 1.0?
+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 '?any-version(?and(?version(^1\.0$),?name(not-obsolete)))'
+
+
+
msgmsg "Package patterns"
testsuccessequal "Listing...