comparison data/fileio/test/svcore-data-fileio-test.cpp @ 1453:4b496a258782

Merge from branch streaming-csv-writer
author Chris Cannam
date Tue, 17 Apr 2018 10:52:06 +0100
parents a12fd0456f0c
children 4700b7188f6c
comparison
equal deleted inserted replaced
1429:48e9f538e6e9 1453:4b496a258782
14 14
15 #include "AudioFileReaderTest.h" 15 #include "AudioFileReaderTest.h"
16 #include "AudioFileWriterTest.h" 16 #include "AudioFileWriterTest.h"
17 #include "EncodingTest.h" 17 #include "EncodingTest.h"
18 #include "MIDIFileReaderTest.h" 18 #include "MIDIFileReaderTest.h"
19 #include "CSVStreamWriterTest.h"
19 20
20 #include <QtTest> 21 #include <QtTest>
21 22
22 #include <iostream> 23 #include <iostream>
23 24
68 MIDIFileReaderTest t(testDir); 69 MIDIFileReaderTest t(testDir);
69 if (QTest::qExec(&t, argc, argv) == 0) ++good; 70 if (QTest::qExec(&t, argc, argv) == 0) ++good;
70 else ++bad; 71 else ++bad;
71 } 72 }
72 73
74 {
75 CSVStreamWriterTest t;
76 if (QTest::qExec(&t, argc, argv) == 0) ++good;
77 else ++bad;
78 }
79
73 if (bad > 0) { 80 if (bad > 0) {
74 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl; 81 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl;
75 return 1; 82 return 1;
76 } else { 83 } else {
77 SVCERR << "All tests passed" << endl; 84 SVCERR << "All tests passed" << endl;
78 return 0; 85 return 0;
79 } 86 }
80 } 87 }
81