Remove operation help.
[anna.git] / example / diameter / launcher / deploy.sh
index 766273a..f685bf0 100755 (executable)
@@ -41,10 +41,10 @@ usage () {
   echo
   exit 0
 }
+
 # $1: deployment type
 createRunScript () {
-  # Basic launcher 'run.sh' will be created at deployment configuration: 
+  # Basic launcher 'run.sh' will be created at deployment configuration:
   [ "$1" = "b" ] && return
 
   local other=
@@ -67,6 +67,7 @@ rm -f counters/* test-reports/*
 export LD_LIBRARY_PATH=\$PWD/dynlibs
 ./\$EXE --services services.xml --cntDir counters --tmDir test-reports $other &
 echo \$! > .pid
+renice -n 5 -p \$(cat .pid)
 EOF
 
   chmod a+x run.sh
@@ -94,8 +95,8 @@ BIN_DIR=$PROJECT_ROOT/build/$VARIANT/bin
 LIB_DIR=$PROJECT_ROOT/build/$VARIANT/lib
 
 # Main executables:
-ADML_EXEC=$BIN_DIR/diameter_launcher
-STACKMGMT_EXEC=$BIN_DIR/diameter_stackManagement
+ADML_EXEC=$BIN_DIR/anna_diameter_launcher
+STACKMGMT_EXEC=$BIN_DIR/anna_diameter_stackManagement
 
 [ ! -d $SETUPS_DIR ] && _exit "Diameter stacks not found ($SETUPS_DIR)."
 
@@ -168,6 +169,7 @@ mkdir -p $DPATH/test-reports
 
 # Dynamic libs:
 cp -r $LIB_DIR/dynamic/launcher $DPATH/dynlibs
+cp $LIB_DIR/libanna_testing_shared.so $DPATH/dynlibs
 
 # Get stuff from leaf directories:
 cd $LIB_DIR/dynamic/launcher
@@ -188,7 +190,7 @@ cp $SCR_DIR/resources/scripts/select_dynlib.sh $DPATH/dynlibs/select.sh
 
 # Default dynamic library:
 cd $DPATH/dynlibs
-ln -s default/liblauncher_procedure_default_shared.so
+ln -s default/libanna_launcher_procedure_default_shared.so
 cd - >/dev/null
 
 # Basic setup:
@@ -207,6 +209,7 @@ cp $SRVDTD $DPATH/DTDs
 [ "$option" = "b" ] && cp $SERVICES/* $DPATH/services
 cp $SCRIPTS/clone.sh $DPATH
 cp $SCRIPTS/tinyTestcase.sh $DPATH
+cp $SCR_DIR/resources/HELP.md $DPATH
 
 # Copy executables:
 cp $ADML_EXEC $DPATH/ADML
@@ -222,7 +225,7 @@ cd - >/dev/null
 if [ "$option" = "s" ]
 then
   cd $DPATH
-  ln -s services_example services
+  #ln -s services_example services
   mv run.sh .run-one.sh
   mv run_all.sh run.sh
   mv operation.sh .operation-one.sh