diff options
author | 2019-03-29 19:05:24 +0100 | |
---|---|---|
committer | 2019-03-31 14:01:36 +0200 | |
commit | f4a30ae5bd06357b1c1cab96a8d3708896451dea (patch) | |
tree | 317d0e1d8fd7c53ec18e83f27f57eac399226c6b /utils | |
parent | 573d15b0790cfd2838cf0544ded79b415e20f5a7 (diff) | |
download | buildroot-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')
-rwxr-xr-x | utils/scancpan | 8 |
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; } |