gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-twister] branch master updated: launch web server an


From: gnunet
Subject: [GNUnet-SVN] [taler-twister] branch master updated: launch web server and twister in the background and kill them.
Date: Sat, 20 Jan 2018 18:38:47 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository twister.

The following commit(s) were added to refs/heads/master by this push:
     new c60febe  launch web server and twister in the background and kill them.
c60febe is described below

commit c60febea54c06fa9c867fdd602c8f16ce488d155
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat Jan 20 18:37:52 2018 +0100

    launch web server and twister in the background and
    kill them.
---
 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
index 810ce1a..5019b3d 100755
--- 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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]