Files
lmms/tests/main.cpp
Lukas W 6004edae5c Include past automation patterns in processing (#3382)
Fixes #662

* Include past automation tracks in processing
* Track::getTCOsInRange: Use binary search, fix doc
* Automation refactorings
* Add automation tests
2017-03-26 12:27:15 +02:00

24 lines
496 B
C++

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