Mailing List Archive

svn commit: r354293 - in /spamassassin/trunk: build/automc/run_nightly masses/rule-qa/corpus-nightly masses/rule-qa/corpus.example
Author: jm
Date: Mon Dec 5 20:23:58 2005
New Revision: 354293

URL: http://svn.apache.org/viewcvs?rev=354293&view=rev
Log:
update nightly-mass-check driver

Modified:
spamassassin/trunk/build/automc/run_nightly
spamassassin/trunk/masses/rule-qa/corpus-nightly
spamassassin/trunk/masses/rule-qa/corpus.example

Modified: spamassassin/trunk/build/automc/run_nightly
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/build/automc/run_nightly?rev=354293&r1=354292&r2=354293&view=diff
==============================================================================
--- spamassassin/trunk/build/automc/run_nightly (original)
+++ spamassassin/trunk/build/automc/run_nightly Mon Dec 5 20:23:58 2005
@@ -1,6 +1,7 @@
#!/bin/sh
#
-# driver for nightly mass-checks on the zone.
+# driver for nightly mass-checks on the zone. run from cron as:
+# 10 9,10 * * * /home/automc/svn/spamassassin/build/automc/run_nightly > /var/www/buildbot.spamassassin.org/bbmass/nightly_masschecks.txt 2>&1

# add usernames who you want to do nightlies for here:
nightly_users="
@@ -11,6 +12,10 @@
# and where the $HOMEs are:
nightly_trees="/home/bbmass/mc-nightly"

+# create the targets files:
+/home/automc/svn/spamassassin/build/automc/populate_cor_nightly
+
+# and run each mass-check using "corpus-nightly"
for user in $nightly_users ; do
dir="$nightly_trees/$user"


Modified: spamassassin/trunk/masses/rule-qa/corpus-nightly
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/rule-qa/corpus-nightly?rev=354293&r1=354292&r2=354293&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/corpus-nightly (original)
+++ spamassassin/trunk/masses/rule-qa/corpus-nightly Mon Dec 5 20:23:58 2005
@@ -62,6 +62,11 @@
perl Makefile.PL < /dev/null
make

+# call ext command, if required
+if [ "x${pre_mass_check_command:-}" != x ] ; then
+ $pre_mass_check_command
+fi
+
# run test
cd masses
rm -f spamassassin/auto*

Modified: spamassassin/trunk/masses/rule-qa/corpus.example
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/rule-qa/corpus.example?rev=354293&r1=354292&r2=354293&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/corpus.example (original)
+++ spamassassin/trunk/masses/rule-qa/corpus.example Mon Dec 5 20:23:58 2005
@@ -1,15 +1,3 @@
-# location of corpus file (mass-check -f $corpus)
-corpus=/home/corpus/corpus
-
-# location for summary results
-html=/home/html/root/users/corpus
-
-# file mode for directories/files under "html". keep the leading "0"!
-html_mode=0755
-
-# location of tagtime file
-tagtime=/home/corpus/log/tagtime
-
# temporary working directory for summary results
tmp=/home/corpus/tmp

@@ -28,6 +16,20 @@
prefs_weekly=/home/corpus/mail/user_prefs.weekly
prefs_nightly=/home/corpus/mail/user_prefs.nightly

+## SERVER-SIDE SETTINGS:
+
+# location of tagtime file
+tagtime=/home/corpus/log/tagtime
+
+# location of corpus file (mass-check -f $corpus)
+corpus=/home/corpus/corpus
+
+# location for summary results
+html=/home/html/root/users/corpus
+
+# file mode for directories/files under "html". keep the leading "0"!
+html_mode=0755
+
# (optional) replacement rsync command. leave commented in most cases
# rsync_command=rsync -CPcvuzt --timeout=300 username@rsync.spamassassin.org::corpus/*.log .

@@ -37,4 +39,8 @@
# should the revision numbers in the corpus files be ignored
# when determining whether those logs should be used or not?
ignore_revisions=0
+
+# the path to an (optional) script to run before running the
+# "mass-check" command.
+# pre_mass_check_command=/path/to/script