2013-10-31 21:53:22 +00:00
|
|
|
#include <cppunit/TextTestRunner.h>
|
|
|
|
#include <cppunit/extensions/TestFactoryRegistry.h>
|
|
|
|
#include <QtCore/QDebug>
|
|
|
|
|
|
|
|
using namespace CppUnit;
|
|
|
|
|
|
|
|
void noMessageOutput(QtMsgType, const QMessageLogContext&, const QString&)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2013-11-10 16:03:07 +00:00
|
|
|
paysagesInit();
|
|
|
|
|
2013-10-31 21:53:22 +00:00
|
|
|
qInstallMessageHandler(noMessageOutput);
|
|
|
|
|
|
|
|
TextTestRunner runner;
|
|
|
|
TestFactoryRegistry ®istry = TestFactoryRegistry::getRegistry();
|
|
|
|
|
|
|
|
runner.addTest(registry.makeTest());
|
|
|
|
|
2013-11-10 16:03:07 +00:00
|
|
|
paysagesQuit();
|
|
|
|
|
2013-10-31 21:53:22 +00:00
|
|
|
return runner.run() ? 1 : 0;
|
|
|
|
}
|
|
|
|
|