sa 32x-branch 'make test' fails @ t/spamc_optL.t (among others ...) on freebsd

2007-12-30 Thread snowcrash+sa
hi,

bldg SA 32x-branch manually, from src in a freebsd jail.

SA builds/installs/runs without noticeable issue.

but, 'make test' has scads of failures ... similar to those mentioned here:

  http://www.nabble.com/Re:-Problem-with-3.2.2-p14236931.html

picking one, t/spamc_optL.t, fails as:

% sudo -u spamd make test TEST_VERBOSE=1 TEST_FILES=t/spamc_optL.t
make -f spamc/Makefile spamc/spamc
`spamc/spamc' is up to date.
/usr/local/bin/perl build/mkrules --exit_on_no_src --src rulesrc --out
rules --manifest MANIFEST --manifestskip MANIFEST.SKIP
mkrules: no rules updated
/usr/local/bin/perl build/preprocessor  -Mvars  -DVERSION=3.002004
-DPREFIX=/usr/local  -DDEF_RULES_DIR=/usr/local/etc/SA/Dist
-DLOCAL_RULES_DIR=/usr/local/etc/SA/Local
-DLOCAL_STATE_DIR=/usr/local/etc/SA/Updates
-DINSTALLSITELIB=/usr/local/lib/perl5/site_perl/5.8.8
-DCONTACT_ADDRESS= -Msharpbang  -Mconditional
-DPERL_BIN=/usr/local/bin/perl  -DPERL_WARN=  -DPERL_TAINT=
-m755 -isa-update.raw -osa-update
cp sa-update blib/script/sa-update
/usr/local/bin/perl -MExtUtils::MY -e MY-fixin(shift) blib/script/sa-update
PERL_DL_NONLAZY=1 /usr/local/bin/perl -MExtUtils::Command::MM -e
test_harness(1, 'blib/lib', 'blib/arch') t/spamc_optL.t
t/spamc_optL..
1..16
# Running under perl version 5.008008 for freebsd
# Current time local: Sun Dec 30 00:13:31 2007
# Current time GMT:   Sun Dec 30 08:13:31 2007
# Using Test.pm version 1.25
/usr/local/bin/perl SATest.pl -Mredirect
-Olog/d.spamc_optL/spamd.err.1 -olog/d.spamc_optL/spamd.out.1 --
/usr/local/bin/perl -T -w ../spamd/spamd.raw -D -x -s stderr -C
log/test_rules_copy  --siteconfigpath log/localrules.tmp -p 62704 -A
127.0.0.1 -L --allow-tell -s log/d.spamc_optL/spamd.err.1.timestamped

../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L spam 
data/spam/001
Killed 1 spamd instances
Waiting for spamd at pid 95478 to exit...
not ok 1
Checking learned spam
not ok 2
../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L spam 
data/spam/001
# Failed test 1 in t/spamc_optL.t at line 20
Not found: learned spam = Message successfully un/learned
# Failed test 2 in t/SATest.pm at line 662
Output can be examined in:
not ok 3
Checking already learned spam
not ok 4
/usr/local/bin/perl -T -w ../sa-learn.raw -C log/test_rules_copy
--siteconfigpath log/localrules.tmp -p log/test_default.cf  --dump
magic
# Failed test 3 in t/spamc_optL.t at line 24
Not found: already learned spam = Message was already un/learned
# Failed test 4 in t/SATest.pm at line 662 fail #2
Output can be examined in:
ERROR: Bayes dump returned an error, please re-run with -D for more information
not ok 5
Checking spam in database
not ok 6
../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L forget
 data/spam/001
# Failed test 5 in t/spamc_optL.t at line 28
Not found: spam in database = 1 0  non-token data: nspam
# Failed test 6 in t/SATest.pm at line 662 fail #3
Output can be examined in:
not ok 7
Checking forget spam
not ok 8
../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L ham 
data/nice/001
# Failed test 7 in t/spamc_optL.t at line 32
Not found: forget spam = Message successfully un/learned
# Failed test 8 in t/SATest.pm at line 662 fail #4
Output can be examined in:
not ok 9
Checking learned ham
not ok 10
../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L ham 
data/nice/001
# Failed test 9 in t/spamc_optL.t at line 36
Not found: learned ham = Message successfully un/learned
# Failed test 10 in t/SATest.pm at line 662 fail #5
Output can be examined in:
not ok 11
Checking already learned ham
not ok 12
/usr/local/bin/perl -T -w ../sa-learn.raw -C log/test_rules_copy
--siteconfigpath log/localrules.tmp -p log/test_default.cf  --dump
magic
# Failed test 11 in t/spamc_optL.t at line 40
Not found: already learned ham = Message was already un/learned
# Failed test 12 in t/SATest.pm at line 662 fail #6
Output can be examined in:
ERROR: Bayes dump returned an error, please re-run with -D for more information
not ok 13
Checking ham in database
not ok 14
../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L forget
 data/nice/001
# Failed test 13 in t/spamc_optL.t at line 44
Not found: ham in database = 1 0  non-token data: nham
# Failed test 14 in t/SATest.pm at line 662 fail #7
Output can be examined in:
not ok 15
Checking learned ham
not ok 16
# Failed test 15 in t/spamc_optL.t at line 48
Not found: learned ham = Message successfully un/learned
# Failed test 16 in t/SATest.pm at line 662 fail #8
Output can be examined in:
 Failed 16/16 subtests

Test Summary Report
---
t/spamc_optL.t (Wstat: 0 Tests: 16 Failed: 16)
  Failed test number(s):  1-16
Files=1, Tests=16, 23 wallclock secs ( 0.01 usr  0.02 sys +  3.02 cusr
 1.05 csys =  4.10 CPU)
Result: FAIL
Failed 1/1 test 

Re: sa 32x-branch 'make test' fails @ t/spamc_optL.t (among others ...) on freebsd

2007-12-30 Thread Justin Mason
could it be the use of 127.0.0.1, opening listening sockets there
etc.? we have had issues
with that and solaris zones.

--j.

On Dec 30, 2007 8:20 AM, snowcrash+sa [EMAIL PROTECTED] wrote:
 hi,

 bldg SA 32x-branch manually, from src in a freebsd jail.

 SA builds/installs/runs without noticeable issue.

 but, 'make test' has scads of failures ... similar to those mentioned here:

   http://www.nabble.com/Re:-Problem-with-3.2.2-p14236931.html

 picking one, t/spamc_optL.t, fails as:

 % sudo -u spamd make test TEST_VERBOSE=1 TEST_FILES=t/spamc_optL.t
 make -f spamc/Makefile spamc/spamc
 `spamc/spamc' is up to date.
 /usr/local/bin/perl build/mkrules --exit_on_no_src --src rulesrc --out
 rules --manifest MANIFEST --manifestskip MANIFEST.SKIP
 mkrules: no rules updated
 /usr/local/bin/perl build/preprocessor  -Mvars  -DVERSION=3.002004
 -DPREFIX=/usr/local  -DDEF_RULES_DIR=/usr/local/etc/SA/Dist
 -DLOCAL_RULES_DIR=/usr/local/etc/SA/Local
 -DLOCAL_STATE_DIR=/usr/local/etc/SA/Updates
 -DINSTALLSITELIB=/usr/local/lib/perl5/site_perl/5.8.8
 -DCONTACT_ADDRESS= -Msharpbang  -Mconditional
 -DPERL_BIN=/usr/local/bin/perl  -DPERL_WARN=  -DPERL_TAINT=
 -m755 -isa-update.raw -osa-update
 cp sa-update blib/script/sa-update
 /usr/local/bin/perl -MExtUtils::MY -e MY-fixin(shift) 
 blib/script/sa-update
 PERL_DL_NONLAZY=1 /usr/local/bin/perl -MExtUtils::Command::MM -e
 test_harness(1, 'blib/lib', 'blib/arch') t/spamc_optL.t
 t/spamc_optL..
 1..16
 # Running under perl version 5.008008 for freebsd
 # Current time local: Sun Dec 30 00:13:31 2007
 # Current time GMT:   Sun Dec 30 08:13:31 2007
 # Using Test.pm version 1.25
 /usr/local/bin/perl SATest.pl -Mredirect
 -Olog/d.spamc_optL/spamd.err.1 -olog/d.spamc_optL/spamd.out.1 --
 /usr/local/bin/perl -T -w ../spamd/spamd.raw -D -x -s stderr -C
 log/test_rules_copy  --siteconfigpath log/localrules.tmp -p 62704 -A
 127.0.0.1 -L --allow-tell -s log/d.spamc_optL/spamd.err.1.timestamped
 
 ../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L spam 
 data/spam/001
 Killed 1 spamd instances
 Waiting for spamd at pid 95478 to exit...
 not ok 1
 Checking learned spam
 not ok 2
 ../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L spam 
 data/spam/001
 # Failed test 1 in t/spamc_optL.t at line 20
 Not found: learned spam = Message successfully un/learned
 # Failed test 2 in t/SATest.pm at line 662
 Output can be examined in:
 not ok 3
 Checking already learned spam
 not ok 4
 /usr/local/bin/perl -T -w ../sa-learn.raw -C log/test_rules_copy
 --siteconfigpath log/localrules.tmp -p log/test_default.cf  --dump
 magic
 # Failed test 3 in t/spamc_optL.t at line 24
 Not found: already learned spam = Message was already un/learned
 # Failed test 4 in t/SATest.pm at line 662 fail #2
 Output can be examined in:
 ERROR: Bayes dump returned an error, please re-run with -D for more 
 information
 not ok 5
 Checking spam in database
 not ok 6
 ../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L forget
  data/spam/001
 # Failed test 5 in t/spamc_optL.t at line 28
 Not found: spam in database = 1 0  non-token data: nspam
 # Failed test 6 in t/SATest.pm at line 662 fail #3
 Output can be examined in:
 not ok 7
 Checking forget spam
 not ok 8
 ../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L ham 
 data/nice/001
 # Failed test 7 in t/spamc_optL.t at line 32
 Not found: forget spam = Message successfully un/learned
 # Failed test 8 in t/SATest.pm at line 662 fail #4
 Output can be examined in:
 not ok 9
 Checking learned ham
 not ok 10
 ../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L ham 
 data/nice/001
 # Failed test 9 in t/spamc_optL.t at line 36
 Not found: learned ham = Message successfully un/learned
 # Failed test 10 in t/SATest.pm at line 662 fail #5
 Output can be examined in:
 not ok 11
 Checking already learned ham
 not ok 12
 /usr/local/bin/perl -T -w ../sa-learn.raw -C log/test_rules_copy
 --siteconfigpath log/localrules.tmp -p log/test_default.cf  --dump
 magic
 # Failed test 11 in t/spamc_optL.t at line 40
 Not found: already learned ham = Message was already un/learned
 # Failed test 12 in t/SATest.pm at line 662 fail #6
 Output can be examined in:
 ERROR: Bayes dump returned an error, please re-run with -D for more 
 information
 not ok 13
 Checking ham in database
 not ok 14
 ../spamc/spamc -F data/spamc_blank.cf -d 127.0.0.1 -p 62704 -L forget
  data/nice/001
 # Failed test 13 in t/spamc_optL.t at line 44
 Not found: ham in database = 1 0  non-token data: nham
 # Failed test 14 in t/SATest.pm at line 662 fail #7
 Output can be examined in:
 not ok 15
 Checking learned ham
 not ok 16
 # Failed test 15 in t/spamc_optL.t at line 48
 Not found: learned ham = Message successfully un/learned
 # Failed test 16 in t/SATest.pm at line 

Re: sa 32x-branch 'make test' fails @ t/spamc_optL.t (among others ...) on freebsd

2007-12-30 Thread snowcrash+sa
hi matthias,

 i use CPAN on a FreeBSD 4.8 Jail to install / upgrade   SA and i never
 successfuly  run 'make test'
 the same goes for compiling from the sources.

 but i installed with  'notest install  ' in CPAN and have no
 Problems while running SA

i've also often found that failures in 'SA's 'make test' are just
failures in the tests, and that SA ends up running well, nonetheless.

but, atm, i've 133/2048 failures (e.g., here:
http://rafb.net/p/1puesA82.html), and that concerns me a bit.
especially since this is my 1st FreeBSD install of SA.

ideally, i'd like to get them figured out / fixed.

cheers!


Re: sa 32x-branch 'make test' fails @ t/spamc_optL.t (among others ...) on freebsd

2007-12-30 Thread snowcrash+sa
hi justin,

On Dec 30, 2007 4:16 AM, Justin Mason [EMAIL PROTECTED] wrote:
 could it be the use of 127.0.0.1, opening listening sockets there
 etc.? we have had issues
 with that and solaris zones.

one of the joys of FreeBSD v6.2R jails seems to be only one IP per
jail. (there are kernel patches available for 6.3  7.0 PRERELEASES
 dunno if official yet)

that said, i *CAN* ping 127.0.0.1 from within the jail.

i'll have to dig about to see if openeing sockets on localhost in a
jail is problematic.  atm, i have no clue.

is there a straightforward way to have the tests use the jail's
assigned, non-localhost IP instead? or , do i need to change the src?

cheers!


Re: sa 32x-branch 'make test' fails @ t/spamc_optL.t (among others ...) on freebsd

2007-12-30 Thread snowcrash+sa
noting that

(a) these errors have appeared before
(b) you've some suspicion that it may be related to issue w/ solaris zones
(c) y'all are goin' great-guns on -devel wrapping up bugs for 324

should i open a bug on this? or is it something that'll get some
attention anyway?

thanks!