All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] utils/scancpan: add a check of XS dependencies in generated test
@ 2019-03-29 18:05 Francois Perrad
  2019-03-29 18:05 ` [Buildroot] [PATCH 2/2] support/testing/tests/package/test_perl_*: regeneration Francois Perrad
  2019-03-31 12:03 ` [Buildroot] [PATCH 1/2] utils/scancpan: add a check of XS dependencies in generated test Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Francois Perrad @ 2019-03-29 18:05 UTC (permalink / raw)
  To: buildroot

The XS modules have a high propability to fail (compared to Pure Perl modules),
so it is valuable to check XS dependencies before the check of the main module.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 utils/scancpan | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/utils/scancpan b/utils/scancpan
index 8073ad197..0e7585e31 100755
--- a/utils/scancpan
+++ b/utils/scancpan
@@ -845,6 +845,14 @@ while (my ($distname, $dist) = each %dist) {
         say {$fh} qq{};
         say {$fh} qq{    def test_run(self):};
         say {$fh} qq{        self.login()};
+        foreach my $dep (sort grep { $is_xs{$_} } @indirect) {
+            $dep =~ s|-|::|g;
+            say {$fh} qq{        self.module_test("${dep}")};
+        }
+        foreach my $dep (sort grep { $is_xs{$_} } @{$deps_runtime{$distname}}) {
+            $dep =~ s|-|::|g;
+            say {$fh} qq{        self.module_test("${dep}")};
+        }
         say {$fh} qq{        self.module_test("${modname}")};
         close $fh;
     }
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-31 12:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-29 18:05 [Buildroot] [PATCH 1/2] utils/scancpan: add a check of XS dependencies in generated test Francois Perrad
2019-03-29 18:05 ` [Buildroot] [PATCH 2/2] support/testing/tests/package/test_perl_*: regeneration Francois Perrad
2019-03-31 12:03 ` [Buildroot] [PATCH 1/2] utils/scancpan: add a check of XS dependencies in generated test Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.