Chris@879: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@879: /* Chris@879: Sonic Visualiser Chris@879: An audio file viewer and annotation editor. Chris@879: Centre for Digital Music, Queen Mary, University of London. Chris@879: Chris@879: This program is free software; you can redistribute it and/or Chris@879: modify it under the terms of the GNU General Public License as Chris@879: published by the Free Software Foundation; either version 2 of the Chris@879: License, or (at your option) any later version. See the file Chris@879: COPYING included with this distribution for more information. Chris@879: */ Chris@879: Chris@883: #include "TestRangeMapper.h" Chris@879: Chris@879: #include Chris@879: Chris@879: #include Chris@879: Chris@879: int main(int argc, char *argv[]) Chris@879: { Chris@879: int good = 0, bad = 0; Chris@879: Chris@879: QCoreApplication app(argc, argv); Chris@879: app.setOrganizationName("Sonic Visualiser"); Chris@879: app.setApplicationName("test-svcore-base"); Chris@879: Chris@879: { Chris@883: TestRangeMapper t; Chris@879: if (QTest::qExec(&t, argc, argv) == 0) ++good; Chris@879: else ++bad; Chris@879: } Chris@879: Chris@879: if (bad > 0) { Chris@879: cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; Chris@879: return 1; Chris@879: } else { Chris@879: cerr << "All tests passed" << endl; Chris@879: return 0; Chris@879: } Chris@879: }