summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--t/02create_pkgs.t3
-rw-r--r--t/superuser--rpm.t11
2 files changed, 13 insertions, 1 deletions
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t
index 9fbf232c..84fac0af 100644
--- a/t/02create_pkgs.t
+++ b/t/02create_pkgs.t
@@ -2,6 +2,7 @@
use strict;
use lib '.', 't';
+use Config;
use helper;
use Test::More 'no_plan';
use Cwd;
@@ -40,6 +41,8 @@ foreach my $dir (grep { -d $_ } glob("data/SPECS/*")) {
}
foreach my $spec (glob("data/SPECS/*.spec")) {
+ warn "SKIPPING /rpm-query-in-scriptlet/" if $spec =~ /rpm-query-in-scriptlet/ && $Config{archname} =~ /bsd/;
+ next if $spec =~ /rpm-query-in-scriptlet/ && $Config{archname} =~ /bsd/;
my $name = rpmbuild($spec);
if ($name eq 'various') {
diff --git a/t/superuser--rpm.t b/t/superuser--rpm.t
index 9e4bad0a..71a16cb1 100644
--- a/t/superuser--rpm.t
+++ b/t/superuser--rpm.t
@@ -3,13 +3,22 @@
use strict;
use lib '.', 't';
use helper;
-use Test::More 'no_plan';
+use Config;
+use Test::More;
+
+if ($Config{archname} =~ /bsd/) {
+ plan skip_all => "we cannot build rpm-query-in-scriptlet on FreeBSD due to cpio failure";
+} else {
+ plan 'no_plan';
+}
+
my $name = 'rpm-query-in-scriptlet';
need_root_and_prepare();
system_('mkdir -p root/var/lib/rpm');
test_rpm_query_in_scriptlet();
+done_testing();
sub test_rpm_query_in_scriptlet {
system_("rpm --root $::pwd/root -i media/$name/$name*.rpm --nodeps");