From: Jeremy Harris Date: Fri, 5 Feb 2016 18:16:30 +0000 (+0000) Subject: Testsuite: enforce different exim/testuser group numbers X-Git-Tag: exim-4_87_RC4~17 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b43517edaaedac3a90936dd4a6cc7b01cc9618a8;p=exim.git Testsuite: enforce different exim/testuser group numbers --- 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 ...";