Mercurial > hg > svcore
annotate system/test/svcore-system-test.cpp @ 1524:64ef24ebb19c
Some CSV format tests and minor fixes
author | Chris Cannam |
---|---|
date | Fri, 14 Sep 2018 09:25:17 +0100 |
parents | 5afbac960a30 |
children |
rev | line source |
---|---|
Chris@879 | 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 |
Chris@879 | 7 This program is free software; you can redistribute it and/or |
Chris@879 | 8 modify it under the terms of the GNU General Public License as |
Chris@879 | 9 published by the Free Software Foundation; either version 2 of the |
Chris@879 | 10 License, or (at your option) any later version. See the file |
Chris@879 | 11 COPYING included with this distribution for more information. |
Chris@879 | 12 */ |
Chris@879 | 13 |
Chris@1476 | 14 #include "TestEnv.h" |
Chris@879 | 15 |
Chris@879 | 16 #include <QtTest> |
Chris@879 | 17 |
Chris@879 | 18 #include <iostream> |
Chris@879 | 19 |
Chris@879 | 20 int main(int argc, char *argv[]) |
Chris@879 | 21 { |
Chris@879 | 22 int good = 0, bad = 0; |
Chris@879 | 23 |
Chris@879 | 24 QCoreApplication app(argc, argv); |
Chris@1392 | 25 app.setOrganizationName("sonic-visualiser"); |
Chris@1476 | 26 app.setApplicationName("test-svcore-system"); |
Chris@879 | 27 |
Chris@879 | 28 { |
Chris@1476 | 29 TestEnv t; |
Chris@1429 | 30 if (QTest::qExec(&t, argc, argv) == 0) ++good; |
Chris@1429 | 31 else ++bad; |
Chris@1407 | 32 } |
Chris@879 | 33 |
Chris@879 | 34 if (bad > 0) { |
Chris@1428 | 35 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl; |
Chris@1428 | 36 return 1; |
Chris@879 | 37 } else { |
Chris@1428 | 38 SVCERR << "All tests passed" << endl; |
Chris@1428 | 39 return 0; |
Chris@879 | 40 } |
Chris@879 | 41 } |