cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

testharness_8c.html (12398B)


      1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2<html xmlns="http://www.w3.org/1999/xhtml">
      3<head>
      4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      5<meta http-equiv="X-UA-Compatible" content="IE=9"/>
      6<meta name="generator" content="Doxygen 1.8.4"/>
      7<title>SDL Visual Test: C:/Users/DELL/Work/sdlvisualtest/visualtest/src/testharness.c File Reference</title>
      8<link href="tabs.css" rel="stylesheet" type="text/css"/>
      9<script type="text/javascript" src="jquery.js"></script>
     10<script type="text/javascript" src="dynsections.js"></script>
     11<link href="search/search.css" rel="stylesheet" type="text/css"/>
     12<script type="text/javascript" src="search/search.js"></script>
     13<script type="text/javascript">
     14  $(document).ready(function() { searchBox.OnSelectItem(0); });
     15</script>
     16<link href="doxygen.css" rel="stylesheet" type="text/css" />
     17</head>
     18<body>
     19<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     20<div id="titlearea">
     21<table cellspacing="0" cellpadding="0">
     22 <tbody>
     23 <tr style="height: 56px;">
     24  <td style="padding-left: 0.5em;">
     25   <div id="projectname">SDL Visual Test
     26   </div>
     27  </td>
     28 </tr>
     29 </tbody>
     30</table>
     31</div>
     32<!-- end header part -->
     33<!-- Generated by Doxygen 1.8.4 -->
     34<script type="text/javascript">
     35var searchBox = new SearchBox("searchBox", "search",false,'Search');
     36</script>
     37  <div id="navrow1" class="tabs">
     38    <ul class="tablist">
     39      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
     40      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
     41      <li class="current"><a href="files.html"><span>Files</span></a></li>
     42      <li>
     43        <div id="MSearchBox" class="MSearchBoxInactive">
     44        <span class="left">
     45          <img id="MSearchSelect" src="search/mag_sel.png"
     46               onmouseover="return searchBox.OnSearchSelectShow()"
     47               onmouseout="return searchBox.OnSearchSelectHide()"
     48               alt=""/>
     49          <input type="text" id="MSearchField" value="Search" accesskey="S"
     50               onfocus="searchBox.OnSearchFieldFocus(true)" 
     51               onblur="searchBox.OnSearchFieldFocus(false)" 
     52               onkeyup="searchBox.OnSearchFieldChange(event)"/>
     53          </span><span class="right">
     54            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
     55          </span>
     56        </div>
     57      </li>
     58    </ul>
     59  </div>
     60  <div id="navrow2" class="tabs2">
     61    <ul class="tablist">
     62      <li><a href="files.html"><span>File&#160;List</span></a></li>
     63      <li><a href="globals.html"><span>Globals</span></a></li>
     64    </ul>
     65  </div>
     66<!-- window showing the filter options -->
     67<div id="MSearchSelectWindow"
     68     onmouseover="return searchBox.OnSearchSelectShow()"
     69     onmouseout="return searchBox.OnSearchSelectHide()"
     70     onkeydown="return searchBox.OnSearchSelectKey(event)">
     71<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>
     72
     73<!-- iframe showing the search results (closed by default) -->
     74<div id="MSearchResultsWindow">
     75<iframe src="javascript:void(0)" frameborder="0" 
     76        name="MSearchResults" id="MSearchResults">
     77</iframe>
     78</div>
     79
     80<div id="nav-path" class="navpath">
     81  <ul>
     82<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
     83</div>
     84</div><!-- top -->
     85<div class="header">
     86  <div class="summary">
     87<a href="#define-members">Macros</a> &#124;
     88<a href="#func-members">Functions</a>  </div>
     89  <div class="headertitle">
     90<div class="title">testharness.c File Reference</div>  </div>
     91</div><!--header-->
     92<div class="contents">
     93<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br/>
     94<code>#include &lt;SDL_test.h&gt;</code><br/>
     95<code>#include &lt;SDL.h&gt;</code><br/>
     96<code>#include &lt;SDL_assert.h&gt;</code><br/>
     97<code>#include &quot;<a class="el" href="_s_d_l__visualtest__harness__argparser_8h_source.html">SDL_visualtest_harness_argparser.h</a>&quot;</code><br/>
     98<code>#include &quot;<a class="el" href="_s_d_l__visualtest__process_8h_source.html">SDL_visualtest_process.h</a>&quot;</code><br/>
     99<code>#include &quot;<a class="el" href="_s_d_l__visualtest__variators_8h_source.html">SDL_visualtest_variators.h</a>&quot;</code><br/>
    100<code>#include &quot;<a class="el" href="_s_d_l__visualtest__screenshot_8h_source.html">SDL_visualtest_screenshot.h</a>&quot;</code><br/>
    101<code>#include &quot;SDL_visualtest_mischelper.h&quot;</code><br/>
    102</div><table class="memberdecls">
    103<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
    104Macros</h2></td></tr>
    105<tr class="memitem:a0d1d5d1394089a10f0147ed2b89c1165"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testharness_8c.html#a0d1d5d1394089a10f0147ed2b89c1165">ACTION_TIMER_EVENT</a>&#160;&#160;&#160;0</td></tr>
    106<tr class="separator:a0d1d5d1394089a10f0147ed2b89c1165"><td class="memSeparator" colspan="2">&#160;</td></tr>
    107<tr class="memitem:acdc6cb4935ca89fbe3fda31a8f533b9a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testharness_8c.html#acdc6cb4935ca89fbe3fda31a8f533b9a">KILL_TIMER_EVENT</a>&#160;&#160;&#160;1</td></tr>
    108<tr class="separator:acdc6cb4935ca89fbe3fda31a8f533b9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    109<tr class="memitem:a70102426e83ed3944f9c060bd82fb54e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testharness_8c.html#a70102426e83ed3944f9c060bd82fb54e">ACTION_LOOP_FPS</a>&#160;&#160;&#160;10</td></tr>
    110<tr class="separator:a70102426e83ed3944f9c060bd82fb54e"><td class="memSeparator" colspan="2">&#160;</td></tr>
    111<tr class="memitem:a562e15dd66cf158c98dbfec9f6afa1ae"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testharness_8c.html#a562e15dd66cf158c98dbfec9f6afa1ae">TEST_PASSED</a>&#160;&#160;&#160;1</td></tr>
    112<tr class="separator:a562e15dd66cf158c98dbfec9f6afa1ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
    113<tr class="memitem:a8b8b91205df891e2c7837bd03795306f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testharness_8c.html#a8b8b91205df891e2c7837bd03795306f">TEST_FAILED</a>&#160;&#160;&#160;0</td></tr>
    114<tr class="separator:a8b8b91205df891e2c7837bd03795306f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    115<tr class="memitem:a8251bcdfc5c83845e0834adf211de033"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testharness_8c.html#a8251bcdfc5c83845e0834adf211de033">TEST_ERROR</a>&#160;&#160;&#160;-1</td></tr>
    116<tr class="separator:a8251bcdfc5c83845e0834adf211de033"><td class="memSeparator" colspan="2">&#160;</td></tr>
    117</table><table class="memberdecls">
    118<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
    119Functions</h2></td></tr>
    120<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testharness_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
    121<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
    122</table>
    123<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
    124<div class="textblock"><p>Source file for the test harness. </p>
    125</div><h2 class="groupheader">Macro Definition Documentation</h2>
    126<a class="anchor" id="a70102426e83ed3944f9c060bd82fb54e"></a>
    127<div class="memitem">
    128<div class="memproto">
    129      <table class="memname">
    130        <tr>
    131          <td class="memname">#define ACTION_LOOP_FPS&#160;&#160;&#160;10</td>
    132        </tr>
    133      </table>
    134</div><div class="memdoc">
    135<p>FPS value used for delays in the action loop </p>
    136
    137</div>
    138</div>
    139<a class="anchor" id="a0d1d5d1394089a10f0147ed2b89c1165"></a>
    140<div class="memitem">
    141<div class="memproto">
    142      <table class="memname">
    143        <tr>
    144          <td class="memname">#define ACTION_TIMER_EVENT&#160;&#160;&#160;0</td>
    145        </tr>
    146      </table>
    147</div><div class="memdoc">
    148<p>Code for the user event triggered when a new action is to be executed </p>
    149
    150</div>
    151</div>
    152<a class="anchor" id="acdc6cb4935ca89fbe3fda31a8f533b9a"></a>
    153<div class="memitem">
    154<div class="memproto">
    155      <table class="memname">
    156        <tr>
    157          <td class="memname">#define KILL_TIMER_EVENT&#160;&#160;&#160;1</td>
    158        </tr>
    159      </table>
    160</div><div class="memdoc">
    161<p>Code for the user event triggered when the maximum timeout is reached </p>
    162
    163</div>
    164</div>
    165<a class="anchor" id="a8251bcdfc5c83845e0834adf211de033"></a>
    166<div class="memitem">
    167<div class="memproto">
    168      <table class="memname">
    169        <tr>
    170          <td class="memname">#define TEST_ERROR&#160;&#160;&#160;-1</td>
    171        </tr>
    172      </table>
    173</div><div class="memdoc">
    174<p>Value returned by RunSUTAndTest() on a fatal error </p>
    175
    176</div>
    177</div>
    178<a class="anchor" id="a8b8b91205df891e2c7837bd03795306f"></a>
    179<div class="memitem">
    180<div class="memproto">
    181      <table class="memname">
    182        <tr>
    183          <td class="memname">#define TEST_FAILED&#160;&#160;&#160;0</td>
    184        </tr>
    185      </table>
    186</div><div class="memdoc">
    187<p>Value returned by RunSUTAndTest() when the test has failed </p>
    188
    189</div>
    190</div>
    191<a class="anchor" id="a562e15dd66cf158c98dbfec9f6afa1ae"></a>
    192<div class="memitem">
    193<div class="memproto">
    194      <table class="memname">
    195        <tr>
    196          <td class="memname">#define TEST_PASSED&#160;&#160;&#160;1</td>
    197        </tr>
    198      </table>
    199</div><div class="memdoc">
    200<p>Value returned by RunSUTAndTest() when the test has passed </p>
    201
    202</div>
    203</div>
    204<h2 class="groupheader">Function Documentation</h2>
    205<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a>
    206<div class="memitem">
    207<div class="memproto">
    208      <table class="memname">
    209        <tr>
    210          <td class="memname">int main </td>
    211          <td>(</td>
    212          <td class="paramtype">int&#160;</td>
    213          <td class="paramname"><em>argc</em>, </td>
    214        </tr>
    215        <tr>
    216          <td class="paramkey"></td>
    217          <td></td>
    218          <td class="paramtype">char *&#160;</td>
    219          <td class="paramname"><em>argv</em>[]&#160;</td>
    220        </tr>
    221        <tr>
    222          <td></td>
    223          <td>)</td>
    224          <td></td><td></td>
    225        </tr>
    226      </table>
    227</div><div class="memdoc">
    228<p>Entry point for testharness </p>
    229
    230</div>
    231</div>
    232</div><!-- contents -->
    233<!-- start footer part -->
    234<hr class="footer"/><address class="footer"><small>
    235Generated on Thu Sep 26 2013 00:18:24 for SDL Visual Test by &#160;<a href="http://www.doxygen.org/index.html">
    236<img class="footer" src="doxygen.png" alt="doxygen"/>
    237</a> 1.8.4
    238</small></address>
    239</body>
    240</html>