db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <Richard.Hille...@Sun.COM>
Subject Re: Need some help with setting up my Derby development testing environment
Date Tue, 01 Nov 2005 17:26:47 GMT
Hi Bryan,

(1) The tests will create their own databases. That one you don't have 
to worry about.

(2) I'm guessing your problem is that you don't have a properly 
configured classpath.

(3) I'm enclosing the scripts which I use to run tests. You should 
probably do a test run with just a single test to make sure that 
everything's ok. Here's what my various scripts do:

setupClasspath - this script wires together the Derby class tree and the 
jar files in trunk/tools/java
setupTests - this script deletes the old test run and invokes the 
previous script
runtestsuite - this script invokes the previous script and then runs a 
single test suite
runtests - this script invokes the previous script to run the full 
derbyall master suite
runonetest - this script invokes setupTests, then runs a single test

If you put these scripts in some directory in your $PATH, you can do the 

# this runs derbyall

# run the bit.sql test from the lang suite
runonetest lang/bit.sql

Hope this helps,

Bryan Pendleton wrote:

> Hi all,
> I'm still struggling, trying to get a configuration of
> my system such that I can run 'derbyall' successfully.
> Three questions:
> 1) java/testing/README.htm does not say anything about
> creating a database; it just says to "cd into a directory
> that does not have any colons or spaces in it." Do I
> need to create a database for the tests to use? Or do they
> all create their own databases? If I need to create a
> database first, does it need to have any particular
> configuration?
> 2) I'm seeing a bunch of diffs/failures that say "No
> Suitable Driver". I'm wondering whether this means that
> I don't have my db2jcc driver set up correctly. All I
> did was to download the two jar files and put them in
> my CLASSPATH before starting derbyall. Should that have
> been sufficient? How can I confirm that I've got the
> db2jcc driver configured correctly? What else might cause
> me to get "No Suitable Driver"?
> 3) Running 'derbyall', then waiting 6 hours, then staring
> at a giant pile of diffs is not really helping me very
> much; is there a smaller simple test that I can run to
> confirm my environment is set up correcly?
> Thanks,
> bryan

View raw message