Mercurial > hg > svcore
annotate data/fileio/test/main.cpp @ 845:a299c4cec0f8
Likewise, but for toLocal8Bit().data()
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 13:48:13 +0000 |
parents | e802e550a1f2 |
children | eb6b6a88faed |
rev | line source |
---|---|
Chris@756 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@756 | 2 /* Copyright Chris Cannam - All Rights Reserved */ |
Chris@756 | 3 |
Chris@756 | 4 #include "AudioFileReaderTest.h" |
Chris@756 | 5 |
Chris@756 | 6 #include <QtTest> |
Chris@756 | 7 |
Chris@756 | 8 #include <iostream> |
Chris@756 | 9 |
Chris@756 | 10 int main(int argc, char *argv[]) |
Chris@756 | 11 { |
Chris@756 | 12 int good = 0, bad = 0; |
Chris@756 | 13 |
Chris@756 | 14 QCoreApplication app(argc, argv); |
Chris@756 | 15 app.setOrganizationName("Sonic Visualiser"); |
Chris@756 | 16 app.setApplicationName("test-fileio"); |
Chris@756 | 17 |
Chris@756 | 18 { |
Chris@756 | 19 AudioFileReaderTest t; |
Chris@756 | 20 if (QTest::qExec(&t, argc, argv) == 0) ++good; |
Chris@756 | 21 else ++bad; |
Chris@756 | 22 } |
Chris@756 | 23 |
Chris@756 | 24 if (bad > 0) { |
Chris@843 | 25 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; |
Chris@756 | 26 return 1; |
Chris@756 | 27 } else { |
Chris@843 | 28 cerr << "All tests passed" << endl; |
Chris@756 | 29 return 0; |
Chris@756 | 30 } |
Chris@756 | 31 } |
Chris@756 | 32 |