-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mktx] The tx file can now be "-" to print on stdout
- Loading branch information
Showing
6 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=sx-tuto-mktx-stdin-stdout.t | ||
command=hx | ||
args=( mktx - --input 97e06e49dfdd26c5a904670971ccf4c7fe7d9da53cb379bf9b442fc9427080b3:1 --output - ) | ||
exit_code=0 | ||
stdin_file=stdin | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1MyKMeDsom7rYcp69KpbKn4DcyuvLMkLYJ:90000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0100000001b3807042c92f449bbf79b33ca59d7dfec7f4cc71096704a9c526dddf496ee0970100000000ffffffff01905f0100000000001976a914e60921dbfe1e066113f1c6e0ea15517234187d4788ac00000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=sx-tuto-mktx-stdout.t | ||
command=hx | ||
args=( mktx - --input 97e06e49dfdd26c5a904670971ccf4c7fe7d9da53cb379bf9b442fc9427080b3:1 --output 1MyKMeDsom7rYcp69KpbKn4DcyuvLMkLYJ:90000 ) | ||
exit_code=0 | ||
stdin_file=/dev/null | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0100000001b3807042c92f449bbf79b33ca59d7dfec7f4cc71096704a9c526dddf496ee0970100000000ffffffff01905f0100000000001976a914e60921dbfe1e066113f1c6e0ea15517234187d4788ac00000000 |