comparison checker.cpp @ 4:6f891a9c6434

Make checker with hard-coded knowledge about various plugin types and paths; fix some process management problems
author Chris Cannam
date Wed, 13 Apr 2016 12:00:07 +0100
parents 3bae396cf8e0
children 74064d6f5e07
comparison
equal deleted inserted replaced
3:3bae396cf8e0 4:6f891a9c6434
1 1
2 #include "plugincandidates.h" 2 #include "knownplugins.h"
3 3
4 int main(int argc, char **argv) 4 #include <iostream>
5
6 using namespace std;
7
8 int main(int, char **)
5 { 9 {
6 //!!! just a test 10 KnownPlugins kp;
7 PluginCandidates candidates("./helper"); 11
8 candidates.scan("vamp", 12 for (auto t: kp.getKnownPluginTypes()) {
9 { "/usr/lib/vamp", "/usr/local/lib/vamp" }, 13 cout << "successful libraries for plugin type \""
10 "vampGetPluginDescriptor"); 14 << kp.getTagFor(t) << "\":" << endl;
15 for (auto lib: kp.getCandidateLibrariesFor(t)) {
16 cout << lib << endl;
17 }
18 }
19
20 cout << "Failure message (if any):" << endl;
21 cout << kp.getFailureReport() << endl;
11 } 22 }
12 23