Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/test_main.cpp
Show All 39 Lines | |||||
Q_IMPORT_PLUGIN(QXcbIntegrationPlugin); | Q_IMPORT_PLUGIN(QXcbIntegrationPlugin); | ||||
#elif defined(QT_QPA_PLATFORM_WINDOWS) | #elif defined(QT_QPA_PLATFORM_WINDOWS) | ||||
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); | Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); | ||||
#elif defined(QT_QPA_PLATFORM_COCOA) | #elif defined(QT_QPA_PLATFORM_COCOA) | ||||
Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin); | Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin); | ||||
#endif | #endif | ||||
#endif | #endif | ||||
const std::function<void(const std::string &)> G_TEST_LOG_FUN{}; | |||||
// This is all you need to run all the tests | // This is all you need to run all the tests | ||||
int main(int argc, char *argv[]) { | int main(int argc, char *argv[]) { | ||||
// Initialize persistent globals with the testing setup state for sanity. | // Initialize persistent globals with the testing setup state for sanity. | ||||
// E.g. -datadir in gArgs is set to a temp directory dummy value (instead | // E.g. -datadir in gArgs is set to a temp directory dummy value (instead | ||||
// of defaulting to the default datadir), or globalChainParams is set to | // of defaulting to the default datadir), or globalChainParams is set to | ||||
// regtest params. | // regtest params. | ||||
// | // | ||||
// All tests must use their own testing setup (if needed). | // All tests must use their own testing setup (if needed). | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |