mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
configure: add --enable-external-signer
This option replaces --with-boost-process This prepares external signer support to be disabled by default. It adds a configure option to enable this feature and to check if Boost::Process is present. This also exposes ENABLE_EXTERNAL_SIGNER to the test suite via test/config.ini
This commit is contained in:
@@ -6,22 +6,22 @@
|
||||
#include <util/system.h>
|
||||
#include <univalue.h>
|
||||
|
||||
#ifdef HAVE_BOOST_PROCESS
|
||||
#ifdef ENABLE_EXTERNAL_SIGNER
|
||||
#include <boost/process.hpp>
|
||||
#endif // HAVE_BOOST_PROCESS
|
||||
#endif // ENABLE_EXTERNAL_SIGNER
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(system_tests, BasicTestingSetup)
|
||||
|
||||
// At least one test is required (in case HAVE_BOOST_PROCESS is not defined).
|
||||
// At least one test is required (in case ENABLE_EXTERNAL_SIGNER is not defined).
|
||||
// Workaround for https://github.com/bitcoin/bitcoin/issues/19128
|
||||
BOOST_AUTO_TEST_CASE(dummy)
|
||||
{
|
||||
BOOST_CHECK(true);
|
||||
}
|
||||
|
||||
#ifdef HAVE_BOOST_PROCESS
|
||||
#ifdef ENABLE_EXTERNAL_SIGNER
|
||||
|
||||
bool checkMessage(const std::runtime_error& ex)
|
||||
{
|
||||
@@ -90,6 +90,6 @@ BOOST_AUTO_TEST_CASE(run_command)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif // HAVE_BOOST_PROCESS
|
||||
#endif // ENABLE_EXTERNAL_SIGNER
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
Reference in New Issue
Block a user