aboutsummaryrefslogtreecommitdiffstats
path: root/coverage/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/scripts')
-rw-r--r--coverage/scripts/07-inet.sh35
-rwxr-xr-xcoverage/scripts/run-test.sh2
2 files changed, 37 insertions, 0 deletions
diff --git a/coverage/scripts/07-inet.sh b/coverage/scripts/07-inet.sh
new file mode 100644
index 00000000..f4e8a297
--- /dev/null
+++ b/coverage/scripts/07-inet.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+$R/bin/afb-client -s -e $WSURL <<EOC
+salut2 ping true
+SALUT2 PING false
+salut2 pIngNull true
+salut2 PingBug true
+salut2 PiNgJsOn {"well":"formed","json":[1,2,3,4.5,true,false,null,"oups"]}
+salut2 subcall {"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}
+salut2 subcall {"api":"salut2","verb":"subcall","args":{"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}}
+salut2 subcallsync {"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}
+salut2 subcallsync {"api":"salut2","verb":"subcall","args":{"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}}
+salut2 subcall {"api":"salut2","verb":"subcallsync","args":{"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}}
+salut2 subcallsync {"api":"salut2","verb":"subcallsync","args":{"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}}
+salut2 eventadd {"tag":"ev1","name":"event-A"}
+salut2 eventadd {"tag":"ev2","name":"event-B"}
+salut2 eventpush {"tag":"ev1","data":[1,2,"salut2"]}
+salut2 eventpush {"tag":"ev2","data":{"item":0}}
+salut2 eventsub {"tag":"ev2"}
+salut2 eventpush {"tag":"ev1","data":[1,2,"salut2"]}
+salut2 eventpush {"tag":"ev2","data":{"item":0}}
+salut2 eventsub {"tag":"ev1"}
+salut2 subcall {"api":"salut2","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"salut2"]}}
+salut2 subcall {"api":"salut2","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
+salut2 subcallsync {"api":"salut2","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"salut2"]}}
+salut2 subcallsync {"api":"salut2","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
+salut2 eventunsub {"tag":"ev2"}
+salut2 eventpush {"tag":"ev1","data":[1,2,"salut2"]}
+salut2 eventpush {"tag":"ev2","data":{"item":0}}
+salut2 eventdel {"tag":"ev1"}
+salut2 eventpush {"tag":"ev1","data":[1,2,"salut2"]}
+salut2 eventpush {"tag":"ev2","data":{"item":0}}
+salut2 eventdel {"tag":"ev2"}
+EOC
+
diff --git a/coverage/scripts/run-test.sh b/coverage/scripts/run-test.sh
index bac4da5e..caaec79f 100755
--- a/coverage/scripts/run-test.sh
+++ b/coverage/scripts/run-test.sh
@@ -108,6 +108,8 @@ $R/bin/afb-daemon-cov \
--call demat/ping:true \
--ws-server unix:$R/apis/ws/hello \
--ws-server unix:$R/apis/ws/salut \
+ --ws-server localhost:9595/salut \
+ --ws-client localhost:9595/salut2 \
--exec $R/scripts/run-parts.sh @p @t
exit 0