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.62.4" /> 9 <link rel="home" href="index.html" title="Porting Berkeley DB" /> 10 <link rel="up" href="index.html" title="Porting Berkeley DB" /> 11 <link rel="previous" 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></div> 36 </div> 37 <div class="toc"> 38 <p> 39 <b>Table of Contents</b> 40 </p> 41 <dl> 42 <dt> 43 <span class="sect1"> 44 <a href="testport.html#testtypes">Types of Tests for Berkeley DB</a> 45 </span> 46 </dt> 47 <dt> 48 <span class="sect1"> 49 <a href="modifytest.html">Modifying the Tests</a> 50 </span> 51 </dt> 52 <dt> 53 <span class="sect1"> 54 <a href="testrun.html">Running the Tests</a> 55 </span> 56 </dt> 57 <dt> 58 <span class="sect1"> 59 <a href="testreview.html">Reviewing the Results of the Tests</a> 60 </span> 61 </dt> 62 <dt> 63 <span class="sect1"> 64 <a href="sourceintegrate.html">Integrating Changes into the Berkeley DB Source Code</a> 65 </span> 66 </dt> 67 <dt> 68 <span class="sect1"> 69 <a href="certport.html">Certifying a Port of Berkeley DB</a> 70 </span> 71 </dt> 72 </dl> 73 </div> 74 <p> 75There are several different types of tests available for validating your 76port of Berkeley DB as discussed in <a href="testport.html#testtypes">Types of Tests for Berkeley DB</a>. Testing your port involves: 77</p> 78 <div class="itemizedlist"> 79 <ul type="disc"> 80 <li> 81 <p> 82<a href="modifytest.html">Modifying the Tests</a> 83</p> 84 </li> 85 <li> 86 <p> 87<a href="testrun.html">Running the Tests</a> 88</p> 89 </li> 90 <li> 91 <p> 92 <a href="testreview.html">Reviewing the Results of the Tests</a> 93</p> 94 </li> 95 <li> 96 <p> 97<a href="sourceintegrate.html">Integrating Changes into the Berkeley DB Source Code</a> 98</p> 99 </li> 100 <li> 101 <p> 102 <a href="certport.html">Certifying a Port of Berkeley DB</a> 103</p> 104 </li> 105 </ul> 106 </div> 107 <div class="sect1" lang="en" xml:lang="en"> 108 <div class="titlepage"> 109 <div> 110 <div> 111 <h2 class="title" style="clear: both"><a id="testtypes"></a>Types of Tests for Berkeley DB</h2> 112 </div> 113 </div> 114 <div></div> 115 </div> 116 <p> 117There are two types of tests available for testing your port of Berkeley DB: 118</p> 119 <div class="itemizedlist"> 120 <ul type="disc"> 121 <li> 122 <p>The C Tests for Berkeley DB</p> 123 <p> 124There are three types of C tests for Berkeley DB. Each of these is in its own directory: 125</p> 126 <div class="itemizedlist"> 127 <ul type="circle"> 128 <li> 129 <p> 130<tt class="literal">test_os</tt> 131contains files that test the system primitives. See the 132<tt class="literal">test_os/Test_OS_Technical_Detail</tt> file for detailed information on these tests (for example, how each function is tested). 133</p> 134 </li> 135 <li> 136 <p> 137<tt class="literal">test_mutex</tt> 138contains files that test the use of mutexes in Berkeley DB. 139</p> 140 </li> 141 <li> 142 <p> 143<tt class="literal">test_micro</tt> 144contains the C tests that exercise the most common code paths, but it is 145not intended to be an exhaustive Test Suite. Additionally, it tests the 146different versions of Berkeley DB (including the new port) against each 147other. The <tt class="literal">test_micro</tt> tests can either be run in a shell or as simple C tests. 148</p> 149 </li> 150 </ul> 151 </div> 152 </li> 153 <li> 154 <p>The Berkeley DB Test Suite</p> 155 <p> 156The <tt class="literal">test</tt> 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. 157</p> 158 </li> 159 </ul> 160 </div> 161 </div> 162 </div> 163 <div class="navfooter"> 164 <hr /> 165 <table width="100%" summary="Navigation footer"> 166 <tr> 167 <td width="40%" align="left"><a accesskey="p" href="buildtarget.html">Prev</a>��</td> 168 <td width="20%" align="center"> 169 <a accesskey="u" href="index.html">Up</a> 170 </td> 171 <td width="40%" align="right">��<a accesskey="n" href="modifytest.html">Next</a></td> 172 </tr> 173 <tr> 174 <td width="40%" align="left" valign="top"> Building on the Target Platform��</td> 175 <td width="20%" align="center"> 176 <a accesskey="h" href="index.html">Home</a> 177 </td> 178 <td width="40%" align="right" valign="top">��Modifying the Tests</td> 179 </tr> 180 </table> 181 </div> 182 </body> 183</html> 184