2013-07-22 08:50:39 +02:00
|
|
|
#include "paymentservertests.h"
|
2013-04-13 07:13:08 +02:00
|
|
|
#include "uritests.h"
|
|
|
|
|
2013-11-14 19:21:16 +01:00
|
|
|
#include <QCoreApplication>
|
2013-04-13 07:13:08 +02:00
|
|
|
#include <QObject>
|
|
|
|
#include <QTest>
|
2013-07-22 08:50:39 +02:00
|
|
|
|
|
|
|
// This is all you need to run all the tests
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
bool fInvalid = false;
|
|
|
|
|
2013-11-14 19:21:16 +01:00
|
|
|
// Don't remove this, it's needed to access
|
|
|
|
// QCoreApplication:: in the tests
|
|
|
|
QCoreApplication app(argc, argv);
|
|
|
|
app.setApplicationName("Bitcoin-Qt-test");
|
|
|
|
|
2013-07-22 08:50:39 +02:00
|
|
|
URITests test1;
|
|
|
|
if (QTest::qExec(&test1) != 0)
|
|
|
|
fInvalid = true;
|
|
|
|
|
|
|
|
PaymentServerTests test2;
|
|
|
|
if (QTest::qExec(&test2) != 0)
|
|
|
|
fInvalid = true;
|
|
|
|
|
|
|
|
return fInvalid;
|
|
|
|
}
|