improvs.
authorEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Fri, 28 Oct 2016 22:17:40 +0000 (00:17 +0200)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Fri, 28 Oct 2016 22:17:40 +0000 (00:17 +0200)
dynamic/launcher/gx/00001/dynamic.suffix
example/diameter/launcher/deployments/st-client/program.sh
example/diameter/launcher/deployments/st-client/run_all.sh

index c39ba94..97afc7f 100644 (file)
 #  not processed here (not neccessary because reception conditions are enough to block
 #  the flow when something is wrong). Anyway, you could check ADML counters executing
 #  the command: ./operation show-oam
+# The main problem with a zeroed first timeout step, is that cycle repeats are not
+#  possible except if you reset the pool (hard reset) when close to finish, something
+#  very dificult to monitor.
 
 # Only CCR-Initial:
-0|7|CCR-I.xml
+5000|7|CCR-I.xml
 
 # CCR-Initial + CCR-Termination:
-0|7|CCR-I.xml|CCR-T.xml
+5000|7|CCR-I.xml|CCR-T.xml
index 54b99ae..b000f8d 100755 (executable)
@@ -14,9 +14,7 @@ PROGRAM_LAYOUT_FILE=.st_conf_n_testcases_program_layout
 # FUNCTIONS #
 #############
 _exit() {
-  echo
-  echo $1
-  echo
+  echo -e "\n$1\n"
   exit 1
 }
 
@@ -183,7 +181,7 @@ else
   TESTCASE_DIR=$(readlink -f dynlibs/libanna_dynamicLauncherProcedure.so | xargs dirname)
   DYNAMIC_SUFFIX_FILE=$TESTCASE_DIR/dynamic.suffix
 
-  [ ! -f $DYNAMIC_SUFFIX_FILE ] && _exit "Missing '$DYNAMIC_SUFFIX_FILE' file. Use 'dynlibs/select.sh' to change the dynamic procedure and restart the ADML instances."
+  [ ! -f $DYNAMIC_SUFFIX_FILE ] && _exit "Missing '$DYNAMIC_SUFFIX_FILE' file.\nUse 'dynlibs/select.sh' to change the dynamic procedure and restart the ADML instances."
   dynamic_suffix=( $(grep -v ^# $DYNAMIC_SUFFIX_FILE) )
 
   # Multiple scenarios:
@@ -206,11 +204,20 @@ else
     done > $tmpfile
     cat $tmpfile
     echo
-    echo "Select the desired option:"
+    echo "Select the desired option (0 to input a user defined one):"
     read option
     while [ -z "$option" ]; do read option ; done
-    dynamic_suffix=$(grep "^${option}) " $tmpfile | cut -d" " -f2-)
-    [ -z "$dynamic_suffix" ] && _exit "Invalid option !"
+    if [ "$option" != "0" ]
+    then
+      dynamic_suffix=$(grep "^${option}) " $tmpfile | cut -d" " -f2-)
+      [ -z "$dynamic_suffix" ] && _exit "Invalid option !"
+    else
+      echo "Input specific program arguments:"
+      echo " (be sure that are supported by the dynamic procedure)"
+      echo
+      read dynamic_suffix
+      while [ -z "$dynamic_suffix" ]; do read dynamic_suffix ; done
+    fi
   fi
 
   # Modify xml files path:
index 7849166..73d8a16 100755 (executable)
@@ -21,6 +21,8 @@ done
 echo
 wait $(jobs -p)
 
+sleep 3
+
 cat << EOF
      $(pgrep ADML- | wc -l) instances alive !
      $(netstat -a | grep :diameter | grep ESTABLISHED | wc -l) connections established !