diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-06-17 15:06:10 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-06-18 20:08:45 +0200 |
commit | fa304929e2c3583bc3e6b05eaa6e0df6cdac6ec8 (patch) | |
tree | f9a83e950bd870e0b2bc666c4457215ee09eebe1 /test | |
parent | fa831e709a4d605a18e5de1627b48d670bb326fb (diff) |
test: Add bitcoin-util tests
Diffstat (limited to 'test')
-rw-r--r-- | test/util/data/bitcoin-util-test.json | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/util/data/bitcoin-util-test.json b/test/util/data/bitcoin-util-test.json index 0a9846b4be..a648c0287a 100644 --- a/test/util/data/bitcoin-util-test.json +++ b/test/util/data/bitcoin-util-test.json @@ -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", |