Skip to content

Commit fa30492

Browse files
author
MarcoFalke
committed
test: Add bitcoin-util tests
1 parent fa831e7 commit fa30492

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

test/util/data/bitcoin-util-test.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
11
[
2+
{ "exec": "./bitcoin-util",
3+
"args": ["foo"],
4+
"return_code": 1,
5+
"error_txt": "Error parsing command line arguments: Invalid command 'foo'",
6+
"description": ""
7+
},
8+
{ "exec": "./bitcoin-util",
9+
"args": ["help"],
10+
"return_code": 1,
11+
"error_txt": "Error parsing command line arguments: Invalid command 'help'",
12+
"description": "`help` raises an error. Use `-help`"
13+
},
14+
{ "exec": "./bitcoin-util",
15+
"args": ["grind"],
16+
"return_code": 1,
17+
"error_txt": "Must specify block header to grind",
18+
"description": ""
19+
},
20+
{ "exec": "./bitcoin-util",
21+
"args": ["grind", "1", "2"],
22+
"return_code": 1,
23+
"error_txt": "Must specify block header to grind",
24+
"description": ""
25+
},
26+
{ "exec": "./bitcoin-util",
27+
"args": ["grind", "aa"],
28+
"return_code": 1,
29+
"error_txt": "Could not decode block header",
30+
"description": ""
31+
},
232
{ "exec": "./bitcoin-tx",
333
"args": ["-create", "nversion=1"],
434
"output_cmp": "blanktxv1.hex",

0 commit comments

Comments
 (0)