# Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl Linux-Distribution.t' ######################### # change 'tests => 1' to 'tests => last_test_to_print'; use Test::More tests => 2; BEGIN { use_ok('Linux::Distribution') }; if(isnt(Linux::Distribution::distribution_name(), undef, 'Checking your distro...')) { diag('It seems that we are running on '.Linux::Distribution::distribution_name.' version '.(Linux::Distribution::distribution_version || 'unknown')) } else { diag ('Please report your Linux dist to dist maintainer'); if (-e '/etc/lsb-release') { diag ('lsb-release exists') ; open my $fh,'<','/etc/lsb-release'; my $content=join('',<$fh>); diag($content); } } ######################### # Insert your test code below, the Test::More module is use()ed here so read # its man page ( perldoc Test::More ) for help writing this test script.