test: Add bitcoin-util tests

This commit is contained in:
MarcoFalke 2021-06-17 15:06:10 +02:00
parent fa831e709a
commit fa304929e2
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -1,4 +1,34 @@
[
{ "exec": "./bitcoin-util",
"args": ["foo"],
"return_code": 1,
"error_txt": "Error parsing command line arguments: Invalid command 'foo'",
"description": ""
},
{ "exec": "./bitcoin-util",
"args": ["help"],
"return_code": 1,
"error_txt": "Error parsing command line arguments: Invalid command 'help'",
"description": "`help` raises an error. Use `-help`"
},
{ "exec": "./bitcoin-util",
"args": ["grind"],
"return_code": 1,
"error_txt": "Must specify block header to grind",
"description": ""
},
{ "exec": "./bitcoin-util",
"args": ["grind", "1", "2"],
"return_code": 1,
"error_txt": "Must specify block header to grind",
"description": ""
},
{ "exec": "./bitcoin-util",
"args": ["grind", "aa"],
"return_code": 1,
"error_txt": "Could not decode block header",
"description": ""
},
{ "exec": "./bitcoin-tx",
"args": ["-create", "nversion=1"],
"output_cmp": "blanktxv1.hex",