X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=stress-server.sh;h=35b7ac48e17249b9efab7f31e577358d91042a0d;hb=01534912a8e32468b62d848ec1fe23004df1dd19;hp=a0d83fd9e59d39fd37d46858ccaf0783530be7f3;hpb=09010fa0093bee944738b728bf3277961d9bd6d7;p=src%2Fapp-framework-binder.git diff --git a/stress-server.sh b/stress-server.sh index a0d83fd9..35b7ac48 100755 --- a/stress-server.sh +++ b/stress-server.sh @@ -3,17 +3,31 @@ ROOT=$(dirname $0) echo ROOT=$ROOT -AFB=$ROOT/build/src/afb-daemon +cd $ROOT +pwd + +AFB=build/src/afb-daemon HELLO=build/bindings/samples/helloWorld.so PORT=12345 TEST=test -TOKEN=knock-knock-knoc -OUT=$ROOT/stress-out-server +TOKEN=knock-knock-knock +OUT=stress-out-server rm $OUT* -ARGS="-q --session-max=100 --port=$PORT --workdir=$ROOT --roothttp=$TEST --token=$TOKEN --ldpaths=/tmp --binding=$HELLO" +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 --session-max=100 --port=$PORT --workdir=$ROOT --roothttp=$TEST --token=$TOKEN --ldpaths=/tmp --binding=$HELLO" + ;; +esac + +echo $AFB $ARGS $@ echo -n launch afb... case "$1" in gdb) shift; gdb $AFB -ex "run $ARGS $@";;