• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/docs/porting/
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>Chapter��3.��Testing and Certifying the Port</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="Porting Berkeley DB" />
10    <link rel="up" href="index.html" title="Porting Berkeley DB" />
11    <link rel="prev" href="buildtarget.html" title="Building on the Target Platform" />
12    <link rel="next" href="modifytest.html" title="Modifying the Tests" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Chapter��3.��Testing and Certifying the Port</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="buildtarget.html">Prev</a>��</td>
22          <th width="60%" align="center">��</th>
23          <td width="20%" align="right">��<a accesskey="n" href="modifytest.html">Next</a></td>
24        </tr>
25      </table>
26      <hr />
27    </div>
28    <div class="chapter" lang="en" xml:lang="en">
29      <div class="titlepage">
30        <div>
31          <div>
32            <h2 class="title"><a id="testport"></a>Chapter��3.��Testing and Certifying the Port</h2>
33          </div>
34        </div>
35      </div>
36      <div class="toc">
37        <p>
38          <b>Table of Contents</b>
39        </p>
40        <dl>
41          <dt>
42            <span class="sect1">
43              <a href="testport.html#testtypes">Types of Tests for Berkeley DB</a>
44            </span>
45          </dt>
46          <dt>
47            <span class="sect1">
48              <a href="modifytest.html">Modifying the Tests</a>
49            </span>
50          </dt>
51          <dt>
52            <span class="sect1">
53              <a href="testrun.html">Running the Tests</a>
54            </span>
55          </dt>
56          <dt>
57            <span class="sect1">
58              <a href="testreview.html">Reviewing the Results of the Tests</a>
59            </span>
60          </dt>
61          <dt>
62            <span class="sect1">
63              <a href="sourceintegrate.html">Integrating Changes into the Berkeley DB Source Code</a>
64            </span>
65          </dt>
66          <dt>
67            <span class="sect1">
68              <a href="certport.html">Certifying a Port of Berkeley DB</a>
69            </span>
70          </dt>
71        </dl>
72      </div>
73      <p>
74There are several different types of tests available for validating your
75port of Berkeley DB as discussed in <a class="xref" href="testport.html#testtypes" title="Types of Tests for Berkeley DB">Types of Tests for Berkeley DB</a>. Testing your port involves:
76</p>
77      <div class="itemizedlist">
78        <ul type="disc">
79          <li>
80            <p>
81<a class="xref" href="modifytest.html" title="Modifying the Tests">Modifying the Tests</a>
82</p>
83          </li>
84          <li>
85            <p>
86<a class="xref" href="testrun.html" title="Running the Tests">Running the Tests</a>
87</p>
88          </li>
89          <li>
90            <p>
91        <a class="xref" href="testreview.html" title="Reviewing the Results of the Tests">Reviewing the Results of the Tests</a>
92</p>
93          </li>
94          <li>
95            <p>
96<a class="xref" href="sourceintegrate.html" title="Integrating Changes into the Berkeley DB Source Code">Integrating Changes into the Berkeley DB Source Code</a>
97</p>
98          </li>
99          <li>
100            <p>
101        <a class="xref" href="certport.html" title="Certifying a Port of Berkeley DB">Certifying a Port of Berkeley DB</a>
102</p>
103          </li>
104        </ul>
105      </div>
106      <div class="sect1" lang="en" xml:lang="en">
107        <div class="titlepage">
108          <div>
109            <div>
110              <h2 class="title" style="clear: both"><a id="testtypes"></a>Types of Tests for Berkeley DB</h2>
111            </div>
112          </div>
113        </div>
114        <p>
115There are two types of tests available for testing your port of Berkeley DB:
116</p>
117        <div class="itemizedlist">
118          <ul type="disc">
119            <li>
120              <p>The C Tests for Berkeley DB</p>
121              <p>
122There are three types of C tests for Berkeley DB. Each of these is in its own directory:
123</p>
124              <div class="itemizedlist">
125                <ul type="circle">
126                  <li>
127                    <p>
128<code class="literal">test_os</code> 
129contains files that test the system primitives. See the
130<code class="literal">test_os/Test_OS_Technical_Detail</code> file for detailed information on these tests (for example, how each function is tested).
131</p>
132                  </li>
133                  <li>
134                    <p>
135<code class="literal">test_mutex</code> 
136contains files that test the use of mutexes in Berkeley DB.
137</p>
138                  </li>
139                  <li>
140                    <p>
141<code class="literal">test_micro</code> 
142contains the C tests that exercise the most common code paths, but it is
143not intended to be an exhaustive Test Suite. Additionally, it tests the
144different versions of Berkeley DB (including the new port) against each
145other.  The <code class="literal">test_micro</code> tests can either be run in a shell or as simple C tests.
146</p>
147                  </li>
148                </ul>
149              </div>
150            </li>
151            <li>
152              <p>The Berkeley DB Test Suite</p>
153              <p>
154The <code class="literal">test</code> directory contains the Berkeley DB Test Suite that tests all of the code in Berkeley DB. Using the Test Suite involves using Tool Command Language (Tcl) version 8.4 or later. Running the standard version of the Test Suite executes tests the major functionality of Berkeley DB. A more exhaustive version of the Test Suite runs all the tests several more times, testing encryption, replication, and different page sizes.
155</p>
156            </li>
157          </ul>
158        </div>
159      </div>
160    </div>
161    <div class="navfooter">
162      <hr />
163      <table width="100%" summary="Navigation footer">
164        <tr>
165          <td width="40%" align="left"><a accesskey="p" href="buildtarget.html">Prev</a>��</td>
166          <td width="20%" align="center">��</td>
167          <td width="40%" align="right">��<a accesskey="n" href="modifytest.html">Next</a></td>
168        </tr>
169        <tr>
170          <td width="40%" align="left" valign="top"> Building on the Target Platform��</td>
171          <td width="20%" align="center">
172            <a accesskey="h" href="index.html">Home</a>
173          </td>
174          <td width="40%" align="right" valign="top">��Modifying the Tests</td>
175        </tr>
176      </table>
177    </div>
178  </body>
179</html>
180