Testsuite: started t/ to add tests for the testsuite
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Wed, 2 Nov 2016 22:16:49 +0000 (23:16 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Wed, 2 Nov 2016 22:19:43 +0000 (23:19 +0100)
test/t/00-basic.t [new file with mode: 0644]

diff --git a/test/t/00-basic.t b/test/t/00-basic.t
new file mode 100644 (file)
index 0000000..df7eab4
--- /dev/null
@@ -0,0 +1,19 @@
+use Test::More;
+use lib 'lib';
+use_ok 'Exim::Runtest';
+
+can_ok 'Exim::Runtest', qw(mailgroup);
+
+my $group = getgrgid $(;
+ok $group => 'got a group name';
+diag "use group $group";
+
+is Exim::Runtest::mailgroup($group), $group => 'group names match';
+ok $group = Exim::Runtest::mailgroup('non existing group') => 'cope with unknown group';
+diag "got random group: $group";
+
+ok getgrnam($group) => 'got an existing group';
+
+
+
+done_testing;