test.html   [plain text]


<!--$Id: test.so,v 10.45 2005/12/01 03:18:51 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 Windows</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><a name="3"><!--meow--></a>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for Windows systems</dl></b></td>
<td align=right><a href="../build_win/small.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_win/notes.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>Running the test suite under Windows</b></p>
<p>To build the test suite on Windows platforms, you will need to configure
Tcl support.  You will also need sufficient main memory (at least 64MB),
and disk (around 250MB of disk will be sufficient).</p>
<b>Building the software needed by the tests</b>
<p>To build for testing, perform the following steps:</p>
<ol>
<p><li>The test suite must be run against a Debug version of
Berkeley DB, so you will need a Debug version of the Tcl
libraries.  This involves building Tcl from its source.  See the Tcl
sources for more information.
<p><li>Open the Berkeley DB workspace.
<p><li>Build the Tcl API (see
<a href="../../ref/build_win/intro.html">Building the Tcl API</a> for details).
<p><li>In Visual C++ 6.0, set the active configuration to db_test --
Debug.  To set an active configuration, under the <i>Build</i> menu,
select <i>Set Active Configuration</i>.  Then choose
<i>db_test -- Debug</i>.  In Visual C++ .NET, just make sure
<i>Debug</i> is selected in the drop down list on the tool bar.
<p><li>Build.  In Visual C++ 6.0, the IDE menu item for this is
called "build dbkill.exe", even though dbkill is just one of the things
that is built.  In Visual C++ .NET, right-click on the
<i>db_test</i> project and select <i>Build</i>. This step makes
sure that the base Berkeley DB .dll, tcl support, and various tools that
are needed by the test suite are all built.
</ol>
<b>Running the test suite under Windows</b>
<p>Before running the tests for the first time, you must edit the file
<b>include.tcl</b> in your build directory and change the line
that reads:</p>
<blockquote><pre>set tclsh_path SET_YOUR_TCLSH_PATH</pre></blockquote>
<p>You will want to use the location of the <b>tclsh</b> program (be
sure to include the name of the executable).  For example, if Tcl is
installed in <b>d:\tcl</b>, this line should be the following:</p>
<blockquote><pre>set tclsh_path d:\tcl\bin\tclsh84g.exe</pre></blockquote>
<p>If your path includes spaces be sure to enclose it in quotes:</p>
<blockquote><pre>set tclsh_path "c:\Program Files\tcl\bin\tclsh84g.exe"</pre></blockquote>
<p>Make sure that the path to Berkeley DB's tcl library is in your
current path.  On Windows NT/2000/XP, edit your PATH using the My
Computer -&gt; Properties -&gt; Advanced -&gt; Environment
Variables dialog.  On earlier versions of Windows, you may find it
convenient to add a line to c:\AUTOEXEC.BAT:</p>
<blockquote><pre>SET PATH=%PATH%;c:\db\build_windows\Debug</pre></blockquote>
<p>Then, in a shell of your choice enter the following commands:</p>
<ol>
<p><li>cd build_windows
<p><li>run <b>d:\tcl\bin\tclsh84g.exe</b>, or the equivalent name of
the Tcl shell for your system.
<p>You should get a "%" prompt.</p>
<p><li>% source ../test/test.tcl
<p>If no errors occur, you should get a "%" prompt.</p>
</ol>
<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_win/small.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_win/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>