Host probe tests
Robert 'phaylon' Sedlacek [Tue, 8 May 2012 18:30:45 +0000 (18:30 +0000)]
t/host.t [new file with mode: 0644]

diff --git a/t/host.t b/t/host.t
new file mode 100644 (file)
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;