X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fadml%2Fstart.sh;h=e51ddad273a5627ad3f97bdb6d5a447c5a7c3832;hb=080dc0740d8b02011dee032f5d44eeb5f2ffe23f;hp=d2b371eb875a98ecc70f25291be515560ab6db7e;hpb=d7b32ee56cf86c7702943d6afbac34c668b023ed;p=anna.git diff --git a/example/diameter/launcher/deployments/adml/start.sh b/example/diameter/launcher/deployments/adml/start.sh index d2b371e..e51ddad 100755 --- a/example/diameter/launcher/deployments/adml/start.sh +++ b/example/diameter/launcher/deployments/adml/start.sh @@ -1,5 +1,5 @@ #!/bin/bash -# $1: args type could be 'ft' (function test) or 'st' (system test). By default: ft +# $1: args type could be 'ft' (function test) or 'st' (system test), or 'help' to get the command line help. By default: ft function pgrep_live { pids=$(pgrep "$1"); [ "$pids" ] || return; @@ -11,11 +11,14 @@ ARGS=args.$1 STARTED=`pgrep_live ADML` [ -n "$STARTED" ] && { echo "Already started !"; echo "PID $STARTED" ; exit 1 ; } 0> launcher.trace +0> ADML.output for file in `ls *.launcher.log 2>/dev/null`; do 0> $file; done mkdir -p counters test-reports rm -f counters/* test-reports/* *.csv export LD_LIBRARY_PATH=$PWD/dynlibs -eval ./ADML `grep -v ^# $ARGS` & +args=$(eval echo $(grep -v ^# $ARGS)) +#ulimit -c unlimited +./ADML ${args} > ADML.output & echo $! > .pid echo "Done !"