]> Git Repo - VerusCoin.git/blob - src/qt/test/test_main.cpp
Merge pull request #5360
[VerusCoin.git] / src / qt / test / test_main.cpp
1 // Copyright (c) 2009-2014 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #if defined(HAVE_CONFIG_H)
6 #include "config/bitcoin-config.h"
7 #endif
8
9 #include "uritests.h"
10
11 #ifdef ENABLE_WALLET
12 #include "paymentservertests.h"
13 #endif
14
15 #include <QCoreApplication>
16 #include <QObject>
17 #include <QTest>
18
19 #if defined(QT_STATICPLUGIN) && QT_VERSION < 0x050000
20 #include <QtPlugin>
21 Q_IMPORT_PLUGIN(qcncodecs)
22 Q_IMPORT_PLUGIN(qjpcodecs)
23 Q_IMPORT_PLUGIN(qtwcodecs)
24 Q_IMPORT_PLUGIN(qkrcodecs)
25 #endif
26
27 // This is all you need to run all the tests
28 int main(int argc, char *argv[])
29 {
30     bool fInvalid = false;
31
32     // Don't remove this, it's needed to access
33     // QCoreApplication:: in the tests
34     QCoreApplication app(argc, argv);
35     app.setApplicationName("Bitcoin-Qt-test");
36
37     URITests test1;
38     if (QTest::qExec(&test1) != 0)
39         fInvalid = true;
40 #ifdef ENABLE_WALLET
41     PaymentServerTests test2;
42     if (QTest::qExec(&test2) != 0)
43         fInvalid = true;
44 #endif
45
46     return fInvalid;
47 }
This page took 0.026156 seconds and 4 git commands to generate.