]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-policy-pinning
support regex and co in 'apt-cache policy $pkg' again
[apt.git] / test / integration / test-policy-pinning
index dba8736564f0cb46a6437d64610b1dc2fbe5c0dd..062c8058f0e3525306a59ba78726bc1a712d6a4e 100755 (executable)
@@ -83,6 +83,15 @@ buildsimplenativepackage "coolstuff" "all" "2.0~bpo1" "backports"
 
 setupaptarchive
 
 
 setupaptarchive
 
+testsuccessequal "coolstuff:
+  Installed: (none)
+  Candidate: 2.0~bpo1
+  Version table:
+     2.0~bpo1 500
+        500 file:${APTARCHIVE} backports/main all Packages
+     1.0 500
+        500 file:${APTARCHIVE} stable/main all Packages" apt policy '^cool.*'
+
 testequalpolicycoolstuff() {
        local INSTALLED="${1:-(none)}"
        local CANDIDATE="${2:-(none)}"
 testequalpolicycoolstuff() {
        local INSTALLED="${1:-(none)}"
        local CANDIDATE="${2:-(none)}"