summaryrefslogtreecommitdiff
path: root/test/t
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-11-02 23:16:49 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-11-02 23:19:43 +0100
commitacda767722286c4e35b3917d1812e590ec852b26 (patch)
treeaf658625c38b85c65011272dbcf6a8df44c88587 /test/t
parentee5b1e28a271faafed2e29233e7baf2f77a77f94 (diff)
downloadexim4-acda767722286c4e35b3917d1812e590ec852b26.tar.gz
Testsuite: started t/ to add tests for the testsuite
Diffstat (limited to 'test/t')
-rw-r--r--test/t/00-basic.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/t/00-basic.t b/test/t/00-basic.t
new file mode 100644
index 000000000..df7eab4de
--- /dev/null
+++ b/test/t/00-basic.t
@@ -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;