diff 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
line wrap: on
line diff
--- a/data/fileio/test/svcore-data-fileio-test.cpp	Mon Jan 09 18:51:42 2017 +0000
+++ b/data/fileio/test/svcore-data-fileio-test.cpp	Tue Jan 10 10:58:25 2017 +0000
@@ -13,7 +13,9 @@
 */
 
 #include "AudioFileReaderTest.h"
+#include "AudioFileWriterTest.h"
 #include "EncodingTest.h"
+#include "MIDIFileReaderTest.h"
 
 #include <QtTest>
 
@@ -51,11 +53,23 @@
     }
 
     {
+        AudioFileWriterTest t(testDir);
+        if (QTest::qExec(&t, argc, argv) == 0) ++good;
+        else ++bad;
+    }
+
+    {
         EncodingTest t(testDir);
         if (QTest::qExec(&t, argc, argv) == 0) ++good;
         else ++bad;
     }
 
+    {
+        MIDIFileReaderTest t(testDir);
+        if (QTest::qExec(&t, argc, argv) == 0) ++good;
+        else ++bad;
+    }
+
     if (bad > 0) {
 	cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
 	return 1;