Berkeley DB Reference Guide: Building Berkeley DB for UNIX systems
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++

### Berkeley DB Reference Guide: Building Berkeley DB for UNIX systems |

# Running the test suite under UNIX

The Berkeley DB test suite is built if you specify --enable-test as an argument when configuring Berkeley DB. The Berkeley DB test suite requires that Berkeley DB be built as a dynamic library (--enable-dynamic) and that the Tcl/Tk (--enable-tcl) API be configured as well.

Before running the tests for the first time, you must edit the file include.tcl in your build directory and change the line that reads:

>     set tclsh_path SET_YOUR_TCLSH_PATH

to correctly specify the full path to the version of tclsh with which you are going to run the test suite.

You must also change the line that reads:

>     set test_path SET_YOUR_TCLLIB_PATH

to correctly specify the path from the directory where you are running the test suite to the location of the Berkeley DB Tcl API library you built.

It may not be necessary that this be a full path if you have configured your system's dynamic shared library mechanisms to search the directory where you built or installed the Tcl library. Regardless, this is entirely system dependent and there is nothing that Berkeley DB can do to help.

All Berkeley DB tests are run from within tclsh. After starting tclsh, you must source the file test.tcl in the test directory. For example, if you built in the build_unix directory of the distribution, this would be done using the command:

>     % source ../test/test.tcl

Once you have executed that command and the "%" prompt has returned without errors, you are ready to run tests in the test suite.

Copyright Sleepycat Software