commit c60febea54c06fa9c867fdd602c8f16ce488d155 parent cb863f824e2fa491a76cbb91bf539e1dfa48197b Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Sat, 20 Jan 2018 18:37:52 +0100 launch web server and twister in the background and kill them. Diffstat:
| M | src/test/test_twister.sh | | | 14 | +++++++++++--- |
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/test/test_twister.sh b/src/test/test_twister.sh @@ -4,18 +4,26 @@ # 1) Launch the Web server. ./test_twister_webserver & +web_server_pid=$! # 2) Launch the Twister. + +taler-twister-service -c ./test_twister.conf & +twister_service_pid=$! + # 3) Use the Twister-APIs via the C-L tool. # 4) Use curl to GET /something -status_code=$(curl -s http://localhost:8080/ -o /dev/null \ +status_code=$(curl -s http://localhost:8888/ -o /dev/null \ -w "%{http_code}") echo $status_code # 5) Check the HTTP status code is the hacked! -kill %1 -# shutdown webserver + +# shutdown twister and webserver + +kill $web_server_pid +kill $twister_service_pid