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.
5 #if defined(HAVE_CONFIG_H)
6 #include "config/bitcoin-config.h"
12 #include "paymentservertests.h"
15 #include <QCoreApplication>
19 #if defined(QT_STATICPLUGIN) && QT_VERSION < 0x050000
21 Q_IMPORT_PLUGIN(qcncodecs)
22 Q_IMPORT_PLUGIN(qjpcodecs)
23 Q_IMPORT_PLUGIN(qtwcodecs)
24 Q_IMPORT_PLUGIN(qkrcodecs)
27 // This is all you need to run all the tests
28 int main(int argc, char *argv[])
30 bool fInvalid = false;
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");
38 if (QTest::qExec(&test1) != 0)
41 PaymentServerTests test2;
42 if (QTest::qExec(&test2) != 0)