aboutsummaryrefslogtreecommitdiff
path: root/utils/scancpan
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2019-03-29 19:05:24 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-03-31 14:01:36 +0200
commitf4a30ae5bd06357b1c1cab96a8d3708896451dea (patch)
tree317d0e1d8fd7c53ec18e83f27f57eac399226c6b /utils/scancpan
parent573d15b0790cfd2838cf0544ded79b415e20f5a7 (diff)
downloadbuildroot-f4a30ae5bd06357b1c1cab96a8d3708896451dea.tar.gz
buildroot-f4a30ae5bd06357b1c1cab96a8d3708896451dea.tar.bz2
utils/scancpan: add a check of XS dependencies in generated test
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> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'utils/scancpan')
-rwxr-xr-xutils/scancpan8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/scancpan b/utils/scancpan
index 8073ad1978..0e7585e312 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;
}