From 08ef0c80f7f956979edabb871caf27450ac8a814 Mon Sep 17 00:00:00 2001 From: Gerhard Gonter <ggonter@gmail.com> Date: Sun, 5 Feb 2023 14:09:01 +0100 Subject: [PATCH] simple test scripts --- t-recv.sh | 4 ++++ t-send.sh | 2 ++ 2 files changed, 6 insertions(+) create mode 100755 t-recv.sh create mode 100755 t-send.sh diff --git a/t-recv.sh b/t-recv.sh new file mode 100755 index 0000000..3de3e2c --- /dev/null +++ b/t-recv.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# only receive debug messages and on channel "all" +channel=$1 || 'test' +(echo "subscribe" $channel; cat) |socat TCP-CONNECT:127.0.0.1:1986 - diff --git a/t-send.sh b/t-send.sh new file mode 100755 index 0000000..bb0021d --- /dev/null +++ b/t-send.sh @@ -0,0 +1,2 @@ +#!/bin/sh +echo "announce" $* | socat - TCP-CONNECT:127.0.0.1:1986 >/dev/null -- GitLab