This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=32323130dab7e1e5ee1a58ed58aef33d7d32898c

commit 32323130dab7e1e5ee1a58ed58aef33d7d32898c
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Feb 6 10:36:05 2025 +0100

    test: Skip OpenPGP backend tests based on available cmd and cmdv programs
    
    This is a requirement for when we add better cmd vs cmdv support.
---
 scripts/t/Dpkg_OpenPGP.t | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/scripts/t/Dpkg_OpenPGP.t b/scripts/t/Dpkg_OpenPGP.t
index 2902cf6ec..97cde7c51 100644
--- a/scripts/t/Dpkg_OpenPGP.t
+++ b/scripts/t/Dpkg_OpenPGP.t
@@ -60,8 +60,8 @@ foreach my $cmd (@cmds) {
     my $keyfile  = "$datadir/dpkg-test-sec.asc";
 
     SKIP: {
-        skip 'missing backend command', 13
-            unless $openpgp->{backend}->has_verify_cmd();
+        skip 'missing backend command', 9
+            unless $openpgp->{backend}->has_backend_cmd();
 
         ok($openpgp->dearmor('PUBLIC KEY BLOCK', $certfile, 
"$tempdir/dpkg-test-pub.pgp") == OPENPGP_OK(),
             "($backend:$cmd) dearmoring OpenPGP ASCII Armored certificate");
@@ -83,6 +83,11 @@ foreach my $cmd (@cmds) {
             "($backend:$cmd) dearmoring OpenPGP armored signature succeeded");
         test_diff("$datadir/sign-file.sig", "$tempdir/sign-file.sig",
             "($backend:$cmd) dearmored OpenPGP ASCII Armor signature matches");
+    };
+
+    SKIP: {
+        skip 'missing verify command', 4
+            unless $openpgp->{backend}->has_verify_cmd();
 
         ok($openpgp->inline_verify("$datadir/sign-file-inline.asc", undef, 
$certfile) == OPENPGP_OK(),
             "($backend:$cmd) verify OpenPGP ASCII Armor inline signature");

-- 
Dpkg.Org's dpkg

Reply via email to