summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-apt-patterns10
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