Mercurial > hg > svcore
annotate data/fileio/test/svcore-data-fileio-test.cpp @ 1299:838a45cff62d 3.0-integration
Don't show this... We should find a better way to make it available in the UI
author | Chris Cannam |
---|---|
date | Fri, 25 Nov 2016 17:33:12 +0000 |
parents | 24c0d4c5356e |
children | c0cdacc47f4e |
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@756 | 16 |
Chris@756 | 17 #include <QtTest> |
Chris@756 | 18 |
Chris@756 | 19 #include <iostream> |
Chris@756 | 20 |
Chris@756 | 21 int main(int argc, char *argv[]) |
Chris@756 | 22 { |
Chris@756 | 23 int good = 0, bad = 0; |
Chris@756 | 24 |
Chris@756 | 25 QCoreApplication app(argc, argv); |
Chris@756 | 26 app.setOrganizationName("Sonic Visualiser"); |
Chris@756 | 27 app.setApplicationName("test-fileio"); |
Chris@756 | 28 |
Chris@756 | 29 { |
Chris@756 | 30 AudioFileReaderTest t; |
Chris@756 | 31 if (QTest::qExec(&t, argc, argv) == 0) ++good; |
Chris@756 | 32 else ++bad; |
Chris@756 | 33 } |
Chris@756 | 34 |
Chris@756 | 35 if (bad > 0) { |
Chris@843 | 36 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; |
Chris@756 | 37 return 1; |
Chris@756 | 38 } else { |
Chris@843 | 39 cerr << "All tests passed" << endl; |
Chris@756 | 40 return 0; |
Chris@756 | 41 } |
Chris@756 | 42 } |
Chris@756 | 43 |