summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-04-26 07:59:41 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-29 14:44:10 +0200
commitd78b5f513a2874b4fdce5a6b673e6f33bdc9ebd3 (patch)
tree626d030154c19a7917109c007a4deabef9a79633
parent8478a2d61b40936322e4350235b35b449c61e453 (diff)
downloadurpmi-d78b5f513a2874b4fdce5a6b673e6f33bdc9ebd3.tar
urpmi-d78b5f513a2874b4fdce5a6b673e6f33bdc9ebd3.tar.gz
urpmi-d78b5f513a2874b4fdce5a6b673e6f33bdc9ebd3.tar.bz2
urpmi-d78b5f513a2874b4fdce5a6b673e6f33bdc9ebd3.tar.xz
urpmi-d78b5f513a2874b4fdce5a6b673e6f33bdc9ebd3.zip
skip rpm-query-in-scriptlet.spec on FreeBSD
because of: + cd / + cpio -pumdL /usr/home/cpansand/.cpan/build/2020042509/urpmi-v8.121.15-2/t/tmp/BUILDROOT/rpm-query-in-scriptlet-1-1.x86_64 cpio: Can't stat /bin/sh: cpio: Can't stat /usr/local/bin/rpm: 24035 blocks error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042509/urpmi-v8.121.15-2/t/tmp/rpm-tmp.Q4A94o (%install) See related debuging in: http://www.cpantesters.org/cpan/report/e7284484-878b-11ea-a99d-f0811f24ea8f + grep / list + ls -l /usr/local/lib/libnss3.so /bin/sh /bin/sh: /lib/libedit.so.7 /lib/libc.so.7 /lib/libncursesw.so.9 /usr/local/bin/rpm /usr/local/bin/rpm: /usr/local/lib/librpm.so.9 /usr/local/lib/librpmio.so.9 /usr/local/lib/libdb-5.3.so.0 /usr/local/lib/libnss3.so /usr/lib/libbz2.so.4 /lib/libz.so.6 /usr/local/lib/libpopt.so.0 /usr/lib/liblzma.so.5 /usr/local/lib/libzstd.so.1 /usr/local/lib/liblua-5.2.so /lib/libm.so.5 /lib/libthr.so.3 /usr/local/lib/libintl.so.8 /lib/libc.so.7 /usr/local/lib/libnssutil3.so /usr/local/lib/libplc4.so /usr/local/lib/libplds4.so /usr/local/lib/libnspr4.so /usr/lib/libdl.so.1 ls: /bin/sh:: No such file or directory ls: /usr/local/bin/rpm:: No such file or directory error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042520/urpmi-v8.121.17-2/t/tmp/rpm-tmp.GcQOIE (%install)
-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");