Author: sidney
Date: Tue Dec 6 19:35:16 2022
New Revision: 1905808
URL: http://svn.apache.org/viewvc?rev=1905808&view=rev
Log:
Bug 8045 - Add warning to tests about directory permissions now required for tests to pass
Modified:
spamassassin/trunk/t/root_spamd.t
spamassassin/trunk/t/root_spamd_tell.t
spamassassin/trunk/t/root_spamd_tell_paranoid.t
spamassassin/trunk/t/root_spamd_tell_x.t
spamassassin/trunk/t/root_spamd_tell_x_paranoid.t
spamassassin/trunk/t/root_spamd_u.t
spamassassin/trunk/t/root_spamd_u_dcc.t
spamassassin/trunk/t/root_spamd_virtual.t
spamassassin/trunk/t/root_spamd_x.t
spamassassin/trunk/t/root_spamd_x_paranoid.t
spamassassin/trunk/t/root_spamd_x_u.t
Modified: spamassassin/trunk/t/root_spamd.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd.t (original)
+++ spamassassin/trunk/t/root_spamd.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok(start_spamd("-L"));
Modified: spamassassin/trunk/t/root_spamd_tell.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_tell.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_tell.t (original)
+++ spamassassin/trunk/t/root_spamd_tell.t Tue Dec 6 19:35:16 2022
@@ -24,7 +24,8 @@ $spamc = "sudo -u nobody $spamc";
unlink("$userstate/bayes_seen.dir");
unlink("$userstate/bayes_toks.dir");
-# ensure it is writable by all
+# ensure it is readable/writeable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
chmod 01777, $userstate;
Modified: spamassassin/trunk/t/root_spamd_tell_paranoid.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_tell_paranoid.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_tell_paranoid.t (original)
+++ spamassassin/trunk/t/root_spamd_tell_paranoid.t Tue Dec 6 19:35:16 2022
@@ -24,7 +24,8 @@ $spamc = "sudo -u nobody $spamc";
unlink("$userstate/bayes_seen.dir");
unlink("$userstate/bayes_toks.dir");
-# ensure it is writable by all
+# ensure it is readable/writeable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
chmod 01777, $userstate;
Modified: spamassassin/trunk/t/root_spamd_tell_x.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_tell_x.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_tell_x.t (original)
+++ spamassassin/trunk/t/root_spamd_tell_x.t Tue Dec 6 19:35:16 2022
@@ -24,7 +24,8 @@ $spamc = "sudo -u nobody $spamc";
unlink("$userstate/bayes_seen.dir");
unlink("$userstate/bayes_toks.dir");
-# ensure it is writable by all
+# ensure it is readable/writeable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
chmod 01777, $userstate;
Modified: spamassassin/trunk/t/root_spamd_tell_x_paranoid.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_tell_x_paranoid.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_tell_x_paranoid.t (original)
+++ spamassassin/trunk/t/root_spamd_tell_x_paranoid.t Tue Dec 6 19:35:16 2022
@@ -24,7 +24,8 @@ $spamc = "sudo -u nobody $spamc";
unlink("$userstate/bayes_seen.dir");
unlink("$userstate/bayes_toks.dir");
-# ensure it is writable by all
+# ensure it is readable/writeable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
chmod 01777, $userstate;
Modified: spamassassin/trunk/t/root_spamd_u.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_u.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_u.t (original)
+++ spamassassin/trunk/t/root_spamd_u.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 11;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok(start_spamd("-L -u nobody"));
Modified: spamassassin/trunk/t/root_spamd_u_dcc.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_u_dcc.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_u_dcc.t (original)
+++ spamassassin/trunk/t/root_spamd_u_dcc.t Tue Dec 6 19:35:16 2022
@@ -40,7 +40,8 @@ q{ X-Spam-Level: **********}, 'stars',
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
$SIG{ALRM} = sub { stop_spamd(); die "timed out"; };
Modified: spamassassin/trunk/t/root_spamd_virtual.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_virtual.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_virtual.t (original)
+++ spamassassin/trunk/t/root_spamd_virtual.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok (start_spamd ("--virtual-config-dir=$workdir/virtualconfig/%u -L -u nobody"));
Modified: spamassassin/trunk/t/root_spamd_x.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_x.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_x.t (original)
+++ spamassassin/trunk/t/root_spamd_x.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok(start_spamd("-L --create-prefs -x"));
Modified: spamassassin/trunk/t/root_spamd_x_paranoid.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_x_paranoid.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_x_paranoid.t (original)
+++ spamassassin/trunk/t/root_spamd_x_paranoid.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok(start_spamd("-L --create-prefs -x --paranoid"));
Modified: spamassassin/trunk/t/root_spamd_x_u.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_x_u.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_x_u.t (original)
+++ spamassassin/trunk/t/root_spamd_x_u.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok (start_spamd ("-L -x -u nobody"));
Date: Tue Dec 6 19:35:16 2022
New Revision: 1905808
URL: http://svn.apache.org/viewvc?rev=1905808&view=rev
Log:
Bug 8045 - Add warning to tests about directory permissions now required for tests to pass
Modified:
spamassassin/trunk/t/root_spamd.t
spamassassin/trunk/t/root_spamd_tell.t
spamassassin/trunk/t/root_spamd_tell_paranoid.t
spamassassin/trunk/t/root_spamd_tell_x.t
spamassassin/trunk/t/root_spamd_tell_x_paranoid.t
spamassassin/trunk/t/root_spamd_u.t
spamassassin/trunk/t/root_spamd_u_dcc.t
spamassassin/trunk/t/root_spamd_virtual.t
spamassassin/trunk/t/root_spamd_x.t
spamassassin/trunk/t/root_spamd_x_paranoid.t
spamassassin/trunk/t/root_spamd_x_u.t
Modified: spamassassin/trunk/t/root_spamd.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd.t (original)
+++ spamassassin/trunk/t/root_spamd.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok(start_spamd("-L"));
Modified: spamassassin/trunk/t/root_spamd_tell.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_tell.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_tell.t (original)
+++ spamassassin/trunk/t/root_spamd_tell.t Tue Dec 6 19:35:16 2022
@@ -24,7 +24,8 @@ $spamc = "sudo -u nobody $spamc";
unlink("$userstate/bayes_seen.dir");
unlink("$userstate/bayes_toks.dir");
-# ensure it is writable by all
+# ensure it is readable/writeable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
chmod 01777, $userstate;
Modified: spamassassin/trunk/t/root_spamd_tell_paranoid.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_tell_paranoid.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_tell_paranoid.t (original)
+++ spamassassin/trunk/t/root_spamd_tell_paranoid.t Tue Dec 6 19:35:16 2022
@@ -24,7 +24,8 @@ $spamc = "sudo -u nobody $spamc";
unlink("$userstate/bayes_seen.dir");
unlink("$userstate/bayes_toks.dir");
-# ensure it is writable by all
+# ensure it is readable/writeable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
chmod 01777, $userstate;
Modified: spamassassin/trunk/t/root_spamd_tell_x.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_tell_x.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_tell_x.t (original)
+++ spamassassin/trunk/t/root_spamd_tell_x.t Tue Dec 6 19:35:16 2022
@@ -24,7 +24,8 @@ $spamc = "sudo -u nobody $spamc";
unlink("$userstate/bayes_seen.dir");
unlink("$userstate/bayes_toks.dir");
-# ensure it is writable by all
+# ensure it is readable/writeable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
chmod 01777, $userstate;
Modified: spamassassin/trunk/t/root_spamd_tell_x_paranoid.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_tell_x_paranoid.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_tell_x_paranoid.t (original)
+++ spamassassin/trunk/t/root_spamd_tell_x_paranoid.t Tue Dec 6 19:35:16 2022
@@ -24,7 +24,8 @@ $spamc = "sudo -u nobody $spamc";
unlink("$userstate/bayes_seen.dir");
unlink("$userstate/bayes_toks.dir");
-# ensure it is writable by all
+# ensure it is readable/writeable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
chmod 01777, $userstate;
Modified: spamassassin/trunk/t/root_spamd_u.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_u.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_u.t (original)
+++ spamassassin/trunk/t/root_spamd_u.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 11;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok(start_spamd("-L -u nobody"));
Modified: spamassassin/trunk/t/root_spamd_u_dcc.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_u_dcc.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_u_dcc.t (original)
+++ spamassassin/trunk/t/root_spamd_u_dcc.t Tue Dec 6 19:35:16 2022
@@ -40,7 +40,8 @@ q{ X-Spam-Level: **********}, 'stars',
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
$SIG{ALRM} = sub { stop_spamd(); die "timed out"; };
Modified: spamassassin/trunk/t/root_spamd_virtual.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_virtual.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_virtual.t (original)
+++ spamassassin/trunk/t/root_spamd_virtual.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok (start_spamd ("--virtual-config-dir=$workdir/virtualconfig/%u -L -u nobody"));
Modified: spamassassin/trunk/t/root_spamd_x.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_x.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_x.t (original)
+++ spamassassin/trunk/t/root_spamd_x.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok(start_spamd("-L --create-prefs -x"));
Modified: spamassassin/trunk/t/root_spamd_x_paranoid.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_x_paranoid.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_x_paranoid.t (original)
+++ spamassassin/trunk/t/root_spamd_x_paranoid.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok(start_spamd("-L --create-prefs -x --paranoid"));
Modified: spamassassin/trunk/t/root_spamd_x_u.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/root_spamd_x_u.t?rev=1905808&r1=1905807&r2=1905808&view=diff
==============================================================================
--- spamassassin/trunk/t/root_spamd_x_u.t (original)
+++ spamassassin/trunk/t/root_spamd_x_u.t Tue Dec 6 19:35:16 2022
@@ -26,7 +26,8 @@ plan tests => 14;
# run spamc as unpriv uid
$spamc = "sudo -u nobody $spamc";
-# ensure it is writable by all
+# ensure it is readable by all
+diag "Test will fail if run in directory not accessible by 'nobody' as is typical for a home directory";
chmod 01755, $workdir;
ok (start_spamd ("-L -x -u nobody"));