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 Tests</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="testport.html" title="Chapter��3.��Testing and Certifying the Port" /> 11 <link rel="prev" href="modifytest.html" title="Modifying the Tests" /> 12 <link rel="next" href="testreview.html" title="Reviewing the Results of 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">Running the Tests</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="modifytest.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��3.��Testing and Certifying the Port</th> 23 <td width="20%" align="right">��<a accesskey="n" href="testreview.html">Next</a></td> 24 </tr> 25 </table> 26 <hr /> 27 </div> 28 <div class="sect1" lang="en" xml:lang="en"> 29 <div class="titlepage"> 30 <div> 31 <div> 32 <h2 class="title" style="clear: both"><a id="testrun"></a>Running the Tests</h2> 33 </div> 34 </div> 35 </div> 36 <p> 37You test your new port of Berkeley DB by running the tests in the following order: 38</p> 39 <div class="orderedlist"> 40 <ol type="1"> 41 <li> 42 <p> 43Run the C tests in the following order: 44</p> 45 <div class="orderedlist"> 46 <ol type="a"> 47 <li> 48 <p> 49Tests for the system primitives located in the 50<code class="literal">test_os</code> directory. To run the tests, follow the 51instructions in the <code class="literal">test_os/readme</code> file. 52</p> 53 </li> 54 <li> 55 <p> 56 57Tests for mutexes located in the <code class="literal">test_mutex</code> 58directory. To run the tests, follow the instructions in the 59<code class="literal">test_mutex/readme</code> file. 60</p> 61 </li> 62 <li> 63 <p> 64Tests for the common code paths located in the 65<code class="literal">test_micro</code> directory. To run the tests in a shell 66script, follow the instructions in the 67<code class="literal">test_micro/readme</code> file. To run the tests as 68simple C tests, follow the instructions in the 69<code class="literal">test_micro/readme_embedded</code> file. 70</p> 71 </li> 72 </ol> 73 </div> 74 </li> 75 <li> 76 <p> 77If the target platform supports the use of Tcl (version 8.4 or later), run the Test Suite. 78How you run the Test Suite varies depending on the target platform: 79</p> 80 <div class="itemizedlist"> 81 <ul type="disc"> 82 <li> 83 <p> 84If the target platform supports a UNIX-like version of Tcl, then set up Tcl 85and build the Test Suite as described in "Running the Test Suite under 86UNIX" in <em class="citetitle">Berkeley DB Programmer's Reference Guide</em> at 87<a class="ulink" href="http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_unix/test.html" target="_top">http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_unix/test.html</a> 88and, then, run the Test Suite as described in "Running the Test Suite" in 89<em class="citetitle">Berkeley DB Programmer's Reference Guide</em> at 90<a class="ulink" href="http://www.oracle.com/technology/documentation/berkeley-db/db/ref/test/run.html" target="_top">http://www.oracle.com/technology/documentation/berkeley-db/db/ref/test/run.html</a>. 91</p> 92 </li> 93 <li> 94 <p> 95 96 If the target platform supports a Windows-like version of Tcl, then 97 setup Tcl, and build and run the Test Suite as described in 98 "Running the Test Suite under Windows" in 99 <em class="citetitle">Berkeley DB Programmer's Reference Guide</em> at 100 <a class="ulink" href="http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_win/test.html" target="_top">http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_win/test.html</a> 101 102</p> 103 </li> 104 </ul> 105 </div> 106 </li> 107 </ol> 108 </div> 109 </div> 110 <div class="navfooter"> 111 <hr /> 112 <table width="100%" summary="Navigation footer"> 113 <tr> 114 <td width="40%" align="left"><a accesskey="p" href="modifytest.html">Prev</a>��</td> 115 <td width="20%" align="center"> 116 <a accesskey="u" href="testport.html">Up</a> 117 </td> 118 <td width="40%" align="right">��<a accesskey="n" href="testreview.html">Next</a></td> 119 </tr> 120 <tr> 121 <td width="40%" align="left" valign="top">Modifying the Tests��</td> 122 <td width="20%" align="center"> 123 <a accesskey="h" href="index.html">Home</a> 124 </td> 125 <td width="40%" align="right" valign="top">��Reviewing the Results of the Tests</td> 126 </tr> 127 </table> 128 </div> 129 </body> 130</html> 131