comparison 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
comparison
equal deleted inserted replaced
755:dc6c0e50724c 756:02390a4c2abe
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 /* Copyright Chris Cannam - All Rights Reserved */
3
4 #include "AudioFileReaderTest.h"
5
6 #include <QtTest>
7
8 #include <iostream>
9
10 int main(int argc, char *argv[])
11 {
12 int good = 0, bad = 0;
13
14 QCoreApplication app(argc, argv);
15 app.setOrganizationName("Sonic Visualiser");
16 app.setApplicationName("test-fileio");
17
18 {
19 AudioFileReaderTest t;
20 if (QTest::qExec(&t, argc, argv) == 0) ++good;
21 else ++bad;
22 }
23
24 if (bad > 0) {
25 std::cerr << "\n********* " << bad << " test suite(s) failed!\n" << std::endl;
26 return 1;
27 } else {
28 std::cerr << "All tests passed" << std::endl;
29 return 0;
30 }
31 }
32