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