From: Robert 'phaylon' Sedlacek Date: Tue, 8 May 2012 18:30:45 +0000 (+0000) Subject: Host probe tests X-Git-Tag: v0.001_001~120 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=29c13fbe0f25bcfb1e473626a49a5c5325a21f27;p=scpubgit%2FSystem-Introspector.git Host probe tests --- diff --git a/t/host.t b/t/host.t new file mode 100644 index 0000000..1bfaa1a --- /dev/null +++ b/t/host.t @@ -0,0 +1,21 @@ +use strictures 1; +use Test::More; + +use System::Introspector::Host; + +my $probe = System::Introspector::Host->new; +my $data = $probe->gather; + +ok length($data->{hostname}), 'found a hostname'; +ok defined($data->{uname}{ $_ }), "has uname $_" for qw( + hardware_platform + kernel_name + kernel_release + kernel_version + machine + nodename + operating_system + processor +); + +done_testing;