summaryrefslogtreecommitdiffstats
path: root/RPM4/t
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4/t')
-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');