8 AFB=build/src/afb-daemon
9 HELLO=build/bindings/samples/hello3.so
12 TOKEN=knock-knock-knock
19 eval set -- $(getopt -o wgsv -l ws,gdb,strace,valgrind -- "$@") || exit
23 -w|--ws) ws=true; shift;;
24 -g|--gdb) tool=gdb; shift;;
25 -s|--strace) tool=strace; shift;;
26 -v|--valgrind) tool=valgrind; shift;;
32 gdb) cmd="$(type -p gdb) -ex run --args";;
33 valgrind) cmd="$(type -p valgrind) --leak-check=full";;
34 strace) cmd="$(type -p strace) -tt -f -o $OUT.strace";;
39 CMD="$AFB -q --no-ldpaths --binding=$HELLO --session-max=100 --ws-server=unix:@afw/hello --no-httpd --exec $cmd $AFB --session-max=100 --port=$PORT --no-ldpaths --roothttp=$TEST --token=$TOKEN --ws-client=unix:@afw/hello "
41 CMD="$cmd $AFB -q --session-max=100 --port=$PORT --workdir=$ROOT --roothttp=$TEST --token=$TOKEN --no-ldpaths --binding=$HELLO"
45 echo "launch: $CMD $@"
48 *) $CMD "$@" 2>&1 | tee $OUT;