summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-08-15 13:36:04 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2019-08-15 20:21:34 +0200
commitaf674d82d5cd36e22223ec49675d32adad07e0a9 (patch)
treeec87d76fccf193bc56756e56b0275d2701685f09 /test
parent08762e0e4e2923360339eeb4d8ed26a00d7f1de5 (diff)
Add the ?exact-name pattern
The ?exact-name pattern matches the name exactly, there is no substring matching going on, or any regular expression or fnmatch magic.
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-apt-patterns4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/test-apt-patterns b/test/integration/test-apt-patterns
index 1efb10d2d..c75793e55 100755
--- a/test/integration/test-apt-patterns
+++ b/test/integration/test-apt-patterns
@@ -125,6 +125,10 @@ 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..." apt list '?exact-name(automatic)'
+testsuccessequal "Listing...
+automatic1/now 1.0 i386 [installed,local]" apt list '?exact-name(automatic1)'
+
testsuccessequal "Listing...
automatic2/now 1.0 i386 [installed,local]" apt list '?garbage'