From 09010fa0093bee944738b728bf3277961d9bd6d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Wed, 12 Apr 2017 17:56:10 +0200 Subject: [PATCH] add argument to stress-server.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I75fccf6c9b5c37c7548019e510f7c3281a5cd664 Signed-off-by: José Bollo --- stress-server.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stress-server.sh b/stress-server.sh index 16a376e3..a0d83fd9 100755 --- a/stress-server.sh +++ b/stress-server.sh @@ -16,10 +16,10 @@ ARGS="-q --session-max=100 --port=$PORT --workdir=$ROOT --roothttp=$TEST --token echo -n launch afb... case "$1" in - gdb) gdb $AFB -ex "run $ARGS";; - valgrind) valgrind --leak-check=full $AFB $ARGS 2>&1 | tee $OUT;; - strace) strace -tt -f -o $OUT.strace $AFB $ARGS 2>&1 | tee $OUT;; - *) $AFB $ARGS 2>&1 | tee $OUT;; + gdb) shift; gdb $AFB -ex "run $ARGS $@";; + valgrind) shift; valgrind --leak-check=full $AFB $ARGS $@ 2>&1 | tee $OUT;; + strace) shift; strace -tt -f -o $OUT.strace $AFB $ARGS $@ 2>&1 | tee $OUT;; + *) $AFB $ARGS $@ 2>&1 | tee $OUT;; esac #$AFB -q --session-max=100 --port=$PORT --workdir=$ROOT --roothttp=$TEST --token=$TOKEN --ldpaths=/tmp --binding=$HELLO > $OUT.0 2>&1 & #afbpid=$! -- 2.16.6