test.html   [plain text]


<!--$Id: test.so,v 10.32 2003/11/08 19:17:43 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: Running the test suite under UNIX</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<a name="2"><!--meow--></a>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX/POSIX systems</dl></b></td>
<td align=right><a href="../build_unix/shlib.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/notes.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>Running the test suite under UNIX</b></p>
<p>The Berkeley DB test suite is built if you specify
<a href="../../ref/build_unix/conf.html#--enable-test">--enable-test</a>
as an argument when configuring Berkeley DB.  The test suite also
requires that you configure and build the Tcl interface to the
library.</p>
<p>Before running the tests for the first time, you may need to edit the
<b>include.tcl</b> file in your build directory.  The
Berkeley DB configuration assumes that you intend to use the
version of the tclsh utility included in the Tcl installation with which
Berkeley DB was configured to run the test suite, and further
assumes that the test suite will be run with the libraries prebuilt in
the Berkeley DB build directory.  If either of these assumptions
are incorrect, you will need to edit the <b>include.tcl</b> file and
change the following line to correctly specify the full path to the
version of tclsh with which you are going to run the test suite:</p>
<blockquote><pre>set tclsh_path ...</pre></blockquote>
<p>You may also need to change the following line to correctly specify the
path from the directory where you are running the test suite to the
location of the Berkeley DB Tcl library you built:</p>
<blockquote><pre>set test_path ...</pre></blockquote>
<p>It may not be necessary that this be a full path if you have configured
your system's shared library mechanisms to search the directory where
you built or installed the Tcl library.</p>
<p>All Berkeley DB tests are run from within <b>tclsh</b>.  After
starting tclsh, you must source the file <b>test.tcl</b> in the test
directory.  For example, if you built in the <b>build_unix</b>
directory of the distribution, this would be done using the following
command:</p>
<blockquote><pre>% source ../test/test.tcl</pre></blockquote>
<p>If no errors occur, you should get a "%" prompt.</p>
<p>You are now ready to run tests in the test suite; see
<a href="../../ref/test/run.html">Running the test suite</a> for more
information.</p>
<table width="100%"><tr><td><br></td><td align=right><a href="../build_unix/shlib.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/notes.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>