X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=stress-server.sh;h=643c8990c88f3d42d8c10f552689a1c719cfb3fb;hb=61a01510306f60422df3cd3e67513d3c7b585524;hp=31fce9f61f3d1f0cd8115aebdfabe4fecd2669bb;hpb=9991f9f55b6b77bf89a9e2cec84280d0c9c0b2cd;p=src%2Fapp-framework-binder.git diff --git a/stress-server.sh b/stress-server.sh index 31fce9f6..643c8990 100755 --- a/stress-server.sh +++ b/stress-server.sh @@ -1,15 +1,15 @@ #!/bin/bash ROOT=$(dirname $0) +cd ${ROOT:-.} +ROOT=$(pwd) echo ROOT=$ROOT -cd $ROOT - AFB=build/src/afb-daemon HELLO=build/bindings/samples/helloWorld.so PORT=12345 TEST=test -TOKEN=knock-knock-knoc +TOKEN=knock-knock-knock OUT=stress-out-server rm $OUT* @@ -17,8 +17,8 @@ rm $OUT* case "$1" in --ws) shift - ARGS="-q --ldpaths=/tmp --binding=$HELLO --session-max=100 --ws-server=unix:hello --no-httpd --exec $AFB --session-max=100 --port=$PORT --ldpaths=/tmp --roothttp=$TEST --token=$TOKEN --ws-client=unix:hello " -# ARGS="-vv --tracereq=all --ldpaths=/tmp --binding=$HELLO --session-max=100 --ws-server=unix:hello --no-httpd --exec $AFB --session-max=100 --port=$PORT --ldpaths=/tmp --roothttp=$TEST --token=$TOKEN --ws-client=unix:hello " + ARGS="-q --no-ldpaths --binding=$HELLO --session-max=100 --ws-server=unix:@afw:hello --no-httpd --exec $AFB --session-max=100 --port=$PORT --no-ldpaths --roothttp=$TEST --token=$TOKEN --ws-client=unix:@afw:hello " +# ARGS="$ARGS -vvv --tracereq=all" ;; *) ARGS="-q --session-max=100 --port=$PORT --workdir=$ROOT --roothttp=$TEST --token=$TOKEN --ldpaths=/tmp --binding=$HELLO" @@ -26,6 +26,7 @@ case "$1" in esac +echo $AFB $ARGS $@ echo -n launch afb... case "$1" in gdb) shift; gdb $AFB -ex "run $ARGS $@";;