summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-18 13:58:18 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-18 14:11:03 +0200
commit7ec19b3afc4ee26e784479a22786b6ed5341ee92 (patch)
tree1cf35207832e4636ee74cbb0fbb07953094a5d44
parent2dd92fa49e8cda370682e70ac3921ca12002feb1 (diff)
downloadperl-RPM4-7ec19b3afc4ee26e784479a22786b6ed5341ee92.tar
perl-RPM4-7ec19b3afc4ee26e784479a22786b6ed5341ee92.tar.gz
perl-RPM4-7ec19b3afc4ee26e784479a22786b6ed5341ee92.tar.bz2
perl-RPM4-7ec19b3afc4ee26e784479a22786b6ed5341ee92.tar.xz
perl-RPM4-7ec19b3afc4ee26e784479a22786b6ed5341ee92.zip
*BSD/Debian/Ubuntu do not have a system wide rpmdb
-rw-r--r--RPM4/t/05transaction.t8
-rw-r--r--RPM4/t/06sign.t8
-rw-r--r--RPM4/t/09hdlist.t8
3 files changed, 21 insertions, 3 deletions
diff --git a/RPM4/t/05transaction.t b/RPM4/t/05transaction.t
index fe6e405..66d6444 100644
--- a/RPM4/t/05transaction.t
+++ b/RPM4/t/05transaction.t
@@ -2,13 +2,19 @@
# $Id$
use strict;
-use Test::More tests => 45;
+use Test::More;
use FindBin qw($Bin);
use File::Path;
use File::Temp qw(tempdir);
use RPM4;
use RPM4::Transaction::Problems;
+if (-e '/etc/debian_version' || `uname -a` =~ /BSD/i) {
+ plan skip_all => "*BSD/Debian/Ubuntu do not have a system wide rpmdb";
+} else {
+ plan tests => 45;
+}
+
# Test on wrong db
RPM4::add_macro("_dbpath /dev/null");
ok(RPM4::rpmdbverify != 0, "Verify non existing database (get error)");
diff --git a/RPM4/t/06sign.t b/RPM4/t/06sign.t
index fda5c54..e5b8f83 100644
--- a/RPM4/t/06sign.t
+++ b/RPM4/t/06sign.t
@@ -2,12 +2,18 @@
# $Id$
use strict;
-use Test::More tests => 4;
+use Test::More;
use FindBin qw($Bin);
use File::Temp qw(tempdir);
use File::Copy;
use RPM4;
+if (-e '/etc/debian_version' || `uname -a` =~ /BSD/i) {
+ plan skip_all => "*BSD/Debian/Ubuntu do not have a system wide rpmdb";
+} else {
+ plan tests => 4;
+}
+
my $passphrase = "RPM4";
my $testdir = tempdir(CLEANUP => 1);
diff --git a/RPM4/t/09hdlist.t b/RPM4/t/09hdlist.t
index 1027b2c..d889d38 100644
--- a/RPM4/t/09hdlist.t
+++ b/RPM4/t/09hdlist.t
@@ -2,11 +2,17 @@
# $Id$
use strict;
-use Test::More tests => 6;
+use Test::More;
use FindBin qw($Bin);
use File::Temp qw(tempdir);
use File::Glob;
+if (-e '/etc/debian_version' || `uname -a` =~ /BSD/i) {
+ plan skip_all => "*BSD/Debian/Ubuntu do not have a system wide rpmdb";
+} else {
+ plan tests => 6;
+}
+
my $testdir = tempdir(CLEANUP => 1);
use_ok('RPM4');