aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin_main.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-03-17 14:30:48 +0100
committerJonas Schnelli <dev@jonasschnelli.ch>2017-03-17 14:31:22 +0100
commitb9f930b383480a443fea5e89cb972265690962af (patch)
tree5339c8021cfd4a8b5ead73919976f1b17c2e508c /src/test/test_bitcoin_main.cpp
parentfcf556f7e9b3b09d88aaa1377dc97f6438b2c9c6 (diff)
parent9576b015a107b98fc950c574ed01d993b388d7c9 (diff)
downloadbitcoin-b9f930b383480a443fea5e89cb972265690962af.tar.xz
Merge #9974: Add basic Qt wallet test
9576b01 Enable xvfb in travis to allow running test_bitcoin-qt (Russell Yanofsky) 9e6817e Add new test_bitcoin-qt static library dependencies (Russell Yanofsky) 2754ef1 Add simple qt wallet test sending a transaction (Russell Yanofsky) b61b34c Add braces to if statements in Qt test_main (Russell Yanofsky) cc9503c Make qt test compatible with TestChain100Setup framework (Russell Yanofsky) 91e3035 Make test_bitcoin.cpp compatible with Qt Test framework (Russell Yanofsky) Tree-SHA512: da491181848b8c39138e997ae5ff2df0b16eef2d9cdd0a965229b1a28d4fa862d5f1ef314a1736e5050e88858f329124d15c689659fc6e50fefde769ba24e523
Diffstat (limited to 'src/test/test_bitcoin_main.cpp')
-rw-r--r--src/test/test_bitcoin_main.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/test_bitcoin_main.cpp b/src/test/test_bitcoin_main.cpp
new file mode 100644
index 0000000000..34beef5539
--- /dev/null
+++ b/src/test/test_bitcoin_main.cpp
@@ -0,0 +1,26 @@
+// Copyright (c) 2011-2016 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#define BOOST_TEST_MODULE Bitcoin Test Suite
+
+#include "net.h"
+
+#include <boost/test/unit_test.hpp>
+
+std::unique_ptr<CConnman> g_connman;
+
+void Shutdown(void* parg)
+{
+ exit(EXIT_SUCCESS);
+}
+
+void StartShutdown()
+{
+ exit(EXIT_SUCCESS);
+}
+
+bool ShutdownRequested()
+{
+ return false;
+}