File tree 2 files changed +11
-1
lines changed
functional/test_framework
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ RPCAUTH=@abs_top_srcdir@/share/rpcauth/rpcauth.py
17
17
# Which components are enabled. These are commented out by `configure` if they were disabled when running config.
18
18
@ENABLE_WALLET_TRUE@ENABLE_WALLET=true
19
19
@USE_SQLITE_TRUE@USE_SQLITE=true
20
+ @USE_BDB_TRUE@USE_BDB=true
20
21
@BUILD_BITCOIN_CLI_TRUE@ENABLE_CLI=true
21
22
@BUILD_BITCOIN_WALLET_TRUE@ENABLE_WALLET_TOOL=true
22
23
@BUILD_BITCOIND_TRUE@ENABLE_BITCOIND=true
Original file line number Diff line number Diff line change @@ -782,6 +782,11 @@ def skip_if_no_sqlite(self):
782
782
if not self .is_sqlite_compiled ():
783
783
raise SkipTest ("sqlite has not been compiled." )
784
784
785
+ def skip_if_no_bdb (self ):
786
+ """Skip the running test if BDB has not been compiled."""
787
+ if not self .is_bdb_compiled ():
788
+ raise SkipTest ("BDB has not been compiled." )
789
+
785
790
def skip_if_no_wallet_tool (self ):
786
791
"""Skip the running test if bitcoin-wallet has not been compiled."""
787
792
if not self .is_wallet_tool_compiled ():
@@ -822,5 +827,9 @@ def is_zmq_compiled(self):
822
827
return self .config ["components" ].getboolean ("ENABLE_ZMQ" )
823
828
824
829
def is_sqlite_compiled (self ):
825
- """Checks whether the wallet module was compiled."""
830
+ """Checks whether the wallet module was compiled with Sqlite support ."""
826
831
return self .config ["components" ].getboolean ("USE_SQLITE" )
832
+
833
+ def is_bdb_compiled (self ):
834
+ """Checks whether the wallet module was compiled with BDB support."""
835
+ return self .config ["components" ].getboolean ("USE_BDB" )
You can’t perform that action at this time.
0 commit comments