2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB Reference Guide: Running the test suite under UNIX</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<a name="2"><!--meow--></a>
13
<table width="100%"><tr valign=top>
14
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX systems</dl></h3></td>
15
<td align=right><a href="../../ref/build_unix/shlib.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/build_unix/notes.html"><img src="../../images/next.gif" alt="Next"></a>
18
<h1 align=center>Running the test suite under UNIX</h1>
19
<p>The Berkeley DB test suite is built if you specify --enable-test as an
20
argument when configuring Berkeley DB. The test suite also requires that you
21
configure and build the Tcl API.
22
<p>Before running the tests for the first time, you may need to edit the
23
<b>include.tcl</b> file in your build directory. The Berkeley DB
24
configuration assumes that you intend to use the version of the tclsh
25
utility included in the Tcl installation with which Berkeley DB was configured
26
to run the test suite, and further assumes that the test suite will be
27
run with the libraries prebuilt in the Berkeley DB build directory. If
28
either of these assumptions are incorrect, you will need to edit the
29
<b>include.tcl</b> file and change the following line to correctly
30
specify the full path to the version of tclsh with which you are going
31
to run the test suite:
32
<p><blockquote><pre>set tclsh_path ...</pre></blockquote>
33
<p>You may also need to change the following line to correctly specify the
34
path from the directory where you are running the test suite to the
35
location of the Berkeley DB Tcl API library you built:
36
<p><blockquote><pre>set test_path ...</pre></blockquote>
37
<p>It may not be necessary that this be a full path if you have configured
38
your system's shared library mechanisms to search the directory where
39
you built or installed the Tcl library.
40
<p>All Berkeley DB tests are run from within <b>tclsh</b>. After starting tclsh,
41
you must source the file <b>test.tcl</b> in the test directory. For
42
example, if you built in the <b>build_unix</b> directory of the
43
distribution, this would be done using the following command:
44
<p><blockquote><pre>% source ../test/test.tcl</pre></blockquote>
45
<p>If no errors occur, you should get a "%" prompt.
46
<p>You are now ready to run tests in the test suite; see
47
<a href="../../ref/test/run.html">Running the test suite</a> for more
49
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/build_unix/shlib.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/build_unix/notes.html"><img src="../../images/next.gif" alt="Next"></a>
51
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>