coverage: Improve testing
[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 call {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
10 hello callsync {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
11 hello subcall {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
12 hello subcall {"api":"hello","verb":"subcall","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
13 hello subcallsync {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
14 hello subcallsync {"api":"hello","verb":"subcall","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
15 hello subcall {"api":"hello","verb":"subcallsync","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
16 hello subcallsync {"api":"hello","verb":"subcallsync","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
17 hello eventadd {"tag":"ev1","name":"event-A"}
18 hello eventadd {"tag":"ev2","name":"event-B"}
19 hello eventpush {"tag":"ev1","data":[1,2,"hello"]}
20 hello eventpush {"tag":"ev2","data":{"item":0}}
21 hello eventsub {"tag":"ev2"}
22 hello eventpush {"tag":"ev1","data":[1,2,"hello"]}
23 hello eventpush {"tag":"ev2","data":{"item":0}}
24 hello eventsub {"tag":"ev1"}
25 hello subcall {"api":"hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"hello"]}}
26 hello subcall {"api":"hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
27 hello subcallsync {"api":"hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"hello"]}}
28 hello subcallsync {"api":"hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
29 hello eventunsub {"tag":"ev2"}
30 hello eventpush {"tag":"ev1","data":[1,2,"hello"]}
31 hello eventpush {"tag":"ev2","data":{"item":0}}
32 hello eventdel {"tag":"ev1"}
33 hello eventpush {"tag":"ev1","data":[1,2,"hello"]}
34 hello eventpush {"tag":"ev2","data":{"item":0}}
35 hello broadcast {"name":"xev","data":"true"}
36 hello broadcast {"tag":"ev2","data":"true"}
37 hello eventdel {"tag":"ev2"}
38 hello hasperm {"perm":"some-permissison"}
39 hello appid true
40 hello uid true
41 hello set-loa 1
42 hello set-loa 3
43 hello close true
44 hello setctx "some-text-0"
45 hello setctxif "some-text-1"
46 hello getctx 
47 hello setctx "some-text-2"
48 hello getctx
49 hello info
50 hello verbose {"level":2,"message":"hello"}
51 EOC
52