comparison TestOutputs.cpp @ 8:3019cb6b538d

* Add nondeterministic and verbose options to control output * Dump returned features in a few more situations, if verbose is set * Dump features to stdout rather than stderr
author cannam
date Wed, 18 Mar 2009 10:51:30 +0000
parents 6a279da6fdd7
children 7dd6a549b2f9
comparison
equal deleted inserted replaced
7:43eb3a4b95c8 8:3019cb6b538d
57 TestTimestamps::m_registrar("B2 Invalid or dubious timestamp usage"); 57 TestTimestamps::m_registrar("B2 Invalid or dubious timestamp usage");
58 58
59 static const size_t _step = 1000; 59 static const size_t _step = 1000;
60 60
61 Test::Results 61 Test::Results
62 TestOutputNumbers::test(string key) 62 TestOutputNumbers::test(string key, Options options)
63 { 63 {
64 int rate = 44100; 64 int rate = 44100;
65 auto_ptr<Plugin> p(load(key, rate)); 65 auto_ptr<Plugin> p(load(key, rate));
66 Plugin::FeatureSet f; 66 Plugin::FeatureSet f;
67 Results r; 67 Results r;
97 if (used.find(o) == used.end()) { 97 if (used.find(o) == used.end()) {
98 r.push_back(note("No results returned for one or more outputs")); 98 r.push_back(note("No results returned for one or more outputs"));
99 } 99 }
100 } 100 }
101 101
102 if (!r.empty() && (options & Verbose)) dump(f);
102 return r; 103 return r;
103 } 104 }
104 105
105 Test::Results 106 Test::Results
106 TestTimestamps::test(string key) 107 TestTimestamps::test(string key, Options options)
107 { 108 {
108 int rate = 44100; 109 int rate = 44100;
109 110
110 // we want to be sure that a buffer size adapter is not used: 111 // we want to be sure that a buffer size adapter is not used:
111 auto_ptr<Plugin> p(PluginLoader::getInstance()->loadPlugin 112 auto_ptr<Plugin> p(PluginLoader::getInstance()->loadPlugin
157 break; 158 break;
158 } 159 }
159 } 160 }
160 } 161 }
161 162
163 if (!r.empty() && (options & Verbose)) dump(f);
162 return r; 164 return r;
163 } 165 }