aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test/test_main.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-03-10 15:58:53 -0500
committerRussell Yanofsky <russ@yanofsky.org>2017-03-15 12:02:02 -0500
commit2754ef1c4a8cd7415f9ac2d3660ce6e4545b2754 (patch)
tree44fbf7ea8e053b8ee94718ac40f00787729e016b /src/qt/test/test_main.cpp
parentb61b34c89dbe3946e21147dcfe620a4a6ff536ed (diff)
downloadbitcoin-2754ef1c4a8cd7415f9ac2d3660ce6e4545b2754.tar.xz
Add simple qt wallet test sending a transaction
Diffstat (limited to 'src/qt/test/test_main.cpp')
-rw-r--r--src/qt/test/test_main.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp
index fc085f7e91..8a475405e0 100644
--- a/src/qt/test/test_main.cpp
+++ b/src/qt/test/test_main.cpp
@@ -14,9 +14,10 @@
#ifdef ENABLE_WALLET
#include "paymentservertests.h"
+#include "wallettests.h"
#endif
-#include <QCoreApplication>
+#include <QApplication>
#include <QObject>
#include <QTest>
@@ -43,8 +44,8 @@ int main(int argc, char *argv[])
bool fInvalid = false;
// Don't remove this, it's needed to access
- // QCoreApplication:: in the tests
- QCoreApplication app(argc, argv);
+ // QApplication:: and QCoreApplication:: in the tests
+ QApplication app(argc, argv);
app.setApplicationName("Bitcoin-Qt-test");
SSL_library_init();
@@ -67,6 +68,12 @@ int main(int argc, char *argv[])
if (QTest::qExec(&test4) != 0) {
fInvalid = true;
}
+#ifdef ENABLE_WALLET
+ WalletTests test5;
+ if (QTest::qExec(&test5) != 0) {
+ fInvalid = true;
+ }
+#endif
return fInvalid;
}