Chris@756: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
Chris@756: /* Copyright Chris Cannam - All Rights Reserved */
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: