X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=staging%2Fsoundmanager.git;a=blobdiff_plain;f=test%2Fcall-sm-binding-method_test.sh;fp=test%2Fcall-sm-binding-method_test.sh;h=e3f11390b132280223ed4bfae0776e72616a1b6e;hp=0000000000000000000000000000000000000000;hb=2e602801b372b0b68111316b89f567213e3ea378;hpb=f743c3428f41b8d127e538ea8a6505a0c882cdb2 diff --git a/test/call-sm-binding-method_test.sh b/test/call-sm-binding-method_test.sh new file mode 100755 index 0000000..e3f1139 --- /dev/null +++ b/test/call-sm-binding-method_test.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +echo "please call method after launch afb-client-demo" +echo " # ./sm-binding-test.sh" +echo "To get soundmanager api " +echo "example) monitor get {\"apis\":[\"monitor\"]}" +echo "example) soundmanager disconnect {\"mainConnectionID\":1}" +port=12345 +token=123456 +if test $1;then +port=$1 +fi +if test $2; then +token=$2 +fi +afb-client-demo ws://localhost:${port}/api?token=${token} +