pytest: test Bitcoin plugin registration and the bcli plugin

This commit is contained in:
darosior
2020-02-06 19:00:14 +01:00
committed by Rusty Russell
parent 4c5862eab1
commit a47fd8cf3e
5 changed files with 150 additions and 0 deletions

View File

@@ -80,6 +80,9 @@ void bitcoind_check_commands(struct bitcoind *bitcoind)
for (i = 0; i < ARRAY_SIZE(methods); i++) {
p = find_plugin_for_command(bitcoind->ld, methods[i]);
if (p == NULL) {
/* For testing .. */
log_debug(bitcoind->ld->log, "Missing a Bitcoin plugin"
" command");
fatal("Could not access the plugin for %s, is a "
"Bitcoin plugin (by default plugins/bcli) "
"registered ?", methods[i]);