irctk

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

commit b26b6819d04f2a19a90a8fa5a25583b7be180bd8
parent ceba613c9570d8220fc187eed5d4f66ab3a89f02
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri,  9 May 2014 19:26:40 +0200

disable track.sh differently

Diffstat:
test/track.sh | 38--------------------------------------
test/track.sh_disabled | 38++++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/test/track.sh b/test/track.sh @@ -1,38 +0,0 @@ -#!/bin/bash - -trap "kill 0" SIGINT SIGTERM EXIT - -mkdir -p track -cd track -mkfifo fifo 2>/dev/null - -(cat fifo | while read l; do seq 3 | sed -u "s/^/$l/"; done | ../../irctk -Frt trackr@localhost \#track_test >fifo) & -PID=$! -sleep 1 -cat > say <<EOF -trackr: a -/nick trackb -blah -bleh -blouh -trackr: b -/nick trackc -bleuh -blih -bloh -trackr: c -/nick trackd -grih -groh -EOF -cat say | ../../irctk -I5 -F tracka@localhost \#track_test >heard -sleep 2 -kill $PID - -for l in a b c -do - seq 3 | sed -u "s/^/$l/" > ref$l -done - -diff <(cut -d' ' -f4- heard) <(cat refa refb refc) - diff --git a/test/track.sh_disabled b/test/track.sh_disabled @@ -0,0 +1,38 @@ +#!/bin/bash + +trap "kill 0" SIGINT SIGTERM EXIT + +mkdir -p track +cd track +mkfifo fifo 2>/dev/null + +(cat fifo | while read l; do seq 3 | sed -u "s/^/$l/"; done | ../../irctk -Frt trackr@localhost \#track_test >fifo) & +PID=$! +sleep 1 +cat > say <<EOF +trackr: a +/nick trackb +blah +bleh +blouh +trackr: b +/nick trackc +bleuh +blih +bloh +trackr: c +/nick trackd +grih +groh +EOF +cat say | ../../irctk -I5 -F tracka@localhost \#track_test >heard +sleep 2 +kill $PID + +for l in a b c +do + seq 3 | sed -u "s/^/$l/" > ref$l +done + +diff <(cut -d' ' -f4- heard) <(cat refa refb refc) +