diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2016-10-15 22:52:23 +0200 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2016-10-15 23:04:00 +0200 |
commit | c9fb699464874a5c8932d1766405244f89203102 (patch) | |
tree | 5b734c55f3239a3d58f90270b311510550bde6c5 /test | |
parent | 19bfe9e7f259f8e38340db80467366c39b129b09 (diff) |
Testsuite: add tests/munges for configure owner
Diffstat (limited to 'test')
-rwxr-xr-x | test/runtest | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/runtest b/test/runtest index e2ce876f0..71623a2f3 100755 --- a/test/runtest +++ b/test/runtest @@ -1065,6 +1065,7 @@ RESET_AFTER_EXTRA_LINE_READ: /^log selectors =/ || /^cwd=/ || /^Fixed never_users:/ || + /^Configure owner:/ || /^Size of off_t:/ ); @@ -2564,6 +2565,8 @@ while(<EXIMINFO>) $parm_eximuser = $1 if /^exim_user = (.*)$/; $parm_eximgroup = $1 if /^exim_group = (.*)$/; $parm_trusted_config_list = $1 if /^TRUSTED_CONFIG_LIST:.*?"(.*?)"$/; + ($parm_configure_owner, $parm_configure_group) = ($1, $2) + if /^Configure owner:\s*(\d+):(\d+)/; print "$_" if /wrong owner/; } close(EXIMINFO); @@ -2615,6 +2618,14 @@ else die "Unable to check the TRUSTED_CONFIG_LIST, seems to be empty?\n"; } +die "CONFIGURE_OWNER ($parm_configure_owner) does not match the user invoking $0 ($>)\n" + if $parm_configure_owner != $>; + +die "CONFIGURE_GROUP ($parm_configure_group) does not match the group invoking $0 ($))\n" + if 0020 & (stat "$parm_cwd/test-config")[2] + and $parm_configure_group != $); + + open(EXIMINFO, "$parm_exim -d-all+transport -bV -C $parm_cwd/test-config -DDIR=$parm_cwd |") || die "** Cannot run $parm_exim: $!\n"; |