db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Extra notes on running tests
Date Fri, 12 Nov 2004 19:46:51 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The class RunTest usually runs the actual test in another JVM, that it
is spawns a JVM to run the test. The JVM running the class RunTest is
used to manage the required files and perform the diffs and result
processing. This means that the classpath *must* be set in the
environment  and exported, like

export CLASSPATH="$jardir/derby.jar:$jardir/derbytools.jar: \
$jardir/derbyTesting.jar:/local/derby/tools/java/jakarta-oro-2.0.8.jar"


Invoking the tests by setting the classpath with a command line option
will *not* work, e.g. this will not work.

java -cp "$jardir/derby.jar:$jardir/derbytools.jar: \
$jardir/derbyTesting.jar:/local/derby/tools/java/jakarta-oro-2.0.8.jar"
 org.apache.derbyTesting.functionTests.harness.RunTest lang/supersimple.sql


In addition, in case it isn't clear, if you are just running tests
against just the embedded engine, then you do not need the network
server or JCC jar files in your classpath.


Dan.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBlRMrIv0S4qsbfuQRAiX0AKDGaFRcTsGBpmvCP33nQ8WLq0jqlACeO1Yy
a3wFJ0W6BhdBygDeEj6CGlg=
=CV6h
-----END PGP SIGNATURE-----


Mime
View raw message