From 2b422c372ee109303984ca8bac6f5ea3d5976dc0 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 31 Aug 2006 08:19:01 +0000 Subject: Consistent version numbers across all modules. Inherited from Nagios::Plugin::Base git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1471 f882894a-f735-0410-b71e-b25c423dba1c --- t/Nagios-Plugin-Base.t | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 t/Nagios-Plugin-Base.t (limited to 't') diff --git a/t/Nagios-Plugin-Base.t b/t/Nagios-Plugin-Base.t new file mode 100644 index 0000000..589f331 --- /dev/null +++ b/t/Nagios-Plugin-Base.t @@ -0,0 +1,14 @@ + +use strict; +use Test::More tests => 11; + +use_ok("Nagios::Plugin::Base"); +my $this_version=$Nagios::Plugin::Base::VERSION; +foreach my $m ("", qw(::Threshold ::Getopt ::Performance ::Range)) { + my $mod = "Nagios::Plugin$m"; + use_ok($mod); + # Lots of hackery below. Easier to say $mod->VERSION, but this is probably a recent perl thing + my $v = "$mod"."::VERSION"; + my $a = eval "\$$v"; + is($a, $this_version, "Version number for $mod the same as Base: $this_version"); +} -- cgit v1.2.3-74-g34f1