Files
lmms/tests/main.cpp
Dominic Clark 4804ab6785 Support per-note detuning and panning with Sf2 Player (#6602)
* Add `ArrayVector` class template and tests

* Fix counting of failed test suites

* Support detuning and panning with Sf2 Player

* Restrict panning to supported FluidSynth versions

* Fix data array cast type

* Fix tests for Qt<5.10 and correct mistaken test

* DIsplay warning for FluidSynth < 2

* Remove unnecessary clamp

* Update include guard name
2023-08-31 07:12:00 -04:00

24 lines
508 B
C++

#include "QTestSuite.h"
#include <QTest>
#include <QDebug>
#include "Engine.h"
int main(int argc, char* argv[])
{
new QCoreApplication(argc, argv);
lmms::Engine::init(true);
int numsuites = QTestSuite::suites().size();
qDebug() << ">> Will run" << numsuites << "test suites";
int failed = 0;
for (QTestSuite*& suite : QTestSuite::suites())
{
if (QTest::qExec(suite, argc, argv) != 0) { ++failed; }
}
qDebug() << "<<" << failed << "out of"<<numsuites<<"test suites failed.";
return failed;
}