Revision 3:0f65bb22172b vamp-plugin-tester.cpp
| vamp-plugin-tester.cpp | ||
|---|---|---|
| 87 | 87 |
Vamp::HostExt::PluginLoader::PluginKeyList keys = |
| 88 | 88 |
Vamp::HostExt::PluginLoader::getInstance()->listPlugins(); |
| 89 | 89 |
for (int i = 0; i < (int)keys.size(); ++i) {
|
| 90 |
cerr << "Testing plugin: " << keys[i] << endl;
|
|
| 90 |
cout << "Testing plugin: " << keys[i] << endl;
|
|
| 91 | 91 |
Tester tester(keys[i]); |
| 92 | 92 |
if (tester.test()) {
|
| 93 |
cerr << name << ": All tests succeeded for this plugin" << endl;
|
|
| 93 |
cout << name << ": All tests succeeded for this plugin" << endl;
|
|
| 94 | 94 |
} else {
|
| 95 |
cerr << name << ": Some tests failed for this plugin" << endl;
|
|
| 95 |
cout << name << ": Some tests failed for this plugin" << endl;
|
|
| 96 | 96 |
good = false; |
| 97 | 97 |
} |
| 98 |
cerr << endl;
|
|
| 98 |
cout << endl;
|
|
| 99 | 99 |
} |
| 100 | 100 |
if (good) {
|
| 101 |
cerr << name << ": All tests succeeded" << endl;
|
|
| 101 |
cout << name << ": All tests succeeded" << endl;
|
|
| 102 | 102 |
return 0; |
| 103 | 103 |
} else {
|
| 104 |
cerr << name << ": Some tests failed" << endl;
|
|
| 104 |
cout << name << ": Some tests failed" << endl;
|
|
| 105 | 105 |
return 1; |
| 106 | 106 |
} |
| 107 | 107 |
} else {
|
| 108 | 108 |
string key = argv[1]; |
| 109 | 109 |
Tester tester(key); |
| 110 | 110 |
if (tester.test()) {
|
| 111 |
cerr << name << ": All tests succeeded" << endl;
|
|
| 111 |
cout << name << ": All tests succeeded" << endl;
|
|
| 112 | 112 |
return 0; |
| 113 | 113 |
} else {
|
| 114 |
cerr << name << ": Some tests failed" << endl;
|
|
| 114 |
cout << name << ": Some tests failed" << endl;
|
|
| 115 | 115 |
return 1; |
| 116 | 116 |
} |
| 117 | 117 |
} |
Also available in: Unified diff