comparison system/test/svcore-system-test.cpp @ 1476:5afbac960a30 plugin-path-config

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