comparison base/test/main.cpp @ 891:8962f80f5d8e tony_integration

Merge from default branch
author Chris Cannam
date Tue, 11 Mar 2014 17:32:31 +0000
parents 4cc8265c4611
children 451f7f3ab6e7
comparison
equal deleted inserted replaced
890:4cbf8c6a462d 891:8962f80f5d8e
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
16 #include <QtTest>
17
18 #include <iostream>
19
20 int main(int argc, char *argv[])
21 {
22 int good = 0, bad = 0;
23
24 QCoreApplication app(argc, argv);
25 app.setOrganizationName("Sonic Visualiser");
26 app.setApplicationName("test-svcore-base");
27
28 {
29 TestRangeMapper t;
30 if (QTest::qExec(&t, argc, argv) == 0) ++good;
31 else ++bad;
32 }
33
34 if (bad > 0) {
35 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
36 return 1;
37 } else {
38 cerr << "All tests passed" << endl;
39 return 0;
40 }
41 }