File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
functional/test_framework Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ function(create_test_config)
17
17
18
18
set_configure_variable (ENABLE_WALLET ENABLE_WALLET )
19
19
set_configure_variable (BUILD_CLI BUILD_BITCOIN_CLI )
20
+ set_configure_variable (BUILD_TX BUILD_BITCOIN_TX )
20
21
set_configure_variable (BUILD_UTIL BUILD_BITCOIN_UTIL )
21
22
set_configure_variable (BUILD_UTIL_CHAINSTATE BUILD_BITCOIN_CHAINSTATE )
22
23
set_configure_variable (BUILD_WALLET_TOOL BUILD_BITCOIN_WALLET )
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 cmake if they were disabled during configuration.
18
18
@ENABLE_WALLET_TRUE@ENABLE_WALLET=true
19
19
@BUILD_BITCOIN_CLI_TRUE@ENABLE_CLI=true
20
+ @BUILD_BITCOIN_TX_TRUE@BUILD_BITCOIN_TX=true
20
21
@BUILD_BITCOIN_UTIL_TRUE@ENABLE_BITCOIN_UTIL=true
21
22
@BUILD_BITCOIN_CHAINSTATE_TRUE@ENABLE_BITCOIN_CHAINSTATE=true
22
23
@BUILD_BITCOIN_WALLET_TRUE@ENABLE_WALLET_TOOL=true
Original file line number Diff line number Diff line change @@ -1002,6 +1002,11 @@ def skip_if_no_wallet_tool(self):
1002
1002
if not self .is_wallet_tool_compiled ():
1003
1003
raise SkipTest ("bitcoin-wallet has not been compiled" )
1004
1004
1005
+ def skip_if_no_bitcoin_tx (self ):
1006
+ """Skip the running test if bitcoin-tx has not been compiled."""
1007
+ if not self .is_bitcoin_tx_compiled ():
1008
+ raise SkipTest ("bitcoin-tx has not been compiled" )
1009
+
1005
1010
def skip_if_no_bitcoin_util (self ):
1006
1011
"""Skip the running test if bitcoin-util has not been compiled."""
1007
1012
if not self .is_bitcoin_util_compiled ():
@@ -1056,6 +1061,10 @@ def is_wallet_tool_compiled(self):
1056
1061
"""Checks whether bitcoin-wallet was compiled."""
1057
1062
return self .config ["components" ].getboolean ("ENABLE_WALLET_TOOL" )
1058
1063
1064
+ def is_bitcoin_tx_compiled (self ):
1065
+ """Checks whether bitcoin-tx was compiled."""
1066
+ return self .config ["components" ].getboolean ("BUILD_BITCOIN_TX" )
1067
+
1059
1068
def is_bitcoin_util_compiled (self ):
1060
1069
"""Checks whether bitcoin-util was compiled."""
1061
1070
return self .config ["components" ].getboolean ("ENABLE_BITCOIN_UTIL" )
You can’t perform that action at this time.
0 commit comments