[openpgp-applet] 24/42: Add a basic test that checks syntax and ensures that all libraries can be loaded.

Clement Hermann nodens at nodens.org
Wed Oct 26 16:47:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

nodens-guest pushed a commit to branch master
in repository openpgp-applet.

commit 535ece13634cead19deb73b1449a5734a274bc6a
Author: intrigeri <intrigeri at boum.org>
Date:   Mon Aug 29 10:14:32 2016 +0000

    Add a basic test that checks syntax and ensures that all libraries can be loaded.
---
 dist.ini        |  3 +++
 t/00-load_all.t | 17 +++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/dist.ini b/dist.ini
index f9f2492..41f8d2d 100644
--- a/dist.ini
+++ b/dist.ini
@@ -23,6 +23,9 @@ repository.type = git
 [Prereqs]
 Moo = 0.50
 
+[Prereqs / TestRequires]
+Test::Most = 0.22
+
 [RequiresExternal]
 requires = xclip
 
diff --git a/t/00-load_all.t b/t/00-load_all.t
new file mode 100644
index 0000000..6221e7d
--- /dev/null
+++ b/t/00-load_all.t
@@ -0,0 +1,17 @@
+use Test::Most;
+
+use Module::Pluggable::Object;
+
+# progs
+ok(system("perl -c bin/openpgp-applet") eq 0);
+
+# libs
+my $finder = Module::Pluggable::Object->new(
+               search_path => [ 'Crypt::OpenPGP_Applet' ],
+             );
+foreach my $class (grep !/\.ToDo/,
+                   sort do { local @INC = ('lib'); $finder->plugins }) {
+  use_ok($class);
+}
+
+done_testing();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/openpgp-applet.git



More information about the Pkg-perl-cvs-commits mailing list