# # These tests check that the testing environment is complete. # use Test::Most; bail_on_fail; my ($image_path) = @ARGV; is($ENV{USERNAME}, 'root', "Current user is root."); # TODO move this elsewhere maybe? sub pkg_check { my ($pkg) = @_; return system("rpm -q $pkg >/dev/null"); } my @packages = qw(cdrkit cdrkit-isotools gnupg); foreach my $p (@packages) { is(pkg_check($p), 0, sprintf("%s is installed.", $p)); } done_testing();