db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bergquist, Brett" <BBergqu...@canoga.com>
Subject RE: Need some help with getting tests to run
Date Thu, 23 Jun 2016 17:10:28 GMT
It looks like somehow a bad "derbyTesting.jar" was built.   It only had a fraction of the classes
within.   I am starting from scratch with a "svn co" and see where it goes from there.   A
also found that none of the standard ant targets such as "clobber" or "clean" seem to remove
the built jars and had to search though the ant build script to find the target "cleanjars".

From: Bergquist, Brett [mailto:BBergquist@canoga.com]
Sent: Thursday, June 23, 2016 11:52 AM
To: derby-dev@db.apache.org
Subject: Need some help with getting tests to run

I have to say I am always confused when I try to figure out how to run tests.   For just a
quick burn test, I downloaded the trunk source, did

ant all
ant build-test-jars
ant junit-all

And I get:

C:\src\derby>ant junit-all
Buildfile: C:\src\derby\build.xml

junit-init-nocp:
    [mkdir] Created dir: C:\src\derby\junit_20160623_1143\testout

junit-pptesting:
    [junit] Running org.apache.derby.PackagePrivateTestSuite
    [junit] Tests run: 67, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.949 sec

junit-init:

emit-junit-classpath-jars:
     [echo] Running with jars: C:\src\derby/jars/sane
     [echo] CLASSPATH (environment variable): ${env.CLASSPATH}

emit-junit-classpath:

junit-core:
    [junit] Running org.apache.derbyTesting.junit.EnvTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.junit.EnvTest FAILED
    [junit] Running org.apache.derbyTesting.functionTests.tests.derbynet._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.derbynet._Suite FAILED
    [junit] Running org.apache.derbyTesting.functionTests.tests.tools._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.tools._Suite FAILED
    [junit] Running org.apache.derbyTesting.functionTests.tests.demo._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.demo._Suite FAILED
    [junit] Running org.apache.derbyTesting.functionTests.tests.lang._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.lang._Suite FAILED
    [junit] Running org.apache.derbyTesting.functionTests.tests.jdbcapi._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.jdbcapi._Suite FAILED
    [junit] Running org.apache.derbyTesting.functionTests.tests.store._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.store._Suite FAILED
    [junit] Running org.apache.derbyTesting.functionTests.tests.engine._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.engine._Suite FAILED
    [junit] Running org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationSuite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationSuite
FAILED
    [junit] Running org.apache.derbyTesting.unitTests.junit._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.unitTests.junit._Suite FAILED
    [junit] Running org.apache.derbyTesting.functionTests.tests.upgradeTests._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.upgradeTests._Suite FAILED
    [junit] Running org.apache.derbyTesting.functionTests.suites.EncryptionSuite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.suites.EncryptionSuite FAILED

checkVMLevel:

junit-jdbc4:

junit-init-nocp:

junit-init:

emit-junit-classpath-jars:
     [echo] Running with jars: C:\src\derby/jars/sane
     [echo] CLASSPATH (environment variable): ${env.CLASSPATH}

emit-junit-classpath:

junit-jdbc4-workhorse:
    [junit] Running org.apache.derbyTesting.functionTests.tests.jdbc4._Suite
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.apache.derbyTesting.functionTests.tests.jdbc4._Suite FAILED

junit-jmx:

junit-lowmem:

junit-all:

BUILD SUCCESSFUL
Total time: 13 seconds

C:\src\derby>

One of the test HTM report looks like:

<error type="java.lang.ClassNotFoundException" message="org.apache.derbyTesting.junit.EnvTest">java.lang.ClassNotFoundException:
org.apache.derbyTesting.junit.EnvTest at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native
Method) at java.lang.Class.forName(Class.java:264) </error>

But the classpath in the report looks like:

<property name="java.class.path" value="C:\src\derby\jars\sane\derby.jar;C:\src\derby\jars\sane\derbyLocale_cs.jar;C:\src\derby\jars\sane\derbyLocale_de_DE.jar;C:\src\derby\jars\sane\derbyLocale_es.jar;C:\src\derby\jars\sane\derbyLocale_fr.jar;C:\src\derby\jars\sane\derbyLocale_hu.jar;C:\src\derby\jars\sane\derbyLocale_it.jar;C:\src\derby\jars\sane\derbyLocale_ja_JP.jar;C:\src\derby\jars\sane\derbyLocale_ko_KR.jar;C:\src\derby\jars\sane\derbyLocale_pl.jar;C:\src\derby\jars\sane\derbyLocale_pt_BR.jar;C:\src\derby\jars\sane\derbyLocale_ru.jar;C:\src\derby\jars\sane\derbyLocale_zh_CN.jar;C:\src\derby\jars\sane\derbyLocale_zh_TW.jar;C:\src\derby\jars\sane\derbyTesting.jar;C:\src\derby\jars\sane\derbyclient.jar;C:\src\derby\jars\sane\derbynet.jar;C:\src\derby\jars\sane\derbyoptionaltools.jar;C:\src\derby\jars\sane\derbyrun.jar;C:\src\derby\jars\sane\derbytools.jar;C:\src\derby\tools\java\junit.jar;C:\src\derby\tools\java\lucene-core.jar;C:\src\derby\tools\java\lucene-analyzers-common.jar;C:\src\derby\tools\java\lucene-queryparser.jar;C:\src\derby\tools\java\json_simple-1.1.jar;C:\Program
Files (x86)\apache-ant-1.9.4\lib\ant-launcher.jar;C:\Program Files (x86)\apache-ant-1.9.4\lib\ant.jar;C:\Program
Files (x86)\apache-ant-1.9.4\lib\ant-junit.jar;C:\Program Files (x86)\apache-ant-1.9.4\lib\ant-junit4.jar"/>

I have no idea what I am doing wrong.  If someone could give me simple directions to just
run "all" of the tests that would be really helpful.

________________________________
Canoga Perkins
20600 Prairie Street
Chatsworth, CA 91311
(818) 718-6300

This e-mail and any attached document(s) is confidential and is intended only for the review
of the party to whom it is addressed. If you have received this transmission in error, please
notify the sender immediately and discard the original message and any attachment(s).

________________________________
Canoga Perkins
20600 Prairie Street
Chatsworth, CA 91311
(818) 718-6300

This e-mail and any attached document(s) is confidential and is intended only for the review
of the party to whom it is addressed. If you have received this transmission in error, please
notify the sender immediately and discard the original message and any attachment(s).

Mime
View raw message