You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Tom Brown <tb...@michiana.org> on 2005/01/21 04:00:29 UTC

Massive runtests.tcl failure

I certainly did something wrong on a fresh install of Rivet. Apache parses 
my Rivet test file properly, but only 3 tests pass runtests.tcl.

How do I do a clean install? What have I omitted or botched?

Linux: Slackware 9.1
Tcl: 8.4
Apache: 1.3.28

# compile directory is /root/tcl-rivet
cd src
tclsh ./configure.tcl -with-apxs /usr/sbin/apxs -with-tclconfig 
/usr/lib/tclConfig.sh
tclsh ./make.tcl shared
tclsh ./make.tcl install

Tom



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Massive runtests.tcl failure

Posted by "David N. Welton" <da...@dedasys.com>.
Tom Brown <tb...@michiana.org> writes:

> I certainly did something wrong on a fresh install of Rivet. Apache
> parses my Rivet test file properly, but only 3 tests pass
> runtests.tcl.

Well does Rivet itself run?  The tests might have other problems.
Does a simple hello.rvt file work?

> How do I do a clean install? What have I omitted or botched?

> Linux: Slackware 9.1
> Tcl: 8.4
> Apache: 1.3.28

> # compile directory is /root/tcl-rivet
> cd src
> tclsh ./configure.tcl -with-apxs /usr/sbin/apxs -with-tclconfig
> /usr/lib/tclConfig.sh
> tclsh ./make.tcl shared
> tclsh ./make.tcl install

That looks right to me.  Are there any warnings or errors?

-- 
David N. Welton
 - http://www.dedasys.com/davidw/

Apache, Linux, Tcl Consulting
 - http://www.dedasys.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Massive runtests.tcl failure

Posted by "David N. Welton" <da...@dedasys.com>.
Tom Brown <tb...@michiana.org> writes:

> > > I'm not sure it is worth pursuing the testing problem if you
> > > think the tests are faulty and the installation is otherwise
> > > good.

> >No, very likely it isn't.  More than anything, it's curiousity on
> >my part as to why the test suite fails.

Thanks for the server.conf... if it's not finding mod_access though,
it would probably require some fiddling in the test harness to
determine why.

-- 
David N. Welton
 - http://www.dedasys.com/davidw/

Apache, Linux, Tcl Consulting
 - http://www.dedasys.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Massive runtests.tcl failure

Posted by Tom Brown <tb...@michiana.org>.
At 01:35 AM 1/22/05 +0100, David N. Welton wrote:
>Tom Brown <tb...@michiana.org> writes

-snip-

> > Below are the contents of apachelog.txt, the only log file I found
> > in /tests. Server.conf should be writing errors to
> > /root/tcl-rivet/tests/error_log. But there is no such file.
>
> >    Syntax error on line 17 of /root/tcl-rivet/tests/server.conf:
> >    Cannot load /root/tcl-rivet/tests/libexec/mod_access.so into server:
> >    /root/tcl-rivet/tests/libexec/mod_access.so:
> >    cannot open shared object file:
> >    No such file or directory
>
>Odd, I have as line 17 of that file:
>
>LoadModule access_module /usr/lib/apache/1.3/mod_access.so
>
>In other words, it's trying to use the public one, whereas yours is
>trying to use a loca copy or something odd.  What's your
>tests/server.conf look like?
>
> > /usr/libexec/mod_access.so exists. The ServerRoot value in
> > server.conf is "/root/tcl-rivet/tests". I changed the server.conf
> > value to match that in /etc/apache/httpd.conf hoping the test would
> > find mod_access.so. The tests still failed with the same score: 3
> > passed, 93 failed.
>
> > I'm not sure it is worth pursuing the testing problem if you think
> > the tests are faulty and the installation is otherwise good.
>
>No, very likely it isn't.  More than anything, it's curiousity on my
>part as to why the test suite fails.

# $Id$
# Minimal config file for testing

# Parsed by makeconf.tcl

ServerRoot "/root/tcl-rivet/tests"

PidFile "/root/tcl-rivet/tests/httpd.pid"

ResourceConfig "/root/tcl-rivet/tests/srm.conf"
AccessConfig "/root/tcl-rivet/tests/access.conf"

Timeout 300

MaxRequestsPerChild 0

LoadModule access_module      libexec/mod_access.so
LoadModule auth_module        libexec/mod_auth.so
LoadModule config_log_module  libexec/mod_log_config.so
LoadModule dir_module         libexec/mod_dir.so
LoadModule mime_module        libexec/mod_mime.so
LoadModule negotiation_module libexec/mod_negotiation.so

Port 8081

ServerName localhost

DocumentRoot "/root/tcl-rivet/tests"

<Directory "/root/tcl-rivet/tests">
Options All MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>

AccessFileName .htaccess

HostnameLookups Off

ErrorLog /root/tcl-rivet/tests/error_log

LogLevel debug

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" 
combined
CustomLog "/root/tcl-rivet/tests/access_log" combined

     LoadModule rivet_module /root/tcl-rivet/tests/../src/mod_rivet.so

     <IfModule mod_mime.c>
     TypesConfig /root/tcl-rivet/tests/mime.types
     AddLanguage en .en
     AddLanguage it .it
     AddLanguage es .es
     AddType application/x-httpd-rivet .rvt
     AddType application/x-rivet-tcl .tcl
     </IfModule>

     RivetServerConf UploadFilesToVar on

     <IfDefine SERVERCONFTEST>
     RivetServerConf BeforeScript 'puts "Page Header"'
     RivetServerConf AfterScript 'puts "Page Footer"'
     </IfDefine>

     <IfDefine DIRTEST>
     <Directory />
     RivetDirConf BeforeScript 'puts "Page Header"'
     RivetDirConf AfterScript 'puts "Page Footer"'
     </Directory>
     </IfDefine>

     # We can use this to include our own stuff for each test.
     Include test.conf




---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Massive runtests.tcl failure

Posted by "David N. Welton" <da...@dedasys.com>.
Tom Brown <tb...@michiana.org> writes:

> At 03:17 PM 1/21/05 +0100, David N. Welton wrote:
> >Tom Brown <tb...@michiana.org> writes:

> >Please respond to the mailing list instead of just me.

> My original post was to the list, and I thought I was replying to it
> thereafter. I see from the header you contacted me personally with a
> CC: to the list. I didn't notice the change.

I think it may be a good idea to put an automatic Reply-To, because
you're certainly not the first to have that happen...

> Below are the contents of apachelog.txt, the only log file I found
> in /tests. Server.conf should be writing errors to
> /root/tcl-rivet/tests/error_log. But there is no such file.

>    Syntax error on line 17 of /root/tcl-rivet/tests/server.conf:
>    Cannot load /root/tcl-rivet/tests/libexec/mod_access.so into server:
>    /root/tcl-rivet/tests/libexec/mod_access.so:
>    cannot open shared object file:
>    No such file or directory

Odd, I have as line 17 of that file:

LoadModule access_module /usr/lib/apache/1.3/mod_access.so

In other words, it's trying to use the public one, whereas yours is
trying to use a loca copy or something odd.  What's your
tests/server.conf look like?

> /usr/libexec/mod_access.so exists. The ServerRoot value in
> server.conf is "/root/tcl-rivet/tests". I changed the server.conf
> value to match that in /etc/apache/httpd.conf hoping the test would
> find mod_access.so. The tests still failed with the same score: 3
> passed, 93 failed.

> I'm not sure it is worth pursuing the testing problem if you think
> the tests are faulty and the installation is otherwise good.

No, very likely it isn't.  More than anything, it's curiousity on my
part as to why the test suite fails.

Thanks,
-- 
David N. Welton
 - http://www.dedasys.com/davidw/

Apache, Linux, Tcl Consulting
 - http://www.dedasys.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Massive runtests.tcl failure

Posted by Tom Brown <tb...@michiana.org>.
At 03:17 PM 1/21/05 +0100, David N. Welton wrote:
>Tom Brown <tb...@michiana.org> writes:
>
>Please respond to the mailing list instead of just me.

My original post was to the list, and I thought I was replying to it 
thereafter. I see from the header you contacted me personally with a CC: to 
the list. I didn't notice the change.


> > The simple Rivet file below is parsed correctly by Apache at
> > http://localhost/hello.rvt.
>
> > # /var/www/htdocs/hello.rvt
> > <? puts "Hello Rivet" ?>
>
>Well, if that works, your installation is good.
>
> > > > How do I do a clean install? What have I omitted or botched?
>
> > > > Linux: Slackware 9.1
> > > > Tcl: 8.4
> > > > Apache: 1.3.28
>
> > > > # compile directory is /root/tcl-rivet
> > > > cd src
> > > > tclsh ./configure.tcl -with-apxs /usr/sbin/apxs -with-tclconfig
> > > > /usr/lib/tclConfig.sh
> > > > tclsh ./make.tcl shared
> > > > tclsh ./make.tcl install
>
> > >That looks right to me.  Are there any warnings or errors?
>
> > I installed Rivet twice with no errors or warnings and ran the tests
> > twice with 93 errors each time.
>
>It's something about the test suite then... you might look at the
>error log in the tests directory to see if it's got any information.
>It's probably not starting Apache correctly, and without Apache up,
>it'll fail a lot:-)


Below are the contents of apachelog.txt, the only log file I found in 
/tests. Server.conf should be writing errors to 
/root/tcl-rivet/tests/error_log. But there is no such file.

   Syntax error on line 17 of /root/tcl-rivet/tests/server.conf:
   Cannot load /root/tcl-rivet/tests/libexec/mod_access.so into server:
   /root/tcl-rivet/tests/libexec/mod_access.so:
   cannot open shared object file:
   No such file or directory

/usr/libexec/mod_access.so exists. The ServerRoot value in server.conf is 
"/root/tcl-rivet/tests". I changed the server.conf value to match that in 
/etc/apache/httpd.conf hoping the test would find mod_access.so. The tests 
still failed with the same score: 3 passed, 93 failed.

I'm not sure it is worth pursuing the testing problem if you think the 
tests are faulty and the installation is otherwise good.

Tom


>--
>David N. Welton
>  - http://www.dedasys.com/davidw/
>
>Apache, Linux, Tcl Consulting
>  - http://www.dedasys.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org