comparison vamp-plugin-tester.cpp @ 33:005ac7a3d827

Print something relevant if no plugins are available
author Chris Cannam
date Wed, 06 Nov 2013 13:01:03 +0000
parents 054ccdae5ed7
children a835f9cf3a3d
comparison
equal deleted inserted replaced
32:054ccdae5ed7 33:005ac7a3d827
124 124
125 if (all) { 125 if (all) {
126 bool good = true; 126 bool good = true;
127 Vamp::HostExt::PluginLoader::PluginKeyList keys = 127 Vamp::HostExt::PluginLoader::PluginKeyList keys =
128 Vamp::HostExt::PluginLoader::getInstance()->listPlugins(); 128 Vamp::HostExt::PluginLoader::getInstance()->listPlugins();
129 if (keys.size() == 0) {
130 cout << name << ": NOTE: No plugins found!" << endl;
131 cout << name << ": (No libraries in search path, or no descriptors in library)" << endl;
132 }
129 int notes = 0, warnings = 0, errors = 0; 133 int notes = 0, warnings = 0, errors = 0;
130 for (int i = 0; i < (int)keys.size(); ++i) { 134 for (int i = 0; i < (int)keys.size(); ++i) {
131 cout << "Testing plugin: " << keys[i] << endl; 135 cout << "Testing plugin: " << keys[i] << endl;
132 Tester tester(keys[i], opts); 136 Tester tester(keys[i], opts);
133 if (tester.test(notes, warnings, errors)) { 137 if (tester.test(notes, warnings, errors)) {