Hi Fred,

It's just a few lines :)

=====================

Assuming the hsqldb source distribution was extracted to the directory
$dist:

> cd $dist/build
> ant jartest
> cd $dist/testrun/hsqldb
Possibly:
> chmod a+x runTest.sh
> ./runTest.sh TestSelf

With the modified script, this should work.

Leen 


On Thu, 2004-12-23 at 13:18 +0000, fredt wrote:
> Why not. So long as it's just a few lines of instructions, we can add it the 
> the Guide.
> 
> Fred
> 
> ----- Original Message ----- 
> From: "Leen De Schutter" <[EMAIL PROTECTED]>
> To: "hsqldb-developers" <hsqldb-developers@lists.sourceforge.net>
> Sent: 23 December 2004 13:01
> Subject: Re: [Hsqldb-developers] problem running the tests
> 
> 
> Done - should I write a documentation file detailing how to execute the
> tests?
> 
> Leen
> 
> On Thu, 2004-12-23 at 12:45 +0000, fredt wrote:
> > Thanks,
> >
> > Please submit the script in .zip form to the Patch Tracker on the HSQLDB
> > SourceForge site.
> >
> > Fred
> > ----- Original Message ----- 
> > From: "Leen De Schutter" <[EMAIL PROTECTED]>
> > To: "hsqldb-developers" <hsqldb-developers@lists.sourceforge.net>
> > Sent: 23 December 2004 10:21
> > Subject: Re: [Hsqldb-developers] problem running the tests
> >
> >
> > Okay guys, fixed it. Wasn't a terrible bug, I must have approached the
> > problem wrong :)
> > Does anyone want me to send the fixed script to the mailing list? The
> > problem was that the script didn't find the TestSelf class because the
> > classpath wasn't set correctly.
> >
> > In case there is interest, I'm willing to write a small documentation
> > file on how to get the tests running on a Linux system. Please let me
> > know if that is the case.
> >
> > Leen
> >
> > On Thu, 2004-12-23 at 11:06 +0100, Leen De Schutter wrote:
> > > Hi guys,
> > >
> > > First of all, sorry for the cross-post. I mistakenly sent this message
> > > to hsqldb-users, where it obviously doesn't belong.
> > >
> > > I'm trying to run the set of tests contained in the testrun/hsqldb
> > > subdirectory of the distribution under Linux, and I'm having some
> > > problems.
> > >
> > > At first I got a "bad interpreter error" when executing
> > >
> > > > ./runTest.sh TestSelf
> > >
> > > in the testrun directory. That really had me confused. After some
> > > searching I found that the error was due to the shell script
> > > "runtest.sh" containing Windows returns (\r\n) instead of Unix ones
> > > (\n). So a run of dos2unix fixed that.
> > >
> > > But now I keep getting NoClassDefFoundExceptions when trying to execute
> > > the script. I've been tinkering with it (it didn't set $dbhome right so
> > > first it couldn't find its lib functions - modified that) but can't get
> > > it right.
> > >
> > > I've started over several times, but the documentation only briefly
> > > mentions how to run the tests, and it's only specified on Windows.
> > >
> > > Here's the error I keep getting:
> > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > org/hsqldb/test/TestSelf
> > >
> > > I located this class TestSelf, it's in
> > > $HSQLDB_HOME/classes/org/hsqldb/test, but since I don't know a whole lot
> > > about shell scripting, I can't figure it out.
> > > For example, the value passed to the JDK for the classpath is stored in
> > > the variable $cp, but this variable isn't set anywhere and doesn't exist
> > > in my environment either.
> > >
> > > I attached my modified version. The only changes are the returns, the
> > > assignment of $dbhome on line 33, and a printout of the current dir and
> > > the $cp variable at the end (lines 50-51).
> > >
> > > If anyone could point me in the right direction, that would be great!
> > > I've really tried on this one, but can't get it right.
> > >
> > > Thanks guys,
> > >
> > > Leen
> > >
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > SF email is sponsored by - The IT Product Guide
> > > Read honest & candid reviews on hundreds of IT Products from real users.
> > > Discover which products truly live up to the hype. Start reading now.
> > > http://productguide.itmanagersjournal.com/
> > > _______________________________________________
> > > hsqldb-developers mailing list
> > > hsqldb-developers@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/hsqldb-developers
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > hsqldb-developers mailing list
> > hsqldb-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/hsqldb-developers
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > hsqldb-developers mailing list
> > hsqldb-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/hsqldb-developers
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> hsqldb-developers mailing list
> hsqldb-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hsqldb-developers 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> hsqldb-developers mailing list
> hsqldb-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hsqldb-developers



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
hsqldb-developers mailing list
hsqldb-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers

Reply via email to