* [Buildroot] [PATCH/next v2 1/8] support/testing: add perl test
2018-11-23 4:31 [Buildroot] [PATCH/next v2 0/8] suppport/testing: Perl interpreter and CPAN modules Francois Perrad
@ 2018-11-23 4:31 ` Francois Perrad
2018-11-24 2:00 ` Ricardo Martincoski
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 2/8] scancpan: add generation of test Francois Perrad
` (6 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Francois Perrad @ 2018-11-23 4:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
.gitlab-ci.yml | 1 +
support/testing/tests/package/test_perl.py | 66 ++++++++++++++++++++++
2 files changed, 67 insertions(+)
create mode 100644 support/testing/tests/package/test_perl.py
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0dfb3537c..ae5d57026 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -312,6 +312,7 @@ tests.init.test_systemd.TestInitSystemSystemdRwNetworkd: *runtime_test
tests.package.test_dropbear.TestDropbear: *runtime_test
tests.package.test_ipython.TestIPythonPy2: *runtime_test
tests.package.test_ipython.TestIPythonPy3: *runtime_test
+tests.package.test_perl.TestPerl: *runtime_test
tests.package.test_python.TestPython2: *runtime_test
tests.package.test_python.TestPython3: *runtime_test
tests.package.test_python_autobahn.TestPythonPy2Autobahn: *runtime_test
diff --git a/support/testing/tests/package/test_perl.py b/support/testing/tests/package/test_perl.py
new file mode 100644
index 000000000..04ec3e5f4
--- /dev/null
+++ b/support/testing/tests/package/test_perl.py
@@ -0,0 +1,66 @@
+import os
+
+import infra.basetest
+
+
+class TestPerlBase(infra.basetest.BRTest):
+ config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
+ """
+ BR2_TARGET_ROOTFS_CPIO=y
+ # BR2_TARGET_ROOTFS_TAR is not set
+ """
+
+ def login(self):
+ cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
+ self.emulator.boot(arch="armv7",
+ kernel="builtin",
+ options=["-initrd", cpio_file])
+ self.emulator.login()
+
+ def module_test(self, module, script="1"):
+ cmd = "perl -M{} -e '{}'".format(module, script)
+ _, exit_code = self.emulator.run(cmd)
+ self.assertEqual(exit_code, 0)
+
+
+class TestPerl(TestPerlBase):
+ config = TestPerlBase.config + \
+ """
+ BR2_PACKAGE_PERL=y
+ """
+
+ def version_test(self):
+ cmd = "perl -v"
+ output, exit_code = self.emulator.run(cmd)
+ self.assertEqual(exit_code, 0)
+ self.assertIn("This is perl 5", output[1])
+
+ def core_modules_test(self):
+ self.module_test("Cwd")
+ self.module_test("Data::Dumper")
+ self.module_test("Devel::Peek")
+ self.module_test("Digest::MD5")
+ self.module_test("Digest::SHA")
+ self.module_test("Encode")
+ self.module_test("Fcntl")
+ self.module_test("File::Glob")
+ self.module_test("Hash::Util")
+ self.module_test("I18N::Langinfo")
+ self.module_test("IO")
+ self.module_test("IPC::SysV")
+ self.module_test("List::Util")
+ self.module_test("MIME::Base64")
+ self.module_test("POSIX")
+ self.module_test("Socket")
+ self.module_test("Storable")
+ self.module_test("Sys::Hostname")
+ self.module_test("Sys::Syslog")
+ self.module_test("Time::HiRes")
+ self.module_test("Time::Piece")
+ self.module_test("Unicode::Collate")
+ self.module_test("Unicode::Normalize")
+
+ def test_run(self):
+ self.login()
+ self.version_test()
+ self.core_modules_test()
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [Buildroot] [PATCH/next v2 1/8] support/testing: add perl test
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 1/8] support/testing: add perl test Francois Perrad
@ 2018-11-24 2:00 ` Ricardo Martincoski
0 siblings, 0 replies; 16+ messages in thread
From: Ricardo Martincoski @ 2018-11-24 2:00 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, Nov 23, 2018 at 02:31 AM, Francois Perrad wrote:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
[https://gitlab.com/RicardoMartincoski/buildroot/-/jobs/124872328
and also I tested that calling module_test with a module that is not in the
built image fails the test case as expected]
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
> ---
[snip]
> + self.module_test("IO")
This is the only one that generates a warning.
# perl -MIO -e '1'
Parameterless "use IO" deprecated at -e line 0.
# echo $?
0
But the warning is harmless. This usage is marked as deprecated but still works
(command below succeeds) and therefore the core module *is* being tested.
perl -MIO:Dir -e 'IO::Dir->new(".");'
So my tags above stand.
Regards,
Ricardo
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Buildroot] [PATCH/next v2 2/8] scancpan: add generation of test
2018-11-23 4:31 [Buildroot] [PATCH/next v2 0/8] suppport/testing: Perl interpreter and CPAN modules Francois Perrad
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 1/8] support/testing: add perl test Francois Perrad
@ 2018-11-23 4:31 ` Francois Perrad
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 3/8] support/testing: add perl-class-load test Francois Perrad
` (5 subsequent siblings)
7 siblings, 0 replies; 16+ messages in thread
From: Francois Perrad @ 2018-11-23 4:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
utils/scancpan | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/utils/scancpan b/utils/scancpan
index 78ea08c6e..2a58591e5 100755
--- a/utils/scancpan
+++ b/utils/scancpan
@@ -575,6 +575,32 @@ sub find_license_files {
return @license_files;
}
+sub want_test {
+ my ($distname) = @_;
+ return 1 if $need_dlopen{$distname} && scalar @{$deps_runtime{$distname}} > 1;
+}
+
+sub get_dependencies {
+ my ($distname) = @_;
+ my %dep = map { $_ => 1 } @{$deps_runtime{$distname}};
+ for my $direct (@{$deps_runtime{$distname}}) {
+ for (get_dependencies( $direct )) {
+ $dep{$_} = 1;
+ }
+ }
+ return keys %dep;
+}
+
+sub get_indirect_dependencies {
+ my ($distname) = @_;
+ my %indirect;
+ my %direct = map { $_ => 1 } @{$deps_runtime{$distname}};
+ for my $dep (get_dependencies( $distname )) {
+ $indirect{$dep} = 1 unless exists $direct{$dep};
+ }
+ return keys %indirect;
+}
+
sub fetch {
my ($name, $need_target, $need_host, $top) = @_;
$need_target{$name} = $need_target if $need_target;
@@ -688,6 +714,7 @@ while (my ($distname, $dist) = each %dist) {
my $mkname = $dirname . q{/} . $fsname . q{.mk};
my $hashname = $dirname . q{/} . $fsname . q{.hash};
my $brname = brname( $fsname );
+ my $testname = q{support/testing/tests/package/test_} . lc $brname . q{.py};
unless (-d $dirname) {
mkdir $dirname;
$new_pkgs = 1;
@@ -779,6 +806,46 @@ while (my ($distname, $dist) = each %dist) {
}
close $fh;
}
+ if (want_test( $distname ) && ($force || !-f $testname)) {
+ my $classname = $distname;
+ $classname =~ s|-||g;
+ my $modname = $distname;
+ $modname =~ s|-|::|g;
+ my @indirect = (get_indirect_dependencies( $distname ));
+ say qq{write ${testname}} unless $quiet;
+ open my $fh, q{>}, $testname;
+ say {$fh} qq{from tests.package.test_perl import TestPerlBase};
+ say {$fh} qq{};
+ say {$fh} qq{};
+ say {$fh} qq{class TestPerl${classname}(TestPerlBase):};
+ say {$fh} qq{ """};
+ say {$fh} qq{ package:};
+ say {$fh} qq{ ${distname}};
+ say {$fh} qq{ direct dependencies:};
+ foreach my $dep (sort @{$deps_runtime{$distname}}) {
+ my $mark = want_test( $dep ) ? q{ *} : q{};
+ say {$fh} qq{ ${dep}${mark}};
+ }
+ if (scalar @indirect > 0) {
+ say {$fh} qq{ indirect dependencies:};
+ foreach my $dep (sort @indirect) {
+ my $mark = want_test( $dep ) ? q{ *} : q{};
+ say {$fh} qq{ ${dep}${mark}};
+ }
+ }
+ say {$fh} qq{ """};
+ say {$fh} qq{};
+ say {$fh} qq{ config = TestPerlBase.config + \\};
+ say {$fh} qq{ """};
+ say {$fh} qq{ BR2_PACKAGE_PERL=y};
+ say {$fh} qq{ BR2_PACKAGE_${brname}=y};
+ say {$fh} qq{ """};
+ say {$fh} qq{};
+ say {$fh} qq{ def test_run(self):};
+ say {$fh} qq{ self.login()};
+ say {$fh} qq{ self.module_test("${modname}")};
+ close $fh;
+ }
}
if ($new_pkgs) {
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [Buildroot] [PATCH/next v2 3/8] support/testing: add perl-class-load test
2018-11-23 4:31 [Buildroot] [PATCH/next v2 0/8] suppport/testing: Perl interpreter and CPAN modules Francois Perrad
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 1/8] support/testing: add perl test Francois Perrad
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 2/8] scancpan: add generation of test Francois Perrad
@ 2018-11-23 4:31 ` Francois Perrad
2018-11-24 2:01 ` Ricardo Martincoski
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 4/8] support/testing: add perl-gdgraph test Francois Perrad
` (4 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Francois Perrad @ 2018-11-23 4:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
.gitlab-ci.yml | 1 +
.../tests/package/test_perl_class_load.py | 28 +++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 support/testing/tests/package/test_perl_class_load.py
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ae5d57026..16eb134c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -313,6 +313,7 @@ tests.package.test_dropbear.TestDropbear: *runtime_test
tests.package.test_ipython.TestIPythonPy2: *runtime_test
tests.package.test_ipython.TestIPythonPy3: *runtime_test
tests.package.test_perl.TestPerl: *runtime_test
+tests.package.test_perl_class_load.TestPerlClassLoad: *runtime_test
tests.package.test_python.TestPython2: *runtime_test
tests.package.test_python.TestPython3: *runtime_test
tests.package.test_python_autobahn.TestPythonPy2Autobahn: *runtime_test
diff --git a/support/testing/tests/package/test_perl_class_load.py b/support/testing/tests/package/test_perl_class_load.py
new file mode 100644
index 000000000..1e86c0374
--- /dev/null
+++ b/support/testing/tests/package/test_perl_class_load.py
@@ -0,0 +1,28 @@
+from tests.package.test_perl import TestPerlBase
+
+
+class TestPerlClassLoad(TestPerlBase):
+ """
+ package:
+ Class-Load
+ direct dependencies:
+ Data-OptList *
+ Module-Implementation
+ Module-Runtime
+ Package-Stash
+ Try-Tiny
+ indirect dependencies:
+ Dist-CheckConflicts
+ Params-Util
+ Sub-Install
+ """
+
+ config = TestPerlBase.config + \
+ """
+ BR2_PACKAGE_PERL=y
+ BR2_PACKAGE_PERL_CLASS_LOAD=y
+ """
+
+ def test_run(self):
+ self.login()
+ self.module_test("Class::Load")
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [Buildroot] [PATCH/next v2 4/8] support/testing: add perl-gdgraph test
2018-11-23 4:31 [Buildroot] [PATCH/next v2 0/8] suppport/testing: Perl interpreter and CPAN modules Francois Perrad
` (2 preceding siblings ...)
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 3/8] support/testing: add perl-class-load test Francois Perrad
@ 2018-11-23 4:31 ` Francois Perrad
2018-11-24 2:01 ` Ricardo Martincoski
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 5/8] support/testing: add perl-libwww-perl test Francois Perrad
` (3 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Francois Perrad @ 2018-11-23 4:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
.gitlab-ci.yml | 1 +
.../tests/package/test_perl_gdgraph.py | 22 +++++++++++++++++++
2 files changed, 23 insertions(+)
create mode 100644 support/testing/tests/package/test_perl_gdgraph.py
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 16eb134c3..fd3724178 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -314,6 +314,7 @@ tests.package.test_ipython.TestIPythonPy2: *runtime_test
tests.package.test_ipython.TestIPythonPy3: *runtime_test
tests.package.test_perl.TestPerl: *runtime_test
tests.package.test_perl_class_load.TestPerlClassLoad: *runtime_test
+tests.package.test_perl_gdgraph.TestPerlGDGraph: *runtime_test
tests.package.test_python.TestPython2: *runtime_test
tests.package.test_python.TestPython3: *runtime_test
tests.package.test_python_autobahn.TestPythonPy2Autobahn: *runtime_test
diff --git a/support/testing/tests/package/test_perl_gdgraph.py b/support/testing/tests/package/test_perl_gdgraph.py
new file mode 100644
index 000000000..16cd8cb8e
--- /dev/null
+++ b/support/testing/tests/package/test_perl_gdgraph.py
@@ -0,0 +1,22 @@
+from tests.package.test_perl import TestPerlBase
+
+
+class TestPerlGDGraph(TestPerlBase):
+ """
+ package:
+ GDGraph
+ direct dependencies:
+ GD
+ GDTextUtil
+ """
+
+ config = TestPerlBase.config + \
+ """
+ BR2_PACKAGE_PERL=y
+ BR2_PACKAGE_PERL_GDGRAPH=y
+ """
+
+ def test_run(self):
+ self.login()
+ self.module_test("GD")
+ self.module_test("GD::Graph")
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [Buildroot] [PATCH/next v2 5/8] support/testing: add perl-libwww-perl test
2018-11-23 4:31 [Buildroot] [PATCH/next v2 0/8] suppport/testing: Perl interpreter and CPAN modules Francois Perrad
` (3 preceding siblings ...)
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 4/8] support/testing: add perl-gdgraph test Francois Perrad
@ 2018-11-23 4:31 ` Francois Perrad
2018-11-24 2:02 ` Ricardo Martincoski
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 6/8] support/testing: add perl-mail-dkim test Francois Perrad
` (2 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Francois Perrad @ 2018-11-23 4:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
.gitlab-ci.yml | 1 +
.../tests/package/test_perl_libwww_perl.py | 41 +++++++++++++++++++
2 files changed, 42 insertions(+)
create mode 100644 support/testing/tests/package/test_perl_libwww_perl.py
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fd3724178..08772cca7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -315,6 +315,7 @@ tests.package.test_ipython.TestIPythonPy3: *runtime_test
tests.package.test_perl.TestPerl: *runtime_test
tests.package.test_perl_class_load.TestPerlClassLoad: *runtime_test
tests.package.test_perl_gdgraph.TestPerlGDGraph: *runtime_test
+tests.package.test_perl_libwww_perl.TestPerllibwwwperl: *runtime_test
tests.package.test_python.TestPython2: *runtime_test
tests.package.test_python.TestPython3: *runtime_test
tests.package.test_python_autobahn.TestPythonPy2Autobahn: *runtime_test
diff --git a/support/testing/tests/package/test_perl_libwww_perl.py b/support/testing/tests/package/test_perl_libwww_perl.py
new file mode 100644
index 000000000..e777071bb
--- /dev/null
+++ b/support/testing/tests/package/test_perl_libwww_perl.py
@@ -0,0 +1,41 @@
+from tests.package.test_perl import TestPerlBase
+
+
+class TestPerllibwwwperl(TestPerlBase):
+ """
+ package:
+ libwww-perl
+ direct dependencies:
+ Encode-Locale
+ File-Listing
+ HTML-Parser
+ HTTP-Cookies
+ HTTP-Daemon
+ HTTP-Date
+ HTTP-Message
+ HTTP-Negotiate
+ LWP-MediaTypes
+ Net-HTTP
+ Try-Tiny
+ URI
+ WWW-RobotRules
+ indirect dependencies:
+ HTML-Tagset
+ IO-HTML
+ """
+
+ config = TestPerlBase.config + \
+ """
+ BR2_PACKAGE_PERL=y
+ BR2_PACKAGE_PERL_LIBWWW_PERL=y
+ """
+
+ def test_run(self):
+ self.login()
+ self.module_test("LWP")
+ self.module_test("LWP::UserAgent")
+ self.module_test("LWP::Authen::Basic")
+ self.module_test("LWP::Authen::Digest")
+ self.module_test("HTTP::Message")
+ self.module_test("HTTP::Daemon")
+ self.module_test("WWW::RobotRules")
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [Buildroot] [PATCH/next v2 6/8] support/testing: add perl-mail-dkim test
2018-11-23 4:31 [Buildroot] [PATCH/next v2 0/8] suppport/testing: Perl interpreter and CPAN modules Francois Perrad
` (4 preceding siblings ...)
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 5/8] support/testing: add perl-libwww-perl test Francois Perrad
@ 2018-11-23 4:31 ` Francois Perrad
2018-11-24 2:02 ` Ricardo Martincoski
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 7/8] support/testing: add perl-x10 test Francois Perrad
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 8/8] support/testing: add perl-xml-libxml test Francois Perrad
7 siblings, 1 reply; 16+ messages in thread
From: Francois Perrad @ 2018-11-23 4:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
.gitlab-ci.yml | 1 +
.../tests/package/test_perl_mail_dkim.py | 28 +++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 support/testing/tests/package/test_perl_mail_dkim.py
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 08772cca7..667483c01 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -316,6 +316,7 @@ tests.package.test_perl.TestPerl: *runtime_test
tests.package.test_perl_class_load.TestPerlClassLoad: *runtime_test
tests.package.test_perl_gdgraph.TestPerlGDGraph: *runtime_test
tests.package.test_perl_libwww_perl.TestPerllibwwwperl: *runtime_test
+tests.package.test_perl_mail_dkim.TestPerlMailDKIM: *runtime_test
tests.package.test_python.TestPython2: *runtime_test
tests.package.test_python.TestPython3: *runtime_test
tests.package.test_python_autobahn.TestPythonPy2Autobahn: *runtime_test
diff --git a/support/testing/tests/package/test_perl_mail_dkim.py b/support/testing/tests/package/test_perl_mail_dkim.py
new file mode 100644
index 000000000..dc4d4bb3a
--- /dev/null
+++ b/support/testing/tests/package/test_perl_mail_dkim.py
@@ -0,0 +1,28 @@
+from tests.package.test_perl import TestPerlBase
+
+
+class TestPerlMailDKIM(TestPerlBase):
+ """
+ package:
+ Mail-DKIM
+ direct dependencies:
+ Crypt-OpenSSL-RSA
+ MailTools
+ Net-DNS
+ Net-DNS-Resolver-Mock
+ YAML-LibYAML
+ indirect dependencies:
+ Crypt-OpenSSL-Random
+ Digest-HMAC
+ TimeDate
+ """
+
+ config = TestPerlBase.config + \
+ """
+ BR2_PACKAGE_PERL=y
+ BR2_PACKAGE_PERL_MAIL_DKIM=y
+ """
+
+ def test_run(self):
+ self.login()
+ self.module_test("Mail::DKIM")
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [Buildroot] [PATCH/next v2 7/8] support/testing: add perl-x10 test
2018-11-23 4:31 [Buildroot] [PATCH/next v2 0/8] suppport/testing: Perl interpreter and CPAN modules Francois Perrad
` (5 preceding siblings ...)
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 6/8] support/testing: add perl-mail-dkim test Francois Perrad
@ 2018-11-23 4:31 ` Francois Perrad
2018-11-24 2:02 ` Ricardo Martincoski
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 8/8] support/testing: add perl-xml-libxml test Francois Perrad
7 siblings, 1 reply; 16+ messages in thread
From: Francois Perrad @ 2018-11-23 4:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
.gitlab-ci.yml | 1 +
.../testing/tests/package/test_perl_x10.py | 22 +++++++++++++++++++
2 files changed, 23 insertions(+)
create mode 100644 support/testing/tests/package/test_perl_x10.py
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 667483c01..af643fa10 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -317,6 +317,7 @@ tests.package.test_perl_class_load.TestPerlClassLoad: *runtime_test
tests.package.test_perl_gdgraph.TestPerlGDGraph: *runtime_test
tests.package.test_perl_libwww_perl.TestPerllibwwwperl: *runtime_test
tests.package.test_perl_mail_dkim.TestPerlMailDKIM: *runtime_test
+tests.package.test_perl_x10.TestPerlX10: *runtime_test
tests.package.test_python.TestPython2: *runtime_test
tests.package.test_python.TestPython3: *runtime_test
tests.package.test_python_autobahn.TestPythonPy2Autobahn: *runtime_test
diff --git a/support/testing/tests/package/test_perl_x10.py b/support/testing/tests/package/test_perl_x10.py
new file mode 100644
index 000000000..46f247f2d
--- /dev/null
+++ b/support/testing/tests/package/test_perl_x10.py
@@ -0,0 +1,22 @@
+from tests.package.test_perl import TestPerlBase
+
+
+class TestPerlX10(TestPerlBase):
+ """
+ package:
+ X10
+ direct dependencies:
+ Astro-SunTime
+ Device-SerialPort
+ Time-ParseDate
+ """
+
+ config = TestPerlBase.config + \
+ """
+ BR2_PACKAGE_PERL=y
+ BR2_PACKAGE_PERL_X10=y
+ """
+
+ def test_run(self):
+ self.login()
+ self.module_test("X10")
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [Buildroot] [PATCH/next v2 8/8] support/testing: add perl-xml-libxml test
2018-11-23 4:31 [Buildroot] [PATCH/next v2 0/8] suppport/testing: Perl interpreter and CPAN modules Francois Perrad
` (6 preceding siblings ...)
2018-11-23 4:31 ` [Buildroot] [PATCH/next v2 7/8] support/testing: add perl-x10 test Francois Perrad
@ 2018-11-23 4:31 ` Francois Perrad
2018-11-24 2:03 ` Ricardo Martincoski
7 siblings, 1 reply; 16+ messages in thread
From: Francois Perrad @ 2018-11-23 4:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
.gitlab-ci.yml | 1 +
.../tests/package/test_perl_xml_libxml.py | 22 +++++++++++++++++++
2 files changed, 23 insertions(+)
create mode 100644 support/testing/tests/package/test_perl_xml_libxml.py
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index af643fa10..8ca50f045 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -318,6 +318,7 @@ tests.package.test_perl_gdgraph.TestPerlGDGraph: *runtime_test
tests.package.test_perl_libwww_perl.TestPerllibwwwperl: *runtime_test
tests.package.test_perl_mail_dkim.TestPerlMailDKIM: *runtime_test
tests.package.test_perl_x10.TestPerlX10: *runtime_test
+tests.package.test_perl_xml_libxml.TestPerlXMLLibXML: *runtime_test
tests.package.test_python.TestPython2: *runtime_test
tests.package.test_python.TestPython3: *runtime_test
tests.package.test_python_autobahn.TestPythonPy2Autobahn: *runtime_test
diff --git a/support/testing/tests/package/test_perl_xml_libxml.py b/support/testing/tests/package/test_perl_xml_libxml.py
new file mode 100644
index 000000000..76eacfaea
--- /dev/null
+++ b/support/testing/tests/package/test_perl_xml_libxml.py
@@ -0,0 +1,22 @@
+from tests.package.test_perl import TestPerlBase
+
+
+class TestPerlXMLLibXML(TestPerlBase):
+ """
+ package:
+ XML-LibXML
+ direct dependencies:
+ XML-NamespaceSupport
+ XML-SAX
+ XML-SAX-Base
+ """
+
+ config = TestPerlBase.config + \
+ """
+ BR2_PACKAGE_PERL=y
+ BR2_PACKAGE_PERL_XML_LIBXML=y
+ """
+
+ def test_run(self):
+ self.login()
+ self.module_test("XML::LibXML")
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread