579a3f06c981ccb715a40652875ad29678b28368
[src/app-framework-binder.git] / coverage / scripts / 02-hello.sh
1 #!/bin/sh
2
3 $R/bin/afb-client -s -e $WSURL <<EOC
4 hello ping true
5 HELLO PING false
6 hello pIngNull true
7 hello PingBug true
8 hello PiNgJsOn {"well":"formed","json":[1,2,3,4.5,true,false,null,"oups"]}
9 hello subcall {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
10 hello subcall {"api":"hello","verb":"subcall","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
11 hello subcallsync {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
12 hello subcallsync {"api":"hello","verb":"subcall","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
13 hello subcall {"api":"hello","verb":"subcallsync","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
14 hello subcallsync {"api":"hello","verb":"subcallsync","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
15 hello eventadd {"tag":"ev1","name":"event-A"}
16 hello eventadd {"tag":"ev2","name":"event-B"}
17 hello eventpush {"tag":"ev1","data":[1,2,"hello"]}
18 hello eventpush {"tag":"ev2","data":{"item":0}}
19 hello eventsub {"tag":"ev2"}
20 hello eventpush {"tag":"ev1","data":[1,2,"hello"]}
21 hello eventpush {"tag":"ev2","data":{"item":0}}
22 hello eventsub {"tag":"ev1"}
23 hello subcall {"api":"hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"hello"]}}
24 hello subcall {"api":"hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
25 hello subcallsync {"api":"hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"hello"]}}
26 hello subcallsync {"api":"hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
27 hello eventunsub {"tag":"ev2"}
28 hello eventpush {"tag":"ev1","data":[1,2,"hello"]}
29 hello eventpush {"tag":"ev2","data":{"item":0}}
30 hello eventdel {"tag":"ev1"}
31 hello eventpush {"tag":"ev1","data":[1,2,"hello"]}
32 hello eventpush {"tag":"ev2","data":{"item":0}}
33 hello broadcast {"name":"xev","data":"true"}
34 hello broadcast {"tag":"ev2","data":"true"}
35 hello eventdel {"tag":"ev2"}
36 hello hasperm {"perm":"some-permissison"}
37 hello appid true
38 hello uid true
39 hello set-loa 1
40 hello set-loa 3
41 hello close true
42 hello setctx "some-text-0"
43 hello setctxif "some-text-1"
44 hello getctx 
45 hello setctx "some-text-2"
46 hello getctx
47 hello info
48 hello verbose {"level":2,"message":"hello"}
49 EOC
50