Testsuite: structure the testsuite test
[exim.git] / test / t / 00-basic.t
1 use Test::More;
2 use lib 'lib';
3 use_ok 'Exim::Runtest' or BAIL_OUT 'Can not load the module';
4
5 can_ok 'Exim::Runtest', qw(mailgroup);
6
7 subtest 'mailgroup' => sub {
8     my $group = getgrgid $(;
9     ok $group => 'got a group name';
10     diag "use group $group";
11
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";
15
16     ok getgrnam($group) => 'got an existing group';
17 };
18
19
20
21 done_testing;