diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-06-22 18:30:43 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-06-22 18:30:43 +0200 |
commit | 57e09344b57d98515bf02165e0e33a1d43134af0 (patch) | |
tree | e135a770ca7d0357c3d3ef9c25b2987fa30681ab /coverage/scripts/03-x-hello.sh | |
parent | 1f9e60c26a10bc4232b4827e85235dafcee17120 (diff) |
coverage: Add coverage testflounder_5.99.1flounder/5.99.15.99.1
This is a first version of the coverage tests.
Change-Id: Iec2feaba12c369b2ff5fb82e246fa0cad87813f5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'coverage/scripts/03-x-hello.sh')
-rwxr-xr-x | coverage/scripts/03-x-hello.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/coverage/scripts/03-x-hello.sh b/coverage/scripts/03-x-hello.sh new file mode 100755 index 00000000..9d3726e4 --- /dev/null +++ b/coverage/scripts/03-x-hello.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +$R/bin/afb-client -s -e $WSURL <<EOC +x-hello ping true +x-HELLO PING false +x-hello pIngNull true +x-hello PingBug true +x-hello PiNgJsOn {"well":"formed","json":[1,2,3,4.5,true,false,null,"oups"]} +x-hello subcall {"api":"x-hello","verb":"pingjson","args":[{"key1":"value1"}]} +x-hello subcall {"api":"x-hello","verb":"subcall","args":{"api":"x-hello","verb":"pingjson","args":[{"key1":"value1"}]}} +x-hello subcallsync {"api":"x-hello","verb":"pingjson","args":[{"key1":"value1"}]} +x-hello subcallsync {"api":"x-hello","verb":"subcall","args":{"api":"x-hello","verb":"pingjson","args":[{"key1":"value1"}]}} +x-hello subcall {"api":"x-hello","verb":"subcallsync","args":{"api":"x-hello","verb":"pingjson","args":[{"key1":"value1"}]}} +x-hello subcallsync {"api":"x-hello","verb":"subcallsync","args":{"api":"x-hello","verb":"pingjson","args":[{"key1":"value1"}]}} +x-hello eventadd {"tag":"ev1","name":"event-A"} +x-hello eventadd {"tag":"ev2","name":"event-B"} +x-hello eventpush {"tag":"ev1","data":[1,2,"x-hello"]} +x-hello eventpush {"tag":"ev2","data":{"item":0}} +x-hello eventsub {"tag":"ev2"} +x-hello eventpush {"tag":"ev1","data":[1,2,"x-hello"]} +x-hello eventpush {"tag":"ev2","data":{"item":0}} +x-hello eventsub {"tag":"ev1"} +x-hello subcall {"api":"x-hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"x-hello"]}} +x-hello subcall {"api":"x-hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}} +x-hello subcallsync {"api":"x-hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"x-hello"]}} +x-hello subcallsync {"api":"x-hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}} +x-hello eventunsub {"tag":"ev2"} +x-hello eventpush {"tag":"ev1","data":[1,2,"x-hello"]} +x-hello eventpush {"tag":"ev2","data":{"item":0}} +x-hello eventdel {"tag":"ev1"} +x-hello eventpush {"tag":"ev1","data":[1,2,"x-hello"]} +x-hello eventpush {"tag":"ev2","data":{"item":0}} +x-hello eventdel {"tag":"ev2"} +EOC + |