comparison base/test/svcore-base-test.cpp @ 1527:710e6250a401 zoom

Merge from default branch
author Chris Cannam
date Mon, 17 Sep 2018 13:51:14 +0100
parents 48e9f538e6e9
children f04038819c26
comparison
equal deleted inserted replaced
1324:d4a28d1479a8 1527:710e6250a401
9 published by the Free Software Foundation; either version 2 of the 9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version. See the file 10 License, or (at your option) any later version. See the file
11 COPYING included with this distribution for more information. 11 COPYING included with this distribution for more information.
12 */ 12 */
13 13
14 #include "TestLogRange.h"
14 #include "TestRangeMapper.h" 15 #include "TestRangeMapper.h"
15 #include "TestPitch.h" 16 #include "TestPitch.h"
17 #include "TestScaleTickIntervals.h"
16 #include "TestStringBits.h" 18 #include "TestStringBits.h"
17 #include "TestOurRealTime.h" 19 #include "TestOurRealTime.h"
18 #include "TestVampRealTime.h" 20 #include "TestVampRealTime.h"
19 #include "TestColumnOp.h" 21 #include "TestColumnOp.h"
20 22
25 int main(int argc, char *argv[]) 27 int main(int argc, char *argv[])
26 { 28 {
27 int good = 0, bad = 0; 29 int good = 0, bad = 0;
28 30
29 QCoreApplication app(argc, argv); 31 QCoreApplication app(argc, argv);
30 app.setOrganizationName("Sonic Visualiser"); 32 app.setOrganizationName("sonic-visualiser");
31 app.setApplicationName("test-svcore-base"); 33 app.setApplicationName("test-svcore-base");
32 34
33 { 35 {
34 TestRangeMapper t; 36 TestRangeMapper t;
35 if (QTest::qExec(&t, argc, argv) == 0) ++good; 37 if (QTest::qExec(&t, argc, argv) == 0) ++good;
36 else ++bad; 38 else ++bad;
37 } 39 }
38 { 40 {
39 TestPitch t; 41 TestPitch t;
40 if (QTest::qExec(&t, argc, argv) == 0) ++good; 42 if (QTest::qExec(&t, argc, argv) == 0) ++good;
41 else ++bad; 43 else ++bad;
42 } 44 }
43 { 45 {
44 TestOurRealTime t; 46 TestOurRealTime t;
45 if (QTest::qExec(&t, argc, argv) == 0) ++good; 47 if (QTest::qExec(&t, argc, argv) == 0) ++good;
46 else ++bad; 48 else ++bad;
47 } 49 }
48 { 50 {
49 TestVampRealTime t; 51 TestVampRealTime t;
50 if (QTest::qExec(&t, argc, argv) == 0) ++good; 52 if (QTest::qExec(&t, argc, argv) == 0) ++good;
51 else ++bad; 53 else ++bad;
52 } 54 }
53 { 55 {
54 TestStringBits t; 56 TestStringBits t;
55 if (QTest::qExec(&t, argc, argv) == 0) ++good; 57 if (QTest::qExec(&t, argc, argv) == 0) ++good;
56 else ++bad; 58 else ++bad;
57 } 59 }
58 { 60 {
59 TestColumnOp t; 61 TestColumnOp t;
60 if (QTest::qExec(&t, argc, argv) == 0) ++good; 62 if (QTest::qExec(&t, argc, argv) == 0) ++good;
61 else ++bad; 63 else ++bad;
64 }
65 {
66 TestLogRange t;
67 if (QTest::qExec(&t, argc, argv) == 0) ++good;
68 else ++bad;
69 }
70 {
71 TestScaleTickIntervals t;
72 if (QTest::qExec(&t, argc, argv) == 0) ++good;
73 else ++bad;
62 } 74 }
63 75
64 if (bad > 0) { 76 if (bad > 0) {
65 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; 77 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl;
66 return 1; 78 return 1;
67 } else { 79 } else {
68 cerr << "All tests passed" << endl; 80 SVCERR << "All tests passed" << endl;
69 return 0; 81 return 0;
70 } 82 }
71 } 83 }