irctk

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

commit e2d46daa185eabd82f46ad0b1b8d61e9d2f86044
parent 7684733a76181bfe0532bcdbcd531527600eab3a
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 12 Jul 2012 21:31:12 +0200

start to write tests

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

diff --git a/test/simple.sh b/test/simple.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +trap 'kill $(jobs -p)' EXIT + +seq 3 | sed 's/^/[#test] <out> /' > ref +cat fifo | ../irctk in@localhost \#test > heard & +PID=$! +sleep 1 +seq 3 | ../irctk out@localhost \#test +sleep 1 +kill $PID +diff ref heard