Mercurial > hg > svcore
comparison data/fileio/test/svcore-data-fileio-test.cpp @ 1260:24c0d4c5356e 3.0-integration
Rearrange svcore tests so they can all be built from the top level
author | Chris Cannam |
---|---|
date | Mon, 14 Nov 2016 17:53:16 +0000 |
parents | data/fileio/test/main.cpp@eb6b6a88faed |
children | c0cdacc47f4e |
comparison
equal
deleted
inserted
replaced
1259:a4554bf41367 | 1260:24c0d4c5356e |
---|---|
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 This file copyright 2013 Chris Cannam. | |
7 | |
8 This program is free software; you can redistribute it and/or | |
9 modify it under the terms of the GNU General Public License as | |
10 published by the Free Software Foundation; either version 2 of the | |
11 License, or (at your option) any later version. See the file | |
12 COPYING included with this distribution for more information. | |
13 */ | |
14 | |
15 #include "AudioFileReaderTest.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-fileio"); | |
28 | |
29 { | |
30 AudioFileReaderTest t; | |
31 if (QTest::qExec(&t, argc, argv) == 0) ++good; | |
32 else ++bad; | |
33 } | |
34 | |
35 if (bad > 0) { | |
36 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; | |
37 return 1; | |
38 } else { | |
39 cerr << "All tests passed" << endl; | |
40 return 0; | |
41 } | |
42 } | |
43 |