[Nagiosplug-checkins] Nagios-Plugin/t Nagios-Plugin-Base.t, NONE, 1.1

Ton Voon tonvoon at users.sourceforge.net
Thu Aug 31 10:19:04 CEST 2006


Update of /cvsroot/nagiosplug/Nagios-Plugin/t
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv19018/t

Added Files:
	Nagios-Plugin-Base.t 
Log Message:
Consistent version numbers across all modules. Inherited from Nagios::Plugin::Base


--- NEW FILE: Nagios-Plugin-Base.t ---

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");
}





More information about the Commits mailing list