irctk

libircclient binding for scripts
git clone https://a3nm.net/git/irctk/
Log | Files | Refs | README

commit 4c4588a0e3c3fee0f05329ca53717ea8b75e437c
parent 35db6dbe47f673e111f3348209350dd76531346f
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 10 Mar 2015 20:39:51 +0100

add test trackl for bug fixed by 1a8e0b4e

Diffstat:
test/trackl.sh | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/test/trackl.sh b/test/trackl.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +trap 'kill $(jobs -p)' EXIT + +mkdir -p trackl +cd trackl +mkfifo fifo 2>/dev/null +mkfifo fifo2 2>/dev/null + +cat fifo | ../../irctk -u trackls@localhost \#trackl_test > fifo2 & +PID=$! +(cat fifo2 | while read l; do + echo "trackll: 1" + echo "blah"; + echo "[#trackl_test] trackll: 2"; + done >fifo) & +sleep 1 +echo "foo" | ../../irctk -F trackll@localhost \#trackl_test >heard +sleep 2 +kill $PID + +diff heard <(seq 2) +