mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-11 18:46:41 -04:00
* 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
24 lines
508 B
C++
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;
|
|
}
|