Buildroot Archive on 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

* [Buildroot] [PATCH 2/2] support/testing/tests/package/test_perl_*: regeneration
  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 ` Francois Perrad
  2019-03-31 12:03 ` [Buildroot] [PATCH 1/2] utils/scancpan: add a check of XS dependencies in generated test Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Francois Perrad @ 2019-03-29 18:05 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 support/testing/tests/package/test_perl_class_load.py  | 1 +
 support/testing/tests/package/test_perl_libwww_perl.py | 1 +
 support/testing/tests/package/test_perl_mail_dkim.py   | 2 ++
 support/testing/tests/package/test_perl_x10.py         | 1 +
 4 files changed, 5 insertions(+)

diff --git a/support/testing/tests/package/test_perl_class_load.py b/support/testing/tests/package/test_perl_class_load.py
index fbcd904aa..042297002 100644
--- a/support/testing/tests/package/test_perl_class_load.py
+++ b/support/testing/tests/package/test_perl_class_load.py
@@ -25,4 +25,5 @@ class TestPerlClassLoad(TestPerlBase):
 
     def test_run(self):
         self.login()
+        self.module_test("Params::Util")
         self.module_test("Class::Load")
diff --git a/support/testing/tests/package/test_perl_libwww_perl.py b/support/testing/tests/package/test_perl_libwww_perl.py
index af9f7c7ed..7b30e4b94 100644
--- a/support/testing/tests/package/test_perl_libwww_perl.py
+++ b/support/testing/tests/package/test_perl_libwww_perl.py
@@ -36,6 +36,7 @@ class TestPerllibwwwperl(TestPerlBase):
         self.module_test("LWP::UserAgent")
         self.module_test("LWP::Authen::Basic")
         self.module_test("LWP::Authen::Digest")
+        self.module_test("HTML::Parser")
         self.module_test("HTTP::Message")
         self.module_test("HTTP::Daemon")
         self.module_test("WWW::RobotRules")
diff --git a/support/testing/tests/package/test_perl_mail_dkim.py b/support/testing/tests/package/test_perl_mail_dkim.py
index 7affce82b..cd9e75795 100644
--- a/support/testing/tests/package/test_perl_mail_dkim.py
+++ b/support/testing/tests/package/test_perl_mail_dkim.py
@@ -25,4 +25,6 @@ class TestPerlMailDKIM(TestPerlBase):
 
     def test_run(self):
         self.login()
+        self.module_test("Crypt::OpenSSL::Random")
+        self.module_test("Crypt::OpenSSL::RSA")
         self.module_test("Mail::DKIM")
diff --git a/support/testing/tests/package/test_perl_x10.py b/support/testing/tests/package/test_perl_x10.py
index 84feb74e6..b587804a9 100644
--- a/support/testing/tests/package/test_perl_x10.py
+++ b/support/testing/tests/package/test_perl_x10.py
@@ -19,4 +19,5 @@ class TestPerlX10(TestPerlBase):
 
     def test_run(self):
         self.login()
+        self.module_test("Device::SerialPort")
         self.module_test("X10")
-- 
2.17.1

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

* [Buildroot] [PATCH 1/2] utils/scancpan: add a check of XS dependencies in generated test
  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 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-03-31 12:03 UTC (permalink / raw)
  To: buildroot

On Fri, 29 Mar 2019 19:05:24 +0100
Francois Perrad <fperrad@gmail.com> wrote:

> 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(+)

Both applied, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox