Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/test_main.cpp
Show All 17 Lines | |||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
#include "paymentservertests.h" | #include "paymentservertests.h" | ||||
#endif | #endif | ||||
#include <QCoreApplication> | #include <QCoreApplication> | ||||
#include <QObject> | #include <QObject> | ||||
#include <QTest> | #include <QTest> | ||||
#include <openssl/ssl.h> | |||||
#if defined(QT_STATICPLUGIN) && QT_VERSION < 0x050000 | #if defined(QT_STATICPLUGIN) && QT_VERSION < 0x050000 | ||||
#include <QtPlugin> | #include <QtPlugin> | ||||
Q_IMPORT_PLUGIN(qcncodecs) | Q_IMPORT_PLUGIN(qcncodecs) | ||||
Q_IMPORT_PLUGIN(qjpcodecs) | Q_IMPORT_PLUGIN(qjpcodecs) | ||||
Q_IMPORT_PLUGIN(qtwcodecs) | Q_IMPORT_PLUGIN(qtwcodecs) | ||||
Q_IMPORT_PLUGIN(qkrcodecs) | Q_IMPORT_PLUGIN(qkrcodecs) | ||||
#endif | #endif | ||||
Show All 9 Lines | int main(int argc, char *argv[]) { | ||||
bool fInvalid = false; | bool fInvalid = false; | ||||
// Don't remove this, it's needed to access | // Don't remove this, it's needed to access | ||||
// QCoreApplication:: in the tests | // QCoreApplication:: in the tests | ||||
QCoreApplication app(argc, argv); | QCoreApplication app(argc, argv); | ||||
app.setApplicationName("BitcoinABC-Qt-test"); | app.setApplicationName("BitcoinABC-Qt-test"); | ||||
SSL_library_init(); | |||||
URITests test1; | URITests test1; | ||||
if (QTest::qExec(&test1) != 0) fInvalid = true; | if (QTest::qExec(&test1) != 0) fInvalid = true; | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
PaymentServerTests test2; | PaymentServerTests test2; | ||||
if (QTest::qExec(&test2) != 0) fInvalid = true; | if (QTest::qExec(&test2) != 0) fInvalid = true; | ||||
#endif | #endif | ||||
RPCNestedTests test3; | RPCNestedTests test3; | ||||
if (QTest::qExec(&test3) != 0) fInvalid = true; | if (QTest::qExec(&test3) != 0) fInvalid = true; | ||||
Show All 10 Lines |