comparison base/test/svcore-base-test.cpp @ 1392:667e369cfeab

LogRange tests
author Chris Cannam
date Tue, 28 Feb 2017 11:21:49 +0000
parents e2e66bfd4a88
children 25ed6dde2ce0
comparison
equal deleted inserted replaced
1391:2c0e04062a99 1392:667e369cfeab
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"
16 #include "TestStringBits.h" 17 #include "TestStringBits.h"
17 #include "TestOurRealTime.h" 18 #include "TestOurRealTime.h"
18 #include "TestVampRealTime.h" 19 #include "TestVampRealTime.h"
25 int main(int argc, char *argv[]) 26 int main(int argc, char *argv[])
26 { 27 {
27 int good = 0, bad = 0; 28 int good = 0, bad = 0;
28 29
29 QCoreApplication app(argc, argv); 30 QCoreApplication app(argc, argv);
30 app.setOrganizationName("Sonic Visualiser"); 31 app.setOrganizationName("sonic-visualiser");
31 app.setApplicationName("test-svcore-base"); 32 app.setApplicationName("test-svcore-base");
32 33
33 { 34 {
34 TestRangeMapper t; 35 TestRangeMapper t;
35 if (QTest::qExec(&t, argc, argv) == 0) ++good; 36 if (QTest::qExec(&t, argc, argv) == 0) ++good;
58 { 59 {
59 TestColumnOp t; 60 TestColumnOp t;
60 if (QTest::qExec(&t, argc, argv) == 0) ++good; 61 if (QTest::qExec(&t, argc, argv) == 0) ++good;
61 else ++bad; 62 else ++bad;
62 } 63 }
64 {
65 TestLogRange t;
66 if (QTest::qExec(&t, argc, argv) == 0) ++good;
67 else ++bad;
68 }
63 69
64 if (bad > 0) { 70 if (bad > 0) {
65 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; 71 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
66 return 1; 72 return 1;
67 } else { 73 } else {