blob: 684efbfb47774c4422c25b61a291798a28df05b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#
# 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();
|