cannam@2
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
cannam@2
|
2
|
cannam@2
|
3 /*
|
cannam@2
|
4 Vamp Plugin Tester
|
cannam@2
|
5 Chris Cannam, cannam@all-day-breakfast.com
|
cannam@2
|
6 Centre for Digital Music, Queen Mary, University of London.
|
Chris@42
|
7 Copyright 2009-2014 QMUL.
|
cannam@2
|
8
|
cannam@2
|
9 This program loads a Vamp plugin and tests its susceptibility to a
|
cannam@2
|
10 number of common pitfalls, including handling of extremes of input
|
cannam@2
|
11 data. If you can think of any additional useful tests that are
|
cannam@2
|
12 easily added, please send them to me.
|
cannam@2
|
13
|
cannam@2
|
14 Permission is hereby granted, free of charge, to any person
|
cannam@2
|
15 obtaining a copy of this software and associated documentation
|
cannam@2
|
16 files (the "Software"), to deal in the Software without
|
cannam@2
|
17 restriction, including without limitation the rights to use, copy,
|
cannam@2
|
18 modify, merge, publish, distribute, sublicense, and/or sell copies
|
cannam@2
|
19 of the Software, and to permit persons to whom the Software is
|
cannam@2
|
20 furnished to do so, subject to the following conditions:
|
cannam@2
|
21
|
cannam@2
|
22 The above copyright notice and this permission notice shall be
|
cannam@2
|
23 included in all copies or substantial portions of the Software.
|
cannam@2
|
24
|
cannam@2
|
25 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
cannam@2
|
26 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
cannam@2
|
27 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
cannam@2
|
28 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
|
cannam@2
|
29 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
cannam@2
|
30 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
cannam@2
|
31 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
cannam@2
|
32
|
cannam@2
|
33 Except as contained in this notice, the names of the Centre for
|
cannam@2
|
34 Digital Music; Queen Mary, University of London; and Chris Cannam
|
cannam@2
|
35 shall not be used in advertising or otherwise to promote the sale,
|
cannam@2
|
36 use or other dealings in this Software without prior written
|
cannam@2
|
37 authorization.
|
cannam@2
|
38 */
|
cannam@2
|
39
|
cannam@2
|
40 #ifndef _TEST_MULTIPLE_RUNS_H_
|
cannam@2
|
41 #define _TEST_MULTIPLE_RUNS_H_
|
cannam@2
|
42
|
cannam@2
|
43 #include "Test.h"
|
cannam@2
|
44 #include "Tester.h"
|
cannam@2
|
45
|
cannam@2
|
46 class TestDistinctRuns : public Test
|
cannam@2
|
47 {
|
cannam@2
|
48 public:
|
cannam@2
|
49 TestDistinctRuns() : Test() { }
|
cannam@8
|
50 Results test(std::string key, Options options);
|
cannam@2
|
51
|
cannam@2
|
52 protected:
|
cannam@2
|
53 static Tester::TestRegistrar<TestDistinctRuns> m_registrar;
|
cannam@2
|
54 };
|
cannam@2
|
55
|
cannam@2
|
56 class TestReset : public Test
|
cannam@2
|
57 {
|
cannam@2
|
58 public:
|
cannam@2
|
59 TestReset() : Test() { }
|
cannam@8
|
60 Results test(std::string key, Options options);
|
cannam@2
|
61
|
cannam@2
|
62 protected:
|
cannam@2
|
63 static Tester::TestRegistrar<TestReset> m_registrar;
|
cannam@2
|
64 };
|
cannam@2
|
65
|
cannam@2
|
66 class TestInterleavedRuns : public Test
|
cannam@2
|
67 {
|
cannam@2
|
68 public:
|
cannam@2
|
69 TestInterleavedRuns() : Test() { }
|
cannam@8
|
70 Results test(std::string key, Options options);
|
cannam@2
|
71
|
cannam@2
|
72 protected:
|
cannam@2
|
73 static Tester::TestRegistrar<TestInterleavedRuns> m_registrar;
|
cannam@2
|
74 };
|
cannam@2
|
75
|
cannam@5
|
76 class TestDifferentStartTimes : public Test
|
cannam@5
|
77 {
|
cannam@5
|
78 public:
|
cannam@5
|
79 TestDifferentStartTimes() : Test() { }
|
cannam@8
|
80 Results test(std::string key, Options options);
|
cannam@5
|
81
|
cannam@5
|
82 protected:
|
cannam@5
|
83 static Tester::TestRegistrar<TestDifferentStartTimes> m_registrar;
|
cannam@5
|
84 };
|
cannam@5
|
85
|
cannam@2
|
86 #endif
|