summaryrefslogtreecommitdiffstats
path: root/RPM4
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-05-11 23:42:29 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-10-27 23:58:30 +0200
commit437f6b1d82c9a6fbbee2dccd03be8e5f1c71de54 (patch)
tree16382dc997f950da87f16e057af2666d7a884d2e /RPM4
parent3289ff59d49c9c44b97dab46839ae0e63d7e7810 (diff)
downloadperl-RPM4-437f6b1d82c9a6fbbee2dccd03be8e5f1c71de54.tar
perl-RPM4-437f6b1d82c9a6fbbee2dccd03be8e5f1c71de54.tar.gz
perl-RPM4-437f6b1d82c9a6fbbee2dccd03be8e5f1c71de54.tar.bz2
perl-RPM4-437f6b1d82c9a6fbbee2dccd03be8e5f1c71de54.tar.xz
perl-RPM4-437f6b1d82c9a6fbbee2dccd03be8e5f1c71de54.zip
disable tests that involve a pasphrase
rationale: since rpm-4.13, rpm no more offer to ask for passphrase, this is left to gpg see commit 0bce5fcf270711a2e077fba0fb7c5979ea007eb5
Diffstat (limited to 'RPM4')
-rw-r--r--RPM4/NEWS2
-rw-r--r--RPM4/t/06sign.t6
2 files changed, 5 insertions, 3 deletions
diff --git a/RPM4/NEWS b/RPM4/NEWS
index d2bc453..9c5c352 100644
--- a/RPM4/NEWS
+++ b/RPM4/NEWS
@@ -1,4 +1,6 @@
- fix running rpm_produced
+- testsuite:
+ o disable tests that involve a pasphrase
Version 0.36 - 26 October 2016
diff --git a/RPM4/t/06sign.t b/RPM4/t/06sign.t
index 4a8817a..fda5c54 100644
--- a/RPM4/t/06sign.t
+++ b/RPM4/t/06sign.t
@@ -2,7 +2,7 @@
# $Id$
use strict;
-use Test::More tests => 6;
+use Test::More tests => 4;
use FindBin qw($Bin);
use File::Temp qw(tempdir);
use File::Copy;
@@ -20,11 +20,11 @@ RPM4::add_macro("_signature gpg");
RPM4::add_macro("_gpg_name RPM4 test key");
RPM4::add_macro("_gpg_path $Bin/gnupg");
-ok(RPM4::rpmresign($passphrase, "$testdir/test-rpm-1.0-1mdk.noarch.rpm") == 0, "can resign a rpm");
+#ok(RPM4::rpmresign($passphrase, "$testdir/test-rpm-1.0-1mdk.noarch.rpm") == 0, "can resign a rpm");
ok(my $db = RPM4::newdb(1), "Open a new database");
-ok($db->checkrpm("$testdir/test-rpm-1.0-1mdk.noarch.rpm") != 0, "checking a rpm, key is missing");
+#ok($db->checkrpm("$testdir/test-rpm-1.0-1mdk.noarch.rpm") != 0, "checking a rpm, key is missing");
ok($db->checkrpm("$testdir/test-rpm-1.0-1mdk.noarch.rpm", [ "NOSIGNATURES" ]) == 0, "checking a rpm, no checking the key");
ok($db->importpubkey("$Bin/gnupg/test-key.gpg") == 0, "Importing a public key");