aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_prepare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/test_prepare.sh')
-rwxr-xr-xsrc/testing/test_prepare.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/testing/test_prepare.sh b/src/testing/test_prepare.sh
index 2c9191c..202342d 100755
--- a/src/testing/test_prepare.sh
+++ b/src/testing/test_prepare.sh
@@ -22,6 +22,7 @@ function cleanup()
22{ 22{
23 for n in `jobs -p` 23 for n in `jobs -p`
24 do 24 do
25 kill -SIGCONT $n # in case one provider was suspended
25 kill $n 2> /dev/null || true 26 kill $n 2> /dev/null || true
26 done 27 done
27 rm -rf $CONF $CONF_4 $WALLET_DB $R1FILE $R2FILE $B1FILE $B2FILE $TMP_DIR 28 rm -rf $CONF $CONF_4 $WALLET_DB $R1FILE $R2FILE $B1FILE $B2FILE $TMP_DIR
@@ -394,10 +395,17 @@ echo -n "Launching anastasis services ..."
394# PREFIX="valgrind --log-file=anastasis-httpd.%p.log" 395# PREFIX="valgrind --log-file=anastasis-httpd.%p.log"
395PREFIX="" 396PREFIX=""
396$PREFIX anastasis-httpd -L INFO -c $CONF_1 2> anastasis-httpd_1.log & 397$PREFIX anastasis-httpd -L INFO -c $CONF_1 2> anastasis-httpd_1.log &
398PPID_1=$!
397$PREFIX anastasis-httpd -L INFO -c $CONF_2 2> anastasis-httpd_2.log & 399$PREFIX anastasis-httpd -L INFO -c $CONF_2 2> anastasis-httpd_2.log &
400PPID_2=$!
398$PREFIX anastasis-httpd -L INFO -c $CONF_3 2> anastasis-httpd_3.log & 401$PREFIX anastasis-httpd -L INFO -c $CONF_3 2> anastasis-httpd_3.log &
402PPID_3=$!
399$PREFIX anastasis-httpd -L INFO -c $CONF_4 2> anastasis-httpd_4.log & 403$PREFIX anastasis-httpd -L INFO -c $CONF_4 2> anastasis-httpd_4.log &
400 404PPID_4=$!
405export PPID_1
406export PPID_2
407export PPID_3
408export PPID_4
401 409
402if test $1 = 'fees' 410if test $1 = 'fees'
403then 411then
@@ -548,6 +556,8 @@ then
548 export WALLET_DB 556 export WALLET_DB
549fi 557fi
550 558
559echo '- use kill -SIGSTOP $PPID_$NUM ($NUM: 1-4) to suspend providers'
560
551bash 561bash
552 562
553exit 0 563exit 0