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