diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2016-02-05 18:16:30 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2016-02-05 18:16:30 +0000 |
commit | b43517edaaedac3a90936dd4a6cc7b01cc9618a8 (patch) | |
tree | bdb8319019cbf8bfa15210b0e622e107c761f5c2 | |
parent | a6ff719cc9a088d314a3f45e4b05c02868772512 (diff) |
Testsuite: enforce different exim/testuser group numbers
-rw-r--r-- | test/README | 13 | ||||
-rwxr-xr-x | test/runtest | 5 |
2 files changed, 12 insertions, 6 deletions
diff --git a/test/README b/test/README index a856e2e16..bcf03498d 100644 --- a/test/README +++ b/test/README @@ -73,12 +73,13 @@ In order to run this test suite, the following requirements must be met: Defaults:exim-build timestamp_timeout=480,!tty_tickets -(3) The login under which you run the tests must be in the exim group so that - it has access to logs, spool files, etc. The login should not be one of the - names "userx", "usery", "userz", or a few other simple ones such as "abcd" - and "xyz" and single letters that are used in the tests. The test suite - expects the login to have a gecos name; I think it will now run if the - gecos field is empty but there may be anomalies. +(3) The login under which you run the tests must have the exim group as a + secondary so that it has access to logs, spool files, etc. However, it + should have a different primary group (eg. "users" vs. "eximgroup"). The + login should not be one of the names "userx", "usery", "userz", or a few + other simple ones such as "abcd" and "xyz" and single letters that are used + in the tests. The test suite expects the login to have a gecos name; I think + it will now run if the gecos field is empty but there may be anomalies. The login must not contain a dash or an equal sign. (Otherwise some tests about local_from_{suffix,prefix} will fail.) diff --git a/test/runtest b/test/runtest index face0dd45..b000dbe42 100755 --- a/test/runtest +++ b/test/runtest @@ -3215,6 +3215,11 @@ if ($parm_caller_uid eq $parm_exim_uid) { tests_exit(-1, "Exim user ($parm_eximuser,$parm_exim_uid) cannot be " ."the same as caller ($parm_caller,$parm_caller_uid)"); } +if ($parm_caller_gid eq $parm_exim_gid) { + tests_exit(-1, "Exim group ($parm_eximgroup,$parm_exim_gid) cannot be " + ."the same as caller's ($parm_caller) group as it confuses " + ."results analysis"); +} print "The Exim user needs access to the test suite directory. Checking ..."; |