From: Leen De S. <lee...@sc...> - 2004-12-23 10:21:45
|
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 > hsq...@li... > https://lists.sourceforge.net/lists/listinfo/hsqldb-developers |