Browse Source

Make test.sh inputs script arguments.

Hardcoding my defaults isn't useful.  Even for me.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 10 years ago
parent
commit
783aa35aa6
  1. 13
      test-cli/scripts/test.sh

13
test-cli/scripts/test.sh

@ -14,12 +14,17 @@ getprivkey()
$CLI dumpprivkey $1
}
A_INPUTNUM=1
B_INPUTNUM=2
if [ $# -ne 2 ]; then
echo Usage: "INPUT1" "INPUT2" >&2
exit 1
fi
A_INPUTNUM=$1
B_INPUTNUM=$2
#A_INPUTNUM=4
#B_INPUTNUM=1
A_AMOUNT=1000000
B_AMOUNT=9795000
A_AMOUNT=100000000
B_AMOUNT=200000000
A_CHANGEADDR=`scripts/get-new-address.sh`
A_TMPADDR=`scripts/get-new-address.sh`

Loading…
Cancel
Save