README
1This directory contains unit tests for the Java APIs that are common the BDB
2and BDB JE products: the bind, collections, persist (DPL) and util packages.
3
4These tests are run using Apache Ant and JUnit.
5
6External software requirements:
7
8 Java 1.5 or later.
9 The Sun JDK is normally used, but any compatible JVM should work.
10
11 Apache Ant 7.0 or later.
12 http://ant.apache.org/bindownload.cgi
13
14 JUnit 3.8.1 or 3.8.2 (later versions do not currently work)
15 http://prdownloads.sourceforge.net/junit/junit3.8.1.zip?download
16
17The bin directories of both Java and Ant must be in your executable path. The
18junit.jar file must be available to Ant. The simplest way to do this is to copy
19the junit.jar file into your Ant's lib directory.
20
21There are two configuration settings for specifying the DB release to be
22tested:
23
24 The release binaries must be in your system library path (LD_LIBRARY_PATH
25 on Unix).
26
27 The Java property db.jar is specified to override the default location,
28 which is the build_unix/db.jar file in this release directory.
29
30The following ant commands should be executed from this directory:
31
32 # To perform a clean build of the tests
33 ant clean build
34
35 # To build (if needed) and run the tests
36 ant test
37
38 # To test the examples
39 ant examples
40
41For example, here are commands to build and test in a local db directory.
42
43 cd ~/db/test/scr024
44 ant clean build
45 ant test
46
47Several output directories are creating when building and testing. These can
48be deleted with:
49
50 ant clean
51
52