Debian Codegraph @

docs/installation/build_unix_test.html

raw
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Running the test suite under UNIX</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
10 <link rel="up" href="build_unix.html" title="Chapter 7.  Building Berkeley DB for UNIX/POSIX" />
11 <link rel="prev" href="build_unix_shlib.html" title="Dynamic shared libraries" />
12 <link rel="next" href="build_unix_notes.html" title="Architecture independent FAQ" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Running the test suite under UNIX</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="build_unix_shlib.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 7. 
26 Building Berkeley DB for UNIX/POSIX
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="build_unix_notes.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="build_unix_test"></a>Running the test suite under UNIX</h2>
38 </div>
39 </div>
40 </div>
41 <div class="toc">
42 <dl>
43 <dt>
44 <span class="sect2">
45 <a href="build_unix_test.html#build_unix_test_sql">Building SQL Test Suite on Unix</a>
46 </span>
47 </dt>
48 </dl>
49 </div>
50 <p>The Berkeley DB test suite is built if you specify
51 <a class="link" href="build_unix_conf.html#build_unix_conf.--enable-test">--enable-test</a>
52 as an argument when configuring Berkeley DB. The test suite also
53 requires that you configure and build the Tcl interface to the
54 library.</p>
55 <p>Before running the tests for the first time, you may need to edit the
56 <code class="filename">include.tcl</code> file in your build directory. The
57 Berkeley DB configuration assumes that you intend to use the
58 version of the tclsh utility included in the Tcl installation with which
59 Berkeley DB was configured to run the test suite, and further
60 assumes that the test suite will be run with the libraries prebuilt in
61 the Berkeley DB build directory. If either of these assumptions
62 are incorrect, you will need to edit the <code class="filename">include.tcl</code> file and
63 change the following line to correctly specify the full path to the
64 version of tclsh with which you are going to run the test suite:</p>
65 <pre class="programlisting">set tclsh_path ...</pre>
66 <p>You may also need to change the following line to correctly specify the
67 path from the directory where you are running the test suite to the
68 location of the Berkeley DB Tcl library you built:</p>
69 <pre class="programlisting">set test_path ...</pre>
70 <p>It may not be necessary that this be a full path if you have configured
71 your system's shared library mechanisms to search the directory where
72 you built or installed the Tcl library.</p>
73 <p>All Berkeley DB tests are run from within <span class="bold"><strong>tclsh</strong></span>. After
74 starting tclsh, you must source the file <code class="filename">test.tcl</code> in the test
75 directory. For example, if you built in the <code class="filename">build_unix</code>
76 directory of the distribution, this would be done using the following
77 command:</p>
78 <pre class="programlisting">% source ../test/tcl/test.tcl</pre>
79 <p>If no errors occur, you should get a "%" prompt.</p>
80 <p>You are now ready to run tests in the test suite; see
81 Running the test suite for more information.</p>
82 <div class="sect2" lang="en" xml:lang="en">
83 <div class="titlepage">
84 <div>
85 <div>
86 <h3 class="title"><a id="build_unix_test_sql"></a>Building SQL Test Suite on Unix</h3>
87 </div>
88 </div>
89 </div>
90 <p>
91 The Berkeley DB SQL interface test suite is built if you specify
92 <a class="link" href="build_unix_conf.html#build_unix_conf.--enable-test">--enable-test</a> and <a class="link" href="build_unix_conf.html#build_unix_conf.--enable-sql">--enable-sql </a>
93 as arguments, when configuring Berkeley DB. The test suite also
94 requires that you build the Berkeley DB Tcl API.
95 </p>
96 <pre class="programlisting">
97 ../dist/configure --enable-sql --enable-test --with-tcl=/usr/lib
98 </pre>
99 <p>
100 This builds the <span class="emphasis"><em>testfixture</em></span> project in <code class="literal">../build_unix/sql</code>.
101 </p>
102 <p>To enable extensions like full text search layer and R-Tree layer in the SQL test suite, configure with --enable-amalgamation.
103 </p>
104 </div>
105 </div>
106 <div class="navfooter">
107 <hr />
108 <table width="100%" summary="Navigation footer">
109 <tr>
110 <td width="40%" align="left"><a accesskey="p" href="build_unix_shlib.html">Prev</a> </td>
111 <td width="20%" align="center">
112 <a accesskey="u" href="build_unix.html">Up</a>
113 </td>
114 <td width="40%" align="right"> <a accesskey="n" href="build_unix_notes.html">Next</a></td>
115 </tr>
116 <tr>
117 <td width="40%" align="left" valign="top">Dynamic shared libraries </td>
118 <td width="20%" align="center">
119 <a accesskey="h" href="index.html">Home</a>
120 </td>
121 <td width="40%" align="right" valign="top"> Architecture independent FAQ</td>
122 </tr>
123 </table>
124 </div>
125 </body>
126 </html>