annotate data/fileio/test/main.cpp @ 756:02390a4c2abe

Toward audio read tests
author Chris Cannam
date Fri, 08 Mar 2013 16:14:21 +0000
parents
children e802e550a1f2
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@756 25 std::cerr << "\n********* " << bad << " test suite(s) failed!\n" << std::endl;
Chris@756 26 return 1;
Chris@756 27 } else {
Chris@756 28 std::cerr << "All tests passed" << std::endl;
Chris@756 29 return 0;
Chris@756 30 }
Chris@756 31 }
Chris@756 32