Chris@756: /* -*- 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:     This file copyright 2013 Chris Cannam.
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@756: 
Chris@756: #include "AudioFileReaderTest.h"
Chris@756: 
Chris@756: #include <QtTest>
Chris@756: 
Chris@756: #include <iostream>
Chris@756: 
Chris@756: int main(int argc, char *argv[])
Chris@756: {
Chris@756:     int good = 0, bad = 0;
Chris@756: 
Chris@756:     QCoreApplication app(argc, argv);
Chris@756:     app.setOrganizationName("Sonic Visualiser");
Chris@756:     app.setApplicationName("test-fileio");
Chris@756: 
Chris@756:     {
Chris@756: 	AudioFileReaderTest t;
Chris@756: 	if (QTest::qExec(&t, argc, argv) == 0) ++good;
Chris@756: 	else ++bad;
Chris@756:     }
Chris@756: 
Chris@756:     if (bad > 0) {
Chris@843: 	cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
Chris@756: 	return 1;
Chris@756:     } else {
Chris@843: 	cerr << "All tests passed" << endl;
Chris@756: 	return 0;
Chris@756:     }
Chris@756: }
Chris@756: