comparison data/model/test/svcore-data-model-test.cpp @ 1537:c5092ca1c6e5 zoom

Tests for waveform oversampling
author Chris Cannam
date Wed, 26 Sep 2018 14:44:38 +0100
parents a7485c1bdba5
children a090221caeda
comparison
equal deleted inserted replaced
1536:eb10ed56d5a4 1537:c5092ca1c6e5
11 COPYING included with this distribution for more information. 11 COPYING included with this distribution for more information.
12 */ 12 */
13 13
14 #include "TestFFTModel.h" 14 #include "TestFFTModel.h"
15 #include "TestZoomConstraints.h" 15 #include "TestZoomConstraints.h"
16 #include "TestWaveformOversampler.h"
16 17
17 #include <QtTest> 18 #include <QtTest>
18 19
19 #include <iostream> 20 #include <iostream>
20 21
38 TestZoomConstraints t; 39 TestZoomConstraints t;
39 if (QTest::qExec(&t, argc, argv) == 0) ++good; 40 if (QTest::qExec(&t, argc, argv) == 0) ++good;
40 else ++bad; 41 else ++bad;
41 } 42 }
42 43
44 {
45 TestWaveformOversampler t;
46 if (QTest::qExec(&t, argc, argv) == 0) ++good;
47 else ++bad;
48 }
49
43 if (bad > 0) { 50 if (bad > 0) {
44 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl; 51 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl;
45 return 1; 52 return 1;
46 } else { 53 } else {
47 SVCERR << "All tests passed" << endl; 54 SVCERR << "All tests passed" << endl;