summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-04-23 08:33:25 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-29 14:40:25 +0200
commit6c9e2c8f29b81f63070184817e0b51fcca33ecee (patch)
treeff21e2b55bf15cc96928cfd9c314b2d30bbe296e
parent432b032bcb12ad845a9459738de58f019842ea3b (diff)
downloadurpmi-6c9e2c8f29b81f63070184817e0b51fcca33ecee.tar
urpmi-6c9e2c8f29b81f63070184817e0b51fcca33ecee.tar.gz
urpmi-6c9e2c8f29b81f63070184817e0b51fcca33ecee.tar.bz2
urpmi-6c9e2c8f29b81f63070184817e0b51fcca33ecee.tar.xz
urpmi-6c9e2c8f29b81f63070184817e0b51fcca33ecee.zip
cpan_testers: show verbosely why genhdlist2 do not work
-rw-r--r--NEWS1
-rw-r--r--t/02create_pkgs.t7
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 100329cb..093436e8 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@
o describe more tests to help pinpoint regressions
o do not fail test when libnss.so is not found in Debian 9 or FreeBSD
o fix test with rpm < 4.13 on CentOS7
+ o make sure genhdlist2 works
o perform some file conflict tests only on Mageia
o try harder to find genhdlist2 in uninstalled CPAN modules
o work without glibc-static-devel
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t
index 9733436c..4913e61a 100644
--- a/t/02create_pkgs.t
+++ b/t/02create_pkgs.t
@@ -19,6 +19,13 @@ my $whereis_genhdlist2 = qx(whereis -b genhdlist2);
$whereis_genhdlist2 =~ s/^genhdlist2:\s+//;
ok("whereis genhdlist2", "genhdlist2 emplacement=$whereis_genhdlist2");
+# check that genhdlist2 actually works:
+my $dir = "genhdlist2-test";
+mkdir($dir);
+my $out = `genhdlist2 $dir 2>&1`;
+chomp($out);
+is($out, "no *.rpm found in $dir (use --allow-empty-media?)", "genhdlist2 works");
+
# locally build test rpms
foreach my $dir (grep { -d $_ } glob("data/SPECS/*")) {