comparison data/fileio/test/svcore-data-fileio-test.cpp @ 1359:1c9bbbb6116a 3.0-integration

Use W64 instead of WAV for decoded files; use Ogg reader in preference to WAV one for Ogg files (WAV reader works, via libsndfile, but doesn't load metadata); fix Ogg reader to use QFile open instead of non-Win32-compatible API; add more encoder tests, audio writer test, midi reader test
author Chris Cannam
date Tue, 10 Jan 2017 10:58:25 +0000
parents 75ad55315db4
children 667e369cfeab
comparison
equal deleted inserted replaced
1358:b7be05d57f0a 1359:1c9bbbb6116a
11 License, or (at your option) any later version. See the file 11 License, or (at your option) any later version. See the file
12 COPYING included with this distribution for more information. 12 COPYING included with this distribution for more information.
13 */ 13 */
14 14
15 #include "AudioFileReaderTest.h" 15 #include "AudioFileReaderTest.h"
16 #include "AudioFileWriterTest.h"
16 #include "EncodingTest.h" 17 #include "EncodingTest.h"
18 #include "MIDIFileReaderTest.h"
17 19
18 #include <QtTest> 20 #include <QtTest>
19 21
20 #include <iostream> 22 #include <iostream>
21 23
49 if (QTest::qExec(&t, argc, argv) == 0) ++good; 51 if (QTest::qExec(&t, argc, argv) == 0) ++good;
50 else ++bad; 52 else ++bad;
51 } 53 }
52 54
53 { 55 {
56 AudioFileWriterTest t(testDir);
57 if (QTest::qExec(&t, argc, argv) == 0) ++good;
58 else ++bad;
59 }
60
61 {
54 EncodingTest t(testDir); 62 EncodingTest t(testDir);
63 if (QTest::qExec(&t, argc, argv) == 0) ++good;
64 else ++bad;
65 }
66
67 {
68 MIDIFileReaderTest t(testDir);
55 if (QTest::qExec(&t, argc, argv) == 0) ++good; 69 if (QTest::qExec(&t, argc, argv) == 0) ++good;
56 else ++bad; 70 else ++bad;
57 } 71 }
58 72
59 if (bad > 0) { 73 if (bad > 0) {