From: Robert 'phaylon' Sedlacek Date: Mon, 7 May 2012 20:52:17 +0000 (+0000) Subject: Packages::Apt probe tests X-Git-Tag: v0.001_001~126 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8a276d0e5dd2eff53347aa9598d9c43a26d1ddc6;p=scpubgit%2FSystem-Introspector.git Packages::Apt probe tests --- diff --git a/t/packages-apt.t b/t/packages-apt.t new file mode 100644 index 0000000..ac30cb8 --- /dev/null +++ b/t/packages-apt.t @@ -0,0 +1,15 @@ +use strictures 1; +use Test::More; + +use System::Introspector::Packages::Apt; + +my $probe = System::Introspector::Packages::Apt->new; +my $data = $probe->gather; + +ok(scalar(keys %$data), 'received packages'); +ok( + not(grep { not exists $_->{version} } values %{$data->{installed}}), + 'versions', +); + +done_testing;