Bug 5674 - t/SATest.pm starts the *.raw templates of spamassassin et c.
Summary: t/SATest.pm starts the *.raw templates of spamassassin et c.
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Regression Tests (show other bugs)
Version: 3.2.3
Hardware: Other other
: P5 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-09 06:50 UTC by Ulrik Haugen
Modified: 2007-10-09 07:03 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status
This is the result of calling 'perl Makefile.PL ...' text/plain None Ulrik Haugen [NoCLA]
This is the result of calling 'make test TEST_FILES=t/basic_lint.t' text/plain None Ulrik Haugen [NoCLA]
This is the result of calling 'TEST_PERL_TAINT=no make test TEST_FILES=t/basic_lint.t' text/plain None Ulrik Haugen [NoCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrik Haugen 2007-10-09 06:50:12 UTC
t/SATest.pm starts the *.raw templates of spamassassin et c.

Since spamassassin is started in taint check mode (I see now that I might be
able to disable that, but I'd prefer to run the tests the way I'll run the
service in production.) it ignores my PERL5LIB telling it where it can find
HTML::Parser and other modules it depends on. I've installed these in
"@@INSTALLSITELIB@@" but as that hasn't been substituted in the .raw templates
they aren't found.

Once this bug is submitted I'll attatch output of perl Makefile.PL and 
make test TEST_FILES=t/basic_lint.t
Comment 1 Ulrik Haugen 2007-10-09 06:54:39 UTC
Created attachment 4146 [details]
This is the result of calling 'perl Makefile.PL ...'

This file is the result of calling:
perl Makefile.PL PREFIX=/service/amavisd-new+2.5.2 \
LOCALSTATEDIR=/service/amavisd-new-smtp.liu.se/var/sa \
CONFDIR=/service/amavisd-new-smtp.liu.se/share/spamassassin < /dev/null

In the shell I get from running
PERL5LIB=/service/amavisd-new+2.5.2/lib/perl5/site_perl/5.8.5 cpan and then
entering 'look Mail::SpamAssassin'
Comment 2 Ulrik Haugen 2007-10-09 06:57:43 UTC
Created attachment 4148 [details]
This is the result of calling 'make test TEST_FILES=t/basic_lint.t'

This is the result of calling 'make test TEST_FILES=t/basic_lint.t' in the same
shell described in attatchment 4146. (This is from the n:th invocation of make
test so compilation et c. has already been taken care of.)
Comment 3 Ulrik Haugen 2007-10-09 06:59:31 UTC
Created attachment 4149 [details]
This is the result of calling 'TEST_PERL_TAINT=no make test TEST_FILES=t/basic_lint.t'

This is the result of calling 'TEST_PERL_TAINT=no make test
TEST_FILES=t/basic_lint.t' in the same shall as described in 4146 and 4148.
This is done after the ordinary 'make test ...'.
Comment 4 Ulrik Haugen 2007-10-09 07:03:27 UTC
And with the assignments in place, I'll just add that the problem I see is that
in attachment 4148 [details] I get the complaint 't/basic_lint....Can't locate
HTML/Parser.pm in @INC (@INC contains: ../blib/lib @@INSTALLSITELIB@@ ...' that
I think would have been avoided if SATest.pm didn't call the .raw template.