diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-27 16:36:29 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-27 16:36:29 +0000 |
commit | 88e2c024b07b703665a2b78408de820ab3d2459a (patch) | |
tree | 7c1a2761bfe0c4ec2c504db955ca3861e3c4d244 | |
parent | 769c831d993a1e10b44abf4b3d9e5e145770ecc8 (diff) |
Add preliminary testing infrastructure
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@332 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r-- | Build.PL | 37 | ||||
-rw-r--r-- | t/01-load.t | 42 |
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'); +} |