21 #endif // ENABLE_WALLET 23 #include <QApplication> 31 #if defined(QT_STATIC) 33 #if defined(QT_QPA_PLATFORM_MINIMAL) 34 Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin);
36 #if defined(QT_QPA_PLATFORM_XCB) 37 Q_IMPORT_PLUGIN(QXcbIntegrationPlugin);
38 #elif defined(QT_QPA_PLATFORM_WINDOWS) 39 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
40 #elif defined(QT_QPA_PLATFORM_COCOA) 41 Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
42 #elif defined(QT_QPA_PLATFORM_ANDROID) 43 Q_IMPORT_PLUGIN(QAndroidPlatformIntegrationPlugin)
54 int main(
int argc,
char* argv[])
83 if (getenv(
"QT_QPA_PLATFORM") ==
nullptr) _putenv_s(
"QT_QPA_PLATFORM",
"minimal");
85 setenv(
"QT_QPA_PLATFORM",
"minimal", 0 );
92 int num_test_failures{0};
99 num_test_failures += QTest::qExec(&app_tests);
102 num_test_failures += QTest::qExec(&options_tests);
105 num_test_failures += QTest::qExec(&
test1);
108 num_test_failures += QTest::qExec(&test3);
112 num_test_failures += QTest::qExec(&test5);
115 num_test_failures += QTest::qExec(&test6);
118 if (num_test_failures) {
119 qWarning(
"\nFailed tests: %d\n", num_test_failures);
121 qDebug(
"\nAll tests passed.\n");
128 return num_test_failures;
bool ReadConfigFiles(std::string &error, bool ignore_invalid_keys=false)
int main(int argc, char *argv[])
void ForceSetArg(const std::string &strArg, const std::string &strValue)
interfaces::Node & node() const
const std::function< std::vector< const char * >)> G_TEST_COMMAND_LINE_ARGUMENTS
Retrieve the command line arguments.
fs::path GetDataDirNet() const
Get data directory path with appended network identifier.
void createNode(interfaces::Init &init)
Create or spawn node.
Main Bitcoin application object.
static bool create_directories(const std::filesystem::path &p)
Create directory (and if necessary its parents), unless the leaf directory already exists or is a sym...
const std::function< std::string()> G_TEST_GET_FULL_NAME
Retrieve the unit test name.
#define QAPP_APP_NAME_DEFAULT
const std::function< void(const std::string &)> G_TEST_LOG_FUN
This is connected to the logger.
std::unique_ptr< Init > MakeGuiInit(int argc, char *argv[])
Return implementation of Init interface for the gui process.