PIVX Core  5.6.99
P2P Digital Currency
test_main.cpp
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 The Bitcoin developers
2 // Copyright (c) 2014-2015 The Dash developers
3 // Copyright (c) 2015-2021 The PIVX Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #if defined(HAVE_CONFIG_H)
8 #include "config/pivx-config.h"
9 #endif
10 
11 #include "util/system.h"
12 #include "uritests.h"
13 
14 #include <QCoreApplication>
15 #include <QObject>
16 #include <QTest>
17 
18 #if defined(QT_STATICPLUGIN)
19 #include <QtPlugin>
20 #if defined(QT_QPA_PLATFORM_MINIMAL)
21 Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin);
22 #endif
23 #if defined(QT_QPA_PLATFORM_XCB)
24 Q_IMPORT_PLUGIN(QXcbIntegrationPlugin);
25 #elif defined(QT_QPA_PLATFORM_WINDOWS)
26 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
27 #elif defined(QT_QPA_PLATFORM_COCOA)
28 Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
29 #endif
30 #endif
31 
32 extern void noui_connect();
33 
34 // This is all you need to run all the tests
35 int main(int argc, char *argv[])
36 {
38  bool fInvalid = false;
39 
40  // Don't remove this, it's needed to access
41  // QCoreApplication:: in the tests
42  QCoreApplication app(argc, argv);
43  app.setApplicationName("Pivx-Qt-test");
44 
46  if (QTest::qExec(&test1) != 0)
47  fInvalid = true;
48 
49  return fInvalid;
50 }
TestVector test1
Definition: bip32_tests.cpp:37
char ** argv
Definition: fuzz.cpp:52
void SetupEnvironment()
Definition: system.cpp:1043
int main(int argc, char *argv[])
Definition: test_main.cpp:35
void noui_connect()
Definition: noui.cpp:49