Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/test_main.cpp
Show All 11 Lines | |||||
#include <util.h> | #include <util.h> | ||||
#include <qt/test/bitcoinaddressvalidatortests.h> | #include <qt/test/bitcoinaddressvalidatortests.h> | ||||
#include <qt/test/compattests.h> | #include <qt/test/compattests.h> | ||||
#include <qt/test/guiutiltests.h> | #include <qt/test/guiutiltests.h> | ||||
#include <qt/test/rpcnestedtests.h> | #include <qt/test/rpcnestedtests.h> | ||||
#include <qt/test/uritests.h> | #include <qt/test/uritests.h> | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
#include <qt/test/addressbooktests.h> | |||||
#include <qt/test/paymentservertests.h> | #include <qt/test/paymentservertests.h> | ||||
#include <qt/test/wallettests.h> | #include <qt/test/wallettests.h> | ||||
#endif | #endif | ||||
#include <QApplication> | #include <QApplication> | ||||
#include <QObject> | #include <QObject> | ||||
#include <QTest> | #include <QTest> | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | #endif | ||||
CompatTests test4; | CompatTests test4; | ||||
if (QTest::qExec(&test4) != 0) { | if (QTest::qExec(&test4) != 0) { | ||||
fInvalid = true; | fInvalid = true; | ||||
} | } | ||||
GUIUtilTests test5; | GUIUtilTests test5; | ||||
if (QTest::qExec(&test5) != 0) { | if (QTest::qExec(&test5) != 0) { | ||||
fInvalid = true; | fInvalid = true; | ||||
} | } | ||||
BitcoinAddressValidatorTests test6; | AddressBookTests test6; | ||||
if (QTest::qExec(&test6) != 0) { | if (QTest::qExec(&test6) != 0) { | ||||
fInvalid = true; | fInvalid = true; | ||||
} | } | ||||
#ifdef ENABLE_WALLET | BitcoinAddressValidatorTests test7; | ||||
WalletTests test7; | |||||
if (QTest::qExec(&test7) != 0) { | if (QTest::qExec(&test7) != 0) { | ||||
fInvalid = true; | fInvalid = true; | ||||
} | } | ||||
#ifdef ENABLE_WALLET | |||||
WalletTests test8; | |||||
if (QTest::qExec(&test8) != 0) { | |||||
fInvalid = true; | |||||
} | |||||
#endif | #endif | ||||
fs::remove_all(pathTemp); | fs::remove_all(pathTemp); | ||||
return fInvalid; | return fInvalid; | ||||
} | } |