shlist

share and manage lists between multiple people
Log | Files | Refs

commit 0cee808a5f54ebd604a9227682cb48f7312ce1ed
parent c4172df9bcb0a1f4b0c9d43b9105d3618931176e
Author: kyle <kyle@getaddrinfo.net>
Date:   Tue, 16 Feb 2016 23:30:36 -0700

apnd: add test scripts

Diffstat:
Aapnd/test.sh | 6++++++
Aapnd/test_non_ios.sh | 5+++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/apnd/test.sh b/apnd/test.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +hex_token="DE2D368BB6C80E1D8BCB86D20CB6C2161BD5CEC5BA35A1E1AA0DB382849ED9B2" +json_str="{\"msg_type\":\"updated_list\",\"payload\":{},\"devices\":[[\"ios\",\"$hex_token\"]]}" + +echo "$json_str" | nc -U ../apnd.socket - diff --git a/apnd/test_non_ios.sh b/apnd/test_non_ios.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +json_str='{"msg_type":"updated_list","payload":{},"devices":[["not_ios","hex"],["android","some_token"]]}' + +echo "$json_str" | nc -U ../apnd.socket -