Testsuite: structure the testsuite test
[exim.git] / test / t / 00-basic.t
CommitLineData
acda7677
HSHR
1use Test::More;
2use lib 'lib';
b16852e2 3use_ok 'Exim::Runtest' or BAIL_OUT 'Can not load the module';
acda7677
HSHR
4
5can_ok 'Exim::Runtest', qw(mailgroup);
6
b16852e2
HSHR
7subtest 'mailgroup' => sub {
8 my $group = getgrgid $(;
9 ok $group => 'got a group name';
10 diag "use group $group";
acda7677 11
b16852e2
HSHR
12 is Exim::Runtest::mailgroup($group), $group => 'group names match';
13 ok $group = Exim::Runtest::mailgroup('non existing group') => 'cope with unknown group';
14 diag "got random group: $group";
acda7677 15
b16852e2
HSHR
16 ok getgrnam($group) => 'got an existing group';
17};
acda7677
HSHR
18
19
20
21done_testing;