Dynamic lib selection and deployment
[anna.git] / example / diameter / launcher / deployments / basic / configure.sh
index 07ee3b1..f03eca7 100755 (executable)
@@ -24,11 +24,12 @@ createRunScript () {
   cat << EOF > run.sh
 #!/bin/bash
 cd \`dirname \$0\`
-STARTED=\`pgrep $1 2>/dev/null\`
+STARTED=\`pgrep $1$ 2>/dev/null\`
 [ \$? -eq 0 ] && { echo "Already started!"; echo "\$STARTED" ; exit 1 ; }
 0> launcher.trace
-rm -f counters/*
+rm -f counters/* test-reports/*
 # Execution line:
+export LD_LIBRARY_PATH=\$PWD/dynlibs
 ./$@ --services services.xml &
 echo \$! > .pid
 EOF
@@ -62,7 +63,7 @@ tol=$(get_tol $option)
 ln -sf services/${tol}.xml services.xml
 
 # Tracing
-DEBUG="--cntDir counters"
+DEBUG="--cntDir counters --tmDir test-reports"
 echo
 echo "Enable debug traces ? (y/n) [n]:"
 read enable
@@ -88,7 +89,7 @@ then
 fi
 
 # Run script:
-EXE_LINK=ADML-$tol
+EXE_LINK=`basename $PWD`
 ln -sf $EXE_BN $EXE_LINK
 
 case $tol in