annotate data/fileio/test/svcore-data-fileio-test.cpp @ 1345:c0cdacc47f4e
3.0-integration
Add filename encoding tests
author |
Chris Cannam |
date |
Fri, 06 Jan 2017 12:11:08 +0000 |
parents |
24c0d4c5356e |
children |
75ad55315db4 |
rev |
line source |
Chris@756
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
Chris@879
|
2 /*
|
Chris@879
|
3 Sonic Visualiser
|
Chris@879
|
4 An audio file viewer and annotation editor.
|
Chris@879
|
5 Centre for Digital Music, Queen Mary, University of London.
|
Chris@879
|
6 This file copyright 2013 Chris Cannam.
|
Chris@879
|
7
|
Chris@879
|
8 This program is free software; you can redistribute it and/or
|
Chris@879
|
9 modify it under the terms of the GNU General Public License as
|
Chris@879
|
10 published by the Free Software Foundation; either version 2 of the
|
Chris@879
|
11 License, or (at your option) any later version. See the file
|
Chris@879
|
12 COPYING included with this distribution for more information.
|
Chris@879
|
13 */
|
Chris@756
|
14
|
Chris@756
|
15 #include "AudioFileReaderTest.h"
|
Chris@1345
|
16 #include "EncodingTest.h"
|
Chris@756
|
17
|
Chris@756
|
18 #include <QtTest>
|
Chris@756
|
19
|
Chris@756
|
20 #include <iostream>
|
Chris@756
|
21
|
Chris@756
|
22 int main(int argc, char *argv[])
|
Chris@756
|
23 {
|
Chris@756
|
24 int good = 0, bad = 0;
|
Chris@756
|
25
|
Chris@756
|
26 QCoreApplication app(argc, argv);
|
Chris@756
|
27 app.setOrganizationName("Sonic Visualiser");
|
Chris@756
|
28 app.setApplicationName("test-fileio");
|
Chris@756
|
29
|
Chris@756
|
30 {
|
Chris@756
|
31 AudioFileReaderTest t;
|
Chris@756
|
32 if (QTest::qExec(&t, argc, argv) == 0) ++good;
|
Chris@756
|
33 else ++bad;
|
Chris@756
|
34 }
|
Chris@756
|
35
|
Chris@1345
|
36 {
|
Chris@1345
|
37 EncodingTest t;
|
Chris@1345
|
38 if (QTest::qExec(&t, argc, argv) == 0) ++good;
|
Chris@1345
|
39 else ++bad;
|
Chris@1345
|
40 }
|
Chris@1345
|
41
|
Chris@756
|
42 if (bad > 0) {
|
Chris@843
|
43 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
|
Chris@756
|
44 return 1;
|
Chris@756
|
45 } else {
|
Chris@843
|
46 cerr << "All tests passed" << endl;
|
Chris@756
|
47 return 0;
|
Chris@756
|
48 }
|
Chris@756
|
49 }
|
Chris@756
|
50
|