1<!--$Id: test.so,v 10.32 2003/11/08 19:17:43 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB Reference Guide: Running the test suite under UNIX</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<a name="2"><!--meow--></a> 12<table width="100%"><tr valign=top> 13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX/POSIX systems</dl></b></td> 14<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> 15</td></tr></table> 16<p align=center><b>Running the test suite under UNIX</b></p> 17<p>The Berkeley DB test suite is built if you specify 18<a href="/ref/build_unix/conf.html#--enable-test">--enable-test</a> 19as an argument when configuring Berkeley DB. The test suite also 20requires that you configure and build the Tcl interface to the 21library.</p> 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 24Berkeley DB configuration assumes that you intend to use the 25version of the tclsh utility included in the Tcl installation with which 26Berkeley DB was configured to run the test suite, and further 27assumes that the test suite will be run with the libraries prebuilt in 28the Berkeley DB build directory. If either of these assumptions 29are incorrect, you will need to edit the <b>include.tcl</b> file and 30change the following line to correctly specify the full path to the 31version of tclsh with which you are going to run the test suite:</p> 32<blockquote><pre>set tclsh_path ...</pre></blockquote> 33<p>You may also need to change the following line to correctly specify the 34path from the directory where you are running the test suite to the 35location of the Berkeley DB Tcl library you built:</p> 36<blockquote><pre>set test_path ...</pre></blockquote> 37<p>It may not be necessary that this be a full path if you have configured 38your system's shared library mechanisms to search the directory where 39you built or installed the Tcl library.</p> 40<p>All Berkeley DB tests are run from within <b>tclsh</b>. After 41starting tclsh, you must source the file <b>test.tcl</b> in the test 42directory. For example, if you built in the <b>build_unix</b> 43directory of the distribution, this would be done using the following 44command:</p> 45<blockquote><pre>% source /test/test.tcl</pre></blockquote> 46<p>If no errors occur, you should get a "%" prompt.</p> 47<p>You are now ready to run tests in the test suite; see 48<a href="/ref/test/run.html">Running the test suite</a> for more 49information.</p> 50<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> 51</td></tr></table> 52<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 53</body> 54</html> 55