Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 909f302ad53a08b3685753343102c969 > files > 689

lib64db4.1-devel-4.1.25-13mdv2008.1.x86_64.rpm

<!--$Id: test.so,v 10.37 2002/09/10 08:35:37 mjc Exp $-->
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
<!--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,b+tree,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><h3><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for Windows systems</dl></h3></td>
<td align=right><a href="../../ref/build_win/intro.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_win/notes.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p>
<h1 align=center>Running the test suite under Windows</h1>
<p>To build the test suite on Win32 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).
<h3>Building the software needed by the tests</h3>
<p>To build for testing, perform the following steps.
<p><ol>
<p><li>Open the <b>build_win32/Berkeley_DB.dsw</b> 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>
<p>Note that if you want to run the test suite against a Debug version of
Berkeley DB, you need to build a Debug version of Tcl.  This involves building
Tcl from its source.
<h3>Running the test suite under Windows</h3>
<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/tclsh83d.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/tclsh83d.exe"</pre></blockquote>
<p>If you run the test suite from the command prompt 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_win32\Debug</pre></blockquote>
<p>Then, in a shell of your choice enter the following commands:
<p><ol>
<p><li>cd build_win32
<p><li>run <b>d:/tcl/bin/tclsh83d.exe</b>, or the equivalent name of
the Tcl shell for your distribution.
<p>You should get a "%" prompt.
<p><li>% source ../test/test.tcl.
<p>If no errors occur, you should get a "%" prompt.
</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.
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/build_win/intro.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_win/notes.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
</body>
</html>