New st-client deployment. Allow to load same stack id (accumulative services), ignori...
[anna.git] / example / diameter / launcher / DEPLOY.sh
index 3e3cbd9..e44e928 100755 (executable)
@@ -29,12 +29,13 @@ _exit () {
 }
 
 usage () {
-  echo "Usage: $0 [deployment_type: a|b|f] [deployment_path]"
+  echo "Usage: $0 [deployment_type: a|b|f|s] [deployment_path]"
   echo
   echo "       deployment_type:"
   echo "          a=advanced"
   echo "          b=basic"
   echo "          f=function test client"
+  echo "          s=system test client"
   echo "       deployment_path:"
   echo "          non-existent path directory."
   echo
@@ -42,6 +43,7 @@ usage () {
   echo "          $0 b $HOME/ADML/basicServer"
   echo "          $0 b $HOME/ADML/MMSbalancer"
   echo "          $0 f $HOME/ADML/tester"
+  echo "          $0 s $HOME/ADML/stress-client"
   echo
   exit 0
 }
@@ -54,6 +56,7 @@ createRunScript () {
   local other=
   [ "$1" = "a" ] && { exe=ADML-launcher ; other="--httpServer \`grep -v ^# .httpServer\`"; }
   [ "$1" = "f" ] && { exe=ADML-ftclient ; ln -s ADML-launcher $exe ; }
+  [ "$1" = "s" ] && { exe=ADML-stclient ; other="--disableLogs"; ln -s ADML-launcher $exe ; }
 
   echo "Creating 'run.sh' script ..."
 
@@ -151,6 +154,7 @@ then
   echo " (a)dvanced version:     includes burst management script and templates for different scenarios. Automatic configuration during start."
   echo " (b)asic version:        4 types of launcher (client, server, balancer, dummy), lightly configured and managed through SIGURS2 method."
   echo " (f)unction test client: special client with regexp scheduler script based on splitted traffic logs. Requires a server to perform the tests."
+  echo " (s)ystem test client:   special client for stress testing. Requires a server to perform the tests."
   echo
   echo "Input option [b]:"
   read option
@@ -178,6 +182,12 @@ case $option in
     DPATH_dflt=$HOME/ADML/ft-client
   ;;
 
+  s)
+    echo "ST deployment"
+    DEPLOYMENTS_DIR=deployments/st-client
+    DPATH_dflt=$HOME/ADML/st-client
+  ;;
+
   *)
     _exit "Invalid deployment type '$option' !!"
   ;;