Mercurial > hg > svcore
comparison base/test/main.cpp @ 879:eb6b6a88faed
Unit-test RangeMapper, fix a couple of bugs
author | Chris Cannam |
---|---|
date | Fri, 31 Jan 2014 13:39:37 +0000 |
parents | |
children | 4cc8265c4611 |
comparison
equal
deleted
inserted
replaced
862:786ee8d1f30e | 879:eb6b6a88faed |
---|---|
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 "RangeMapperTest.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 RangeMapperTest 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 } |