Revision 3:0f65bb22172b Tester.cpp
| Tester.cpp | ||
|---|---|---|
| 100 | 100 |
* Plugin fails when given "normal" random input (just in case!) - DONE |
| 101 | 101 |
|
| 102 | 102 |
* Plugin returns different results if another instance is |
| 103 |
constructed and run "interleaved" with it (from same thread) |
|
| 103 |
constructed and run "interleaved" with it (from same thread) - DONE
|
|
| 104 | 104 |
|
| 105 | 105 |
* Plugin's returned timestamps do not change as expected when |
| 106 | 106 |
run with a different base timestamp for input (though there |
| 107 | 107 |
could be legitimate reasons for this) |
| 108 | 108 |
|
| 109 | 109 |
* Plugin produces different results on second run, after reset |
| 110 |
called |
|
| 110 |
called - DONE
|
|
| 111 | 111 |
|
| 112 | 112 |
* Initial value of a parameter on plugin construction differs |
| 113 | 113 |
from its default value (i.e. plugin produces different |
| ... | ... | |
| 147 | 147 |
for (Registry::const_iterator i = registry().begin(); |
| 148 | 148 |
i != registry().end(); ++i) {
|
| 149 | 149 |
|
| 150 |
std::cerr << " -- Performing test: " << i->first << std::endl;
|
|
| 150 |
std::cout << " -- Performing test: " << i->first << std::endl;
|
|
| 151 | 151 |
|
| 152 | 152 |
Test *test = i->second->makeTest(); |
| 153 | 153 |
Test::Results results = test->test(m_key); |
| ... | ... | |
| 157 | 157 |
switch (results[j].code()) {
|
| 158 | 158 |
case Test::Result::Success: |
| 159 | 159 |
break; |
| 160 |
case Test::Result::Note: |
|
| 161 |
std::cout << " ** NOTE: " << results[j].message() << std::endl; |
|
| 162 |
break; |
|
| 160 | 163 |
case Test::Result::Warning: |
| 161 |
std::cerr << " ** WARNING: " << results[j].message() << std::endl;
|
|
| 164 |
std::cout << " ** WARNING: " << results[j].message() << std::endl;
|
|
| 162 | 165 |
break; |
| 163 | 166 |
case Test::Result::Error: |
| 164 |
std::cerr << " ** ERROR: " << results[j].message() << std::endl;
|
|
| 167 |
std::cout << " ** ERROR: " << results[j].message() << std::endl;
|
|
| 165 | 168 |
good = false; |
| 166 | 169 |
break; |
| 167 | 170 |
} |
| 168 | 171 |
} |
| 169 | 172 |
} |
| 170 | 173 |
} catch (Test::FailedToLoadPlugin) {
|
| 171 |
std::cerr << "ERROR: Failed to load plugin (key = \"" << m_key
|
|
| 174 |
std::cout << "ERROR: Failed to load plugin (key = \"" << m_key
|
|
| 172 | 175 |
<< "\")" << std::endl; |
| 173 | 176 |
} |
| 174 | 177 |
|
Also available in: Unified diff