annotate data/fileio/test/main.cpp @ 859:13803edd513d tonioni

Use a settings setting for flexi/non-flexi determination -- this may not be the right thing in the long run but it's simpler and easier than passing through a random value that doesn't actually come from anywhere
author Chris Cannam
date Wed, 04 Dec 2013 19:30:02 +0000
parents e802e550a1f2
children eb6b6a88faed
rev   line source
Chris@756 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@756 2 /* Copyright Chris Cannam - All Rights Reserved */
Chris@756 3
Chris@756 4 #include "AudioFileReaderTest.h"
Chris@756 5
Chris@756 6 #include <QtTest>
Chris@756 7
Chris@756 8 #include <iostream>
Chris@756 9
Chris@756 10 int main(int argc, char *argv[])
Chris@756 11 {
Chris@756 12 int good = 0, bad = 0;
Chris@756 13
Chris@756 14 QCoreApplication app(argc, argv);
Chris@756 15 app.setOrganizationName("Sonic Visualiser");
Chris@756 16 app.setApplicationName("test-fileio");
Chris@756 17
Chris@756 18 {
Chris@756 19 AudioFileReaderTest t;
Chris@756 20 if (QTest::qExec(&t, argc, argv) == 0) ++good;
Chris@756 21 else ++bad;
Chris@756 22 }
Chris@756 23
Chris@756 24 if (bad > 0) {
Chris@843 25 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
Chris@756 26 return 1;
Chris@756 27 } else {
Chris@843 28 cerr << "All tests passed" << endl;
Chris@756 29 return 0;
Chris@756 30 }
Chris@756 31 }
Chris@756 32