mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
daemon/test: use config file rather than long cli args.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
4bbb86ae30
commit
faed0ef736
@ -172,18 +172,33 @@ all_ok()
|
||||
|
||||
trap "echo Results in $DIR1 and $DIR2 >&2; cat $DIR1/errors $DIR2/errors >&2" EXIT
|
||||
mkdir $DIR1 $DIR2
|
||||
|
||||
cat > $DIR1/config <<EOF
|
||||
log-level=debug
|
||||
bitcoind-poll=1
|
||||
min-expiry=900
|
||||
bitcoin-datadir=$DATADIR
|
||||
EOF
|
||||
|
||||
cat > $DIR2/config <<EOF
|
||||
log-level=debug
|
||||
bitcoind-poll=1
|
||||
min-expiry=900
|
||||
bitcoin-datadir=$DATADIR
|
||||
EOF
|
||||
|
||||
if [ -n "$GDB1" ]; then
|
||||
echo Press return once you run: gdb --args daemon/lightningd --log-level=debug --bitcoind-poll=1 --min-expiry=900 --lightning-dir=$DIR1 --bitcoin-datadir=$DATADIR
|
||||
echo Press return once you run: gdb --args daemon/lightningd --lightning-dir=$DIR1 >&2
|
||||
read REPLY
|
||||
else
|
||||
$PREFIX ../lightningd --log-level=debug --bitcoind-poll=1 --min-expiry=900 --lightning-dir=$DIR1 --bitcoin-datadir=$DATADIR > $REDIR1 2> $REDIRERR1 &
|
||||
$PREFIX ../lightningd --lightning-dir=$DIR1 > $REDIR1 2> $REDIRERR1 &
|
||||
fi
|
||||
|
||||
if [ -n "$GDB2" ]; then
|
||||
echo Press return once you run: gdb --args daemon/lightningd --log-level=debug --bitcoind-poll=1 --min-expiry=900 --lightning-dir=$DIR2 --bitcoin-datadir=$DATADIR
|
||||
echo Press return once you run: gdb --args daemon/lightningd --lightning-dir=$DIR2 >&2
|
||||
read REPLY
|
||||
else
|
||||
$PREFIX ../lightningd --log-level=debug --bitcoind-poll=1 --min-expiry=900 --lightning-dir=$DIR2 --bitcoin-datadir=$DATADIR > $REDIR2 2> $REDIRERR2 &
|
||||
$PREFIX ../lightningd --lightning-dir=$DIR2 > $REDIR2 2> $REDIRERR2 &
|
||||
fi
|
||||
|
||||
i=0
|
||||
|
Loading…
Reference in New Issue
Block a user