1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Running the test suite under Windows</title>
<link rel="stylesheet" href="gettingStarted.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
<link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
<link rel="up" href="build_win.html" title="Chapter 5. Building Berkeley DB for Windows" />
<link rel="prev" href="build_win_small.html" title="Building a small memory footprint library" />
<link rel="next" href="build_win_notes.html" title="Windows notes" />
</head>
<body>
<div xmlns="" class="navheader">
<div class="libver">
<p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">Running the test suite under
Windows</th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="build_win_small.html">Prev</a> </td>
<th width="60%" align="center">Chapter 5. Building Berkeley DB for Windows </th>
<td width="20%" align="right"> <a accesskey="n" href="build_win_notes.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="build_win_test"></a>Running the test suite under
Windows</h2>
</div>
</div>
</div>
<div class="toc">
<dl>
<dt>
<span class="sect2">
<a href="build_win_test.html#idp458352">Building the software needed
by the tests</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win_test.html#idp389880">Running the test suite under Windows</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win_test.html#build_win_test_sql">Building the software
needed by the SQL tests</a>
</span>
</dt>
</dl>
</div>
<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>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idp458352"></a>Building the software needed
by the tests</h3>
</div>
</div>
</div>
<p>
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. Then build the Tcl
API - see <a class="xref" href="build_win_tcl.html" title="Building the Tcl API">Building the Tcl API</a> for details.
</p>
<div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a id="idp472136"></a>Visual Studio 2005 or newer</h4>
</div>
</div>
</div>
<p>
To build for testing, perform the following steps:
</p>
<div class="orderedlist">
<ol type="1">
<li>
Open the Berkeley DB solution.
</li>
<li>
Ensure that the target configuration is
Debug
</li>
<li>
Right click the <span class="emphasis"><em>db_tcl</em></span>
project in the Solution Explorer, and select
<span class="emphasis"><em>Build</em></span>.
</li>
<li>
Right click the
<span class="emphasis"><em>db_test</em></span> project in the
Solution Explorer, and select
<span class="emphasis"><em>Build</em></span>.
</li>
</ol>
</div>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idp389880"></a>Running the test suite under Windows</h3>
</div>
</div>
</div>
<p>
Before running the tests for the first time, you must
edit the file <code class="filename">include.tcl</code> in your
build directory and change the line that reads:
</p>
<pre class="programlisting">set tclsh_path SET_YOUR_TCLSH_PATH</pre>
<p>
You will want to use the location of the
<code class="filename">tclsh</code> program (be sure to include
the name of the executable). For example, if Tcl is
installed in <code class="filename">d:\tcl</code>, this line should
be the following:
</p>
<pre class="programlisting">set tclsh_path d:\tcl\bin\tclsh85.exe</pre>
<p>
If your path includes spaces be sure to enclose it in
quotes:
</p>
<pre class="programlisting">set tclsh_path "c:\Program Files\tcl\bin\tclsh85.exe"</pre>
<p>
Make sure that the path to Berkeley DB's tcl library is
in your current path. Edit your PATH using the Control
Panel -> System -> Advanced system settings
-> Environment Variables dialog. On earlier versions of
Windows, you may find it convenient to add a line to
c:\AUTOEXEC.BAT:
</p>
<pre class="programlisting">SET PATH=%PATH%;c:\db\build_windows</pre>
<p>
Then, in a shell of your choice enter the following
commands:
</p>
<div class="orderedlist">
<ol type="1">
<li>
cd build_windows
</li>
<li>
run
<code class="filename">d:\tcl\bin\tclsh85.exe</code>, or the
equivalent name of the Tcl shell for your system.
<p>
You should get a "%" prompt.
</p></li>
<li>
% source ../test/tcl/test.tcl
<p>
If no
errors occur, you should get a "%" prompt.
</p></li>
</ol>
</div>
<p>
You are now ready to run tests in the test suite; see
Running the test suite for more information.
</p>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="build_win_test_sql"></a>Building the software
needed by the SQL tests</h3>
</div>
</div>
</div>
<p>
The SQL test suite must be run against a Debug version
of Berkeley DB, so you need a Debug version of the Tcl
libraries. This involves building Tcl from its source. See
the Tcl sources for more information. Then build the Tcl
API - see <a class="xref" href="build_win_tcl.html" title="Building the Tcl API">Building the Tcl API</a> for details.
</p>
<p>
Before building for SQL tests, build the db_tcl and
db_sql_testfixture projects. This requires Tcl 8.5 or
above. If you are using a later version of Tcl, edit the
Tcl library that db_tcl and db_sql_testfixture link to.
</p>
<p>
To do this right click the
<span class="emphasis"><em>db_tcl</em></span><code class="literal">/</code><span class="emphasis"><em>db_sql_testfixture</em></span>
project, select <span class="emphasis"><em>Properties -> Configuration
Properties -> Linker -> Input -> Additional
Dependencies</em></span> and edit the Tcl library,
<span class="emphasis"><em>tcl85.lib</em></span>, to match the version
you are using.
</p>
<p>
Building the db_sql_testfixture project builds the
testfixture.exe program in
<code class="literal">../build_windows/Win32/Debug</code>. It
also builds the projects db and db_sql, on which it
depends.
</p>
<div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a id="idp488224"></a>Visual Studio 2005 or newer</h4>
</div>
</div>
</div>
<p>
To build for testing, perform the following steps:
</p>
<div class="orderedlist">
<ol type="1">
<li>
Open the Berkeley DB solution.
</li>
<li>
Ensure that the target configuration is
Debug.
</li>
<li>
Right click the <span class="emphasis"><em>db_tcl</em></span>
project in the Solution Explorer, and select
<span class="emphasis"><em>Build</em></span>.
</li>
<li>
Right click the
<span class="emphasis"><em>db_sql_testfixture</em></span>
project in the Solution Explorer, and select
<span class="emphasis"><em>Build</em></span>.
</li>
</ol>
</div>
<p>
To test extensions, specify the following in the
<span class="emphasis"><em>Preprocessor Definitions</em></span> of
the <span class="emphasis"><em>db_sql_testfixture</em></span> project:
</p>
<div class="itemizedlist">
<ul type="disc">
<li><code class="literal">
SQLITE_ENABLE_FTS3</code> to enable
the full text search layer
</li>
<li><code class="literal">
SQLITE_ENABLE_RTREE</code> to enable
the R-Tree layer
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="build_win_small.html">Prev</a> </td>
<td width="20%" align="center">
<a accesskey="u" href="build_win.html">Up</a>
</td>
<td width="40%" align="right"> <a accesskey="n" href="build_win_notes.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Building a small memory
footprint library </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> Windows notes</td>
</tr>
</table>
</div>
</body>
</html>
|