comparison base/test/main.cpp @ 912:2175c2ebd5c6 tonioni

Merge from default branch
author Chris Cannam
date Wed, 14 May 2014 09:58:07 +0100
parents 451f7f3ab6e7
children ee9f4477f65b
comparison
equal deleted inserted replaced
901:68e880e0b857 912:2175c2ebd5c6
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 /*
3 Sonic Visualiser
4 An audio file viewer and annotation editor.
5 Centre for Digital Music, Queen Mary, University of London.
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version. See the file
11 COPYING included with this distribution for more information.
12 */
13
14 #include "TestRangeMapper.h"
15 #include "TestPitch.h"
16
17 #include <QtTest>
18
19 #include <iostream>
20
21 int main(int argc, char *argv[])
22 {
23 int good = 0, bad = 0;
24
25 QCoreApplication app(argc, argv);
26 app.setOrganizationName("Sonic Visualiser");
27 app.setApplicationName("test-svcore-base");
28
29 {
30 TestRangeMapper t;
31 if (QTest::qExec(&t, argc, argv) == 0) ++good;
32 else ++bad;
33 }
34 {
35 TestPitch t;
36 if (QTest::qExec(&t, argc, argv) == 0) ++good;
37 else ++bad;
38 }
39
40 if (bad > 0) {
41 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
42 return 1;
43 } else {
44 cerr << "All tests passed" << endl;
45 return 0;
46 }
47 }