65 | | <h1>osutils.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span> |
66 | | <a name="l00002"></a>00002 <span class="comment">// C++ Interface: osutils</span> |
67 | | <a name="l00003"></a>00003 <span class="comment">//</span> |
68 | | <a name="l00004"></a>00004 <span class="comment">// Description: Agr</span> |
69 | | <a name="l00005"></a>00005 <span class="comment">//</span> |
70 | | <a name="l00006"></a>00006 <span class="comment">//</span> |
71 | | <a name="l00007"></a>00007 <span class="comment">// Author: smidl <smidl@utia.cas.cz>, (C) 2008</span> |
72 | | <a name="l00008"></a>00008 <span class="comment">//</span> |
73 | | <a name="l00009"></a>00009 <span class="comment">// Copyright: See COPYING file that comes with this distribution</span> |
74 | | <a name="l00010"></a>00010 <span class="comment">//</span> |
75 | | <a name="l00011"></a>00011 <span class="comment">//</span> |
76 | | <a name="l00012"></a>00012 |
77 | | <a name="l00013"></a>00013 <span class="preprocessor">#include "itpp_ext.h"</span> |
78 | | <a name="l00014"></a>00014 |
79 | | <a name="l00015"></a>00015 <span class="keyword">using namespace </span>std; |
80 | | <a name="l00016"></a>00016 |
81 | | <a name="l00020"></a>00020 <span class="keywordtype">void</span> get_fname ( <span class="keywordtype">char</span>* filename, std::string &dirname, std::string &f ); |
82 | | <a name="l00021"></a>00021 |
83 | | <a name="l00028"></a>00028 <span class="keywordtype">void</span> makedir(<span class="keywordtype">string</span> &dirname, <span class="keywordtype">bool</span> rewrite = <span class="keyword">true</span>); |
| 64 | <h1>DeferredTestResult.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef UNITTEST_DEFERREDTESTRESULT_H</span> |
| 65 | <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define UNITTEST_DEFERREDTESTRESULT_H</span> |
| 66 | <a name="l00003"></a>00003 <span class="preprocessor"></span> |
| 67 | <a name="l00004"></a>00004 <span class="preprocessor">#include "Config.h"</span> |
| 68 | <a name="l00005"></a>00005 |
| 69 | <a name="l00006"></a>00006 <span class="preprocessor">#include <string></span> |
| 70 | <a name="l00007"></a>00007 <span class="preprocessor">#include <vector></span> |
| 71 | <a name="l00008"></a>00008 |
| 72 | <a name="l00009"></a>00009 <span class="keyword">namespace </span>UnitTest { |
| 73 | <a name="l00010"></a>00010 |
| 74 | <a name="l00011"></a>00011 <span class="keyword">struct </span>DeferredTestResult { |
| 75 | <a name="l00012"></a>00012 DeferredTestResult(); |
| 76 | <a name="l00013"></a>00013 DeferredTestResult ( <span class="keywordtype">char</span> <span class="keyword">const</span>* suite, <span class="keywordtype">char</span> <span class="keyword">const</span>* test ); |
| 77 | <a name="l00014"></a>00014 ~DeferredTestResult(); |
| 78 | <a name="l00015"></a>00015 |
| 79 | <a name="l00016"></a>00016 std::string suiteName; |
| 80 | <a name="l00017"></a>00017 std::string testName; |
| 81 | <a name="l00018"></a>00018 std::string failureFile; |
| 82 | <a name="l00019"></a>00019 |
| 83 | <a name="l00020"></a>00020 <span class="keyword">typedef</span> std::pair< int, std::string > Failure; |
| 84 | <a name="l00021"></a>00021 <span class="keyword">typedef</span> std::vector< Failure > FailureVec; |
| 85 | <a name="l00022"></a>00022 FailureVec failures; |
| 86 | <a name="l00023"></a>00023 |
| 87 | <a name="l00024"></a>00024 <span class="keywordtype">float</span> timeElapsed; |
| 88 | <a name="l00025"></a>00025 <span class="keywordtype">bool</span> failed; |
| 89 | <a name="l00026"></a>00026 }; |
| 90 | <a name="l00027"></a>00027 |
| 91 | <a name="l00028"></a>00028 } |
| 92 | <a name="l00029"></a>00029 |
| 93 | <a name="l00030"></a>00030 <span class="preprocessor">#endif //UNITTEST_DEFERREDTESTRESULT_H</span> |