test: allow three variants in parallel with parallel make.

This means running 3 bitcoinds, which is slow enough to start on my laptop
that I need to increase the startup wait for 30 to 60 seconds, and similarly
the test.sh check loop.

Before:	real	13m42.868s
After:	real	8m19.563s (make -j3)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-11-08 21:56:55 +10:30
parent 9b045dac02
commit 8477bd5a5f
4 changed files with 50 additions and 35 deletions

View File

@@ -15,7 +15,7 @@ rm -rf $DATADIR
mkdir $DATADIR
# Find a free port (racy, but hey)
PORT=`findport 18332`
PORT=`findport 18332 $VARIANT`
RPCPORT=`findport $(($PORT + 1))`
# Create appropriate config file so cmdline matches.
@@ -29,7 +29,7 @@ EOF
$DAEMON &
i=0
while ! $CLI getinfo >/dev/null 2>&1; do
if [ $i -gt 30 ]; then
if [ $i -gt 60 ]; then
echo $DAEMON start failed? >&1
exit 1
fi