summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build.PL37
-rw-r--r--t/01-load.t42
2 files changed, 79 insertions, 0 deletions
diff --git a/Build.PL b/Build.PL
new file mode 100644
index 00000000..000db1c4
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,37 @@
+use strict;
+use warnings;
+
+use Module::Build;
+
+my $build = Module::Build->new (
+ dist_name => 'LedgerSMB',
+ dist_version => '1.1.99',
+ license => 'GPL',
+ requires => {
+ 'perl' => '>= 5.8.0',
+ 'Data::Dumper' => 0,
+ 'Locale::Maketext' => 0,
+ 'Locale::Maketext::Lexicon' => '>= 0.56',
+ 'Mime::Base64' => 0,
+ 'Digest::MD5' => 0,
+ 'HTML::Entities' => 0,
+ 'DBI' => 0,
+ 'DBD::Pg' => 0,
+ 'Math::BigFloat' => 0,
+ 'IO::File' => 0,
+ 'Encode' => 0,
+ 'Locale::Country' => 0,
+ 'Locale::Language' => 0,
+ 'Time::Local' => 0,
+ 'Cwd' => 0,
+ },
+ recommends => {
+ 'HTML::LinkExtor' => 0,
+ 'FileHandle' => 0,
+ 'Getopt::Long' => 0,
+ 'Test::More' => 0,
+ 'Net::TCLink' => 0,
+ },
+);
+
+$build->create_build_script;
diff --git a/t/01-load.t b/t/01-load.t
new file mode 100644
index 00000000..b27a1154
--- /dev/null
+++ b/t/01-load.t
@@ -0,0 +1,42 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use Test::More tests => 30;
+
+use_ok('LedgerSMB::AA');
+use_ok('LedgerSMB::AM');
+use_ok('LedgerSMB::BP');
+use_ok('LedgerSMB::CA');
+use_ok('LedgerSMB::CP');
+use_ok('LedgerSMB::CT');
+use_ok('LedgerSMB::Form');
+use_ok('LedgerSMB::GL');
+use_ok('LedgerSMB::HR');
+use_ok('LedgerSMB::IC');
+use_ok('LedgerSMB::IR');
+use_ok('LedgerSMB::IS');
+use_ok('LedgerSMB::Inifile');
+use_ok('LedgerSMB::JC');
+use_ok('LedgerSMB::Locale');
+use_ok('LedgerSMB::Log');
+use_ok('LedgerSMB::Mailer');
+use_ok('LedgerSMB::Menu');
+use_ok('LedgerSMB::Num2text');
+use_ok('LedgerSMB::OE');
+use_ok('LedgerSMB::OP');
+use_ok('LedgerSMB::PE');
+use_ok('LedgerSMB::PriceMatrix');
+use_ok('LedgerSMB::RC');
+use_ok('LedgerSMB::RP');
+use_ok('LedgerSMB::Session');
+use_ok('LedgerSMB::Sysconfig');
+use_ok('LedgerSMB::Tax');
+use_ok('LedgerSMB::User');
+
+SKIP: {
+ eval { require Net::TCLink };
+
+ skip 'Net::TCLink not installed', 1 if $@;
+ use_ok('LedgerSMB::CreditCard');
+}