[IRC-Dev CVS] [CVS] Module ircd-ircdev: Change committed
Brought to you by:
zolty
From: Toni G. <zo...@us...> - 2005-05-31 11:11:22
|
CVSROOT : /cvsroot/irc-dev Module : ircd-ircdev Commit time: 2005-05-31 11:11:12 UTC Modified files: ircd/test/Makefile.in ircd/test/channel-1.cmd ircd/test/client-1.cmd ircd/test/gline-1.cmd ircd/test/ircd-t1.conf ircd/test/run-tests.sh ircd/test/stats-1.cmd ircd/test/test-driver.pl ircd/test/test_stub.c Added files: ircd/test/commands-1.cmd ircd/test/feature-1.cmd ircd/test/ircd-t1-2.conf ircd/test/ircd-t2.conf ircd/test/ircd_match_t.c ircd/test/jupe-1.cmd ircd/test/kill-block-1.cmd Log message: Nuevos tests ---------------------- diff included ---------------------- Index: ircd-ircdev/ircd/test/Makefile.in diff -u ircd-ircdev/ircd/test/Makefile.in:1.3 ircd-ircdev/ircd/test/Makefile.in:1.4 --- ircd-ircdev/ircd/test/Makefile.in:1.3 Wed Jan 26 09:19:48 2005 +++ ircd-ircdev/ircd/test/Makefile.in Tue May 31 04:10:52 2005 @@ -18,7 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA -# $Id: Makefile.in,v 1.3 2005/01/26 17:19:48 zolty Exp $ +# $Id: Makefile.in,v 1.4 2005/05/31 11:10:52 zolty Exp $ top_srcdir = @top_srcdir@ srcdir = @srcdir@ @@ -29,12 +29,14 @@ TESTPROGS = \ ircd_chattr_t \ - ircd_string_t \ ircd_in_addr_t + ircd_match_t \ + ircd_string_t DEP_SRC = \ ircd_chattr_t.c \ ircd_in_addr_t.c \ + ircd_match_t.c \ ircd_string_t.c \ test_stub.c @@ -56,15 +58,19 @@ IRCD_CHATTR_T_OBJS = ircd_chattr_t.o test_stub.o ../ircd_string.o ircd_chattr_t: $(IRCD_CHATTR_T_OBJS) - ${CC} -o $@ $(IRCD_CHATTR_T_OBJS) - -IRCD_STRING_T_OBJS = ircd_string_t.o test_stub.o ../ircd_string.o -ircd_string_t: $(IRCD_STRING_T_OBJS) - ${CC} -o $@ $(IRCD_STRING_T_OBJS) + ${CC} -o $@ $(LDFLAGS) $(IRCD_CHATTR_T_OBJS) IRCD_IN_ADDR_T_OBJS = ircd_in_addr_t.o test_stub.o ../ircd_alloc.o ../ircd_string.o ../match.o ../numnicks.o ircd_in_addr_t: $(IRCD_IN_ADDR_T_OBJS) - ${CC} -o $@ $(IRCD_IN_ADDR_T_OBJS) + ${CC} -o $@ $(LDFLAGS) $(IRCD_IN_ADDR_T_OBJS) + +IRCD_MATCH_T_OBJS = ircd_match_t.o test_stub.o ../ircd_string.o ../match.o +ircd_match_t: $(IRCD_MATCH_T_OBJS) + ${CC} -o $@ $(LDFLAGS) $(IRCD_MATCH_T_OBJS) + +IRCD_STRING_T_OBJS = ircd_string_t.o test_stub.o ../ircd_string.o +ircd_string_t: $(IRCD_STRING_T_OBJS) + ${CC} -o $@ $(LDFLAGS) $(IRCD_STRING_T_OBJS) .c.o: ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@ Index: ircd-ircdev/ircd/test/channel-1.cmd diff -u ircd-ircdev/ircd/test/channel-1.cmd:1.1 ircd-ircdev/ircd/test/channel-1.cmd:1.2 --- ircd-ircdev/ircd/test/channel-1.cmd:1.1 Mon May 16 04:31:20 2005 +++ ircd-ircdev/ircd/test/channel-1.cmd Tue May 31 04:11:01 2005 @@ -1,29 +1,50 @@ -define srv localhost:7701 +define srv localhost -connect cl1 Alex alex %srv% :Test client 1 -connect cl2 Bubb bubb %srv% :Test client 2 +connect cl1 Alex alex %srv%:7701 :Test client 1 +connect cl2 Bubb bubb %srv%:7711 :Test client 2 :cl1 join #test :cl1 join #test2 :cl1 mode #test +bb *!*@127.0.0.1 *!*@127.0.0.2 :cl2 wait cl1 -:cl2 join #test -:cl1 wait cl2 +:cl2 raw :away :I'm not here, go away. I'm not here, go away. I'm not here, go away. I'm not here, go away. I'm not here, go away. I'm not here, go away. I'm not here, go away. I'm not here, go away. I'm not here, go away. I'm not here, go away. +:cl2 raw :away :I'm not here, go away. +:cl2 join #test,#test3,#test4,+local +:cl1 wait cl2 +:cl1 join #test3 +:cl1 raw :invite Bubb +:cl1 raw :invite #test +:cl1 invite Bubb #non-existent-channel +:cl1 invite Bubb #test3 +:cl1 invite Bubb #test4 :cl1 invite Bubb #test :cl2 expect *cl1 invite #test +:cl2 mode #test3 +o Alex +:cl2 raw :invite :cl2 join #test :cl2 privmsg #test :Hello, *cl1. +:cl2 notice #test :Hello, *cl1 (via notice). +:cl2 notice @#test :Hello, *cl1 (via wallchops). +:cl2 privmsg #test5 :Hello, *cl1. :cl2 nick Buba :cl2 mode #test +l 15 :cl1 wait cl2 :cl1 privmsg #test :Hello, *cl2. +:cl1 raw :cprivmsg bubb #test :Hello, bubb. +:cl1 raw :cnotice bubb #test :Hello, bubb. :cl1 mode #test -b+kv *!*@127.0.0.1 secret Bubb :cl1 mode #test +b foo!bar@baz :cl1 mode #test +b :cl1 mode #test : :cl1 mode #test -:cl1 raw who #test %lfuh +:cl1 raw :names +:cl1 raw :names #test +:cl1 raw :names +local +:cl1 raw :names +local test-2.* +:cl1 raw :who #test %lfuh :cl2 wait cl1 +:cl2 raw :part :cl2 part #test +:cl2 part #test5 :cl1 wait cl2 :cl2 join #test public :cl2 join #test secret @@ -45,4 +66,9 @@ :cl2 wait cl1 :cl2 mode #test2 -D :cl2 mode #test +v Alex +:cl1 raw :kick #test bubb +:cl2 raw :squit test-1.* +:cl2 sleep 1 +:cl2 raw :connect test-1.* +:cl2 raw :away : :cl1 wait cl2 Index: ircd-ircdev/ircd/test/client-1.cmd diff -u ircd-ircdev/ircd/test/client-1.cmd:1.1 ircd-ircdev/ircd/test/client-1.cmd:1.2 --- ircd-ircdev/ircd/test/client-1.cmd:1.1 Mon May 16 04:31:20 2005 +++ ircd-ircdev/ircd/test/client-1.cmd Tue May 31 04:11:01 2005 @@ -1,9 +1,12 @@ -define srv localhost:7701 +define srv localhost -connect cl1 Alex alex %srv% :Test client 1 +connect cl1 Alex alex %srv%:7701 :Test client 1 :cl1 oper oper1 oper1 -connect cl2 Bubb bubb %srv% :Test client 2 +:cl1 oper oper1 oper1 +connect cl2 Bubb bubb %srv%:7711 :Test client 2 +:cl1 raw :time :cl2 oper oper3 oper4 +:cl1 raw :version :cl2 oper oldoper wrongpass :cl2 oper md5oper wrongpass :cl2 oper cryptoper wrongpass @@ -13,3 +16,10 @@ :cl1 raw :privs Bubb :cl1 nick A :cl1 nick Alexey +:cl1 raw :privmsg : +:cl1 raw :privmsg Alexey : +:cl1 raw :privmsg Bubb :hello Bubb +:cl1 raw :privmsg $*.net :Hello all *.net servers. +:cl1 raw :notice $*.net :Hello all *.net servers. +:cl1 raw :kill Bubb :goodbye Bubb +:cl1 raw :whowas Alex,Bubb 5 Index: ircd-ircdev/ircd/test/commands-1.cmd diff -u /dev/null ircd-ircdev/ircd/test/commands-1.cmd:1.1 --- /dev/null Tue May 31 04:11:12 2005 +++ ircd-ircdev/ircd/test/commands-1.cmd Tue May 31 04:11:01 2005 @@ -0,0 +1,43 @@ +define srv localhost:7701 + +connect cl1 Alex alex %srv% :Test client 1 +connect cl2 Bubb bubb %srv% :Test client 2 +:cl1 raw :help +:cl1 raw :admin +:cl1 raw :admin test-2.* +:cl1 raw :info +:cl1 raw :wallops :HELLO OPERZ!!! +:cl1 wait cl2 +:cl1 raw :ison alex,bubb,alex,bubb,alex,bubb +:cl1 raw :who b*b +:cl1 raw :burst the bubble +:cl1 raw :server huh huh i'm a server +:cl1 raw :links +:cl1 raw :map +:cl1 raw :nick +:cl1 raw :nick ~ +:cl1 raw :nick -dude- +:cl1 raw :nick alex +:cl1 raw :nick Bubb +:cl1 raw :ping alex test-1.* + +:cl1 oper oper1 oper1 +:cl1 raw :admin +:cl1 raw :admin test-2.* +:cl1 raw :asll +:cl1 raw :asll test-2.* +:cl1 raw :info +:cl1 raw :info test-2.* +:cl1 raw :who x b*b +:cl1 raw :close +:cl1 raw :map +:cl1 raw :links +:cl1 raw :links test-2.* +:cl1 raw :lusers +:cl1 raw :lusers test-2.* +:cl1 raw :motd +:cl1 raw :motd test-2.* +:cl1 raw :ping alex test-2.* +:cl1 raw :rping test-2.* + +:cl2 raw :quit Index: ircd-ircdev/ircd/test/feature-1.cmd diff -u /dev/null ircd-ircdev/ircd/test/feature-1.cmd:1.1 --- /dev/null Tue May 31 04:11:12 2005 +++ ircd-ircdev/ircd/test/feature-1.cmd Tue May 31 04:11:01 2005 @@ -0,0 +1,18 @@ +define srv localhost:7701 + +connect cl1 Alex alex %srv% :Test client 1 +:cl1 oper oper1 oper1 +:cl1 raw :GET LOG +:cl1 raw :RESET LOG +:cl1 raw :GET RANDOM_SEED +:cl1 raw :SET RANDOM_SEED +:cl1 raw :SET RANDOM_SEED abcdefghijklmnop +:cl1 raw :GET DEFAULT_LIST_PARAM +:cl1 raw :SET DEFAULT_LIST_PARAM FALSE +:cl1 raw :SET DEFAULT_LIST_PARAM TRUE +:cl1 nick Alexey +:cl1 nick Amdahl +:cl1 nick Andy +:cl1 nick Aon +:cl1 nick Apple +:cl1 raw :SET NICKNAMEHISTORYLENGTH 4 Index: ircd-ircdev/ircd/test/gline-1.cmd diff -u ircd-ircdev/ircd/test/gline-1.cmd:1.1 ircd-ircdev/ircd/test/gline-1.cmd:1.2 --- ircd-ircdev/ircd/test/gline-1.cmd:1.1 Mon May 16 04:31:20 2005 +++ ircd-ircdev/ircd/test/gline-1.cmd Tue May 31 04:11:01 2005 @@ -7,6 +7,9 @@ :cl1 raw :gline !+127.2.* 3600 :Localclone? :cl1 sleep 5 :cl1 raw :gline !+127.2.* 3600 :Localclone? +:cl1 raw :gline !+127.2.*/15 3600 :Localclone? +:cl1 raw :gline !+127.2.0.0/33 3600 :Localclone? +:cl1 raw :gline !+127.2.0.0/15 3600 :Localclone? connect cl2 Bubb bubb %srv% :Test client 2 :cl1 raw :gline :cl1 raw :gline $Rbubb Index: ircd-ircdev/ircd/test/ircd-t1-2.conf diff -u /dev/null ircd-ircdev/ircd/test/ircd-t1-2.conf:1.1 --- /dev/null Tue May 31 04:11:12 2005 +++ ircd-ircdev/ircd/test/ircd-t1-2.conf Tue May 31 04:11:01 2005 @@ -0,0 +1,93 @@ +General { + name = "test-1.example.net"; + vhost = "127.0.0.1"; + vhost = "::1"; + description = "Test Server 1"; + numeric = 1; +}; + +Admin { + location = "Somewhere"; + contact = "Someone"; +}; + +Class { + name = "Server"; + pingfreq = 180 seconds; + connectfreq = 300 seconds; + maxlinks = 1; + sendq = 9000000; +}; + +Class { + name = "others"; + pingfreq = 180 seconds; + sendq = 160000; + maxlinks = 100; + usermode = "+oiwx"; +}; + +Class { + name = "Opers"; + pingfreq = 180 seconds; + sendq = 160000; + maxlinks = 10; + local = no; +}; + +Connect { + name = "bogus.example.net"; + host = "example.net"; + password = "bogus_example"; + port = 7700; + class = "Server"; + maxhops = 2; + hub = "*.example.net"; + autoconnect = yes; # forces a DNS resolution attempt +}; + +CRule { + server = "bogus.example.net"; + all = yes; + rule = "connected(*)"; +}; + +CRule { + server = "bogus.example.net"; + all = no; + rule = "directcon(*)"; +}; + +UWorld { + name = "uworld.example.net"; + name = "uworld2.example.net"; +}; + +Jupe { + nick = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q"; + nick = "R,S,T,U,V,W,X,Y,Z,{,|,},~,-,_,`"; +}; + +Operator { name = "oper1"; host = "*@*"; password = "$PLAIN$oper1"; class = "Opers"; }; +Operator { name = "oper2"; host = "*@*"; password = "$PLAIN$oper2"; class = "Opers"; local = yes; }; +Operator { name = "oldoper"; host = "*@*"; password = "Xlfc26b4eYGWs"; class = "Opers"; }; +Operator { name = "md5oper"; host = "*@*"; password = "$SMD5$2O$4O.rSAmhE4Fg05MmG.047/"; class = "Opers"; }; +Operator { name = "cryptoper"; host = "*@*"; password = "$CRYPT$41ndrxPQu3B66"; class = "Opers"; }; + +Kill { username = "sub7"; realname = "s*7*"; reason = "You are infected with a Trojan"; }; +Kill { realname = "Chloe"; reason = "drones"; }; +Kill { username = "sub7"; reason = "You are infected with a Trojan"; }; + +Client { class = "others"; ip = "*"; }; + +Port { server = yes; port = 7700; }; +Port { server = no; port = 7702; }; + +Quarantine { + "#shells" = "Thou shalt not support the h4><0rz"; +}; + +Features { + "HIS_STATS_k" = "FALSE"; + "PPATH" = "ircd-t1.pid"; +}; Index: ircd-ircdev/ircd/test/ircd-t1.conf diff -u ircd-ircdev/ircd/test/ircd-t1.conf:1.1 ircd-ircdev/ircd/test/ircd-t1.conf:1.2 --- ircd-ircdev/ircd/test/ircd-t1.conf:1.1 Mon May 16 04:31:20 2005 +++ ircd-ircdev/ircd/test/ircd-t1.conf Tue May 31 04:11:01 2005 @@ -46,6 +46,15 @@ autoconnect = yes; # forces a DNS resolution attempt }; +Connect { + name = "test-2.example.net"; + host = "::1"; + password = "bogus_example"; + port = 7710; + class = "Server"; + autoconnect = no; +}; + CRule { server = "bogus.example.net"; all = yes; @@ -94,4 +103,5 @@ Features { "HIS_STATS_k" = "FALSE"; + "PPATH" = "ircd-t1.pid"; }; Index: ircd-ircdev/ircd/test/ircd-t2.conf diff -u /dev/null ircd-ircdev/ircd/test/ircd-t2.conf:1.1 --- /dev/null Tue May 31 04:11:12 2005 +++ ircd-ircdev/ircd/test/ircd-t2.conf Tue May 31 04:11:01 2005 @@ -0,0 +1,95 @@ +General { + name = "test-2.example.net"; + vhost = "127.0.0.1"; + vhost = "::1"; + description = "Test Server 2"; + numeric = 2; +}; + +Admin { + location = "Somewhere"; + contact = "Someone"; +}; + +Class { + name = "Server"; + pingfreq = 180 seconds; + connectfreq = 300 seconds; + maxlinks = 1; + sendq = 9000000; +}; + +Class { + name = "others"; + pingfreq = 180 seconds; + sendq = 160000; + maxlinks = 100; + usermode = "+oiwx"; +}; + +Class { + name = "Opers"; + pingfreq = 180 seconds; + sendq = 160000; + maxlinks = 10; + local = no; +}; + +Connect { + name = "test-1.example.net"; + host = "::1"; + password = "bogus_example"; + port = 7700; + class = "Server"; + maxhops = 2; + hub = "*.example.net"; + autoconnect = yes; +}; + +CRule { + server = "bogus.example.net"; + all = yes; + rule = "connected(*)"; +}; + +CRule { + server = "bogus.example.net"; + all = no; + rule = "directcon(*)"; +}; + +UWorld { + name = "uworld.example.net"; + name = "uworld2.example.net"; +}; + +Jupe { + nick = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q"; + nick = "R,S,T,U,V,W,X,Y,Z,{,|,},~,-,_,`"; +}; + +Operator { name = "oper1"; host = "*@*"; password = "$PLAIN$oper1"; class = "Opers"; }; +Operator { name = "oper2"; host = "*@*"; password = "$PLAIN$oper2"; class = "Opers"; local = yes; }; + +Kill { realname = "Chloe"; reason = "drones"; }; +Kill { username = "sub7"; reason = "You are infected with a Trojan"; }; + +Client { class = "others"; ip = "*"; }; + +Port { server = yes; port = 7710; }; +Port { server = no; port = 7711; mask = "127.0.0.0/8"; }; + +Quarantine { + "#shells" = "Thou shalt not support the h4><0rz"; +}; + +Pseudo "X" { + name = "X"; + nick = "X...@ch..."; +}; + +Features { + "PPATH" = "ircd-t2.pid"; + "LOG" = "SYSTEM" "FILE" "ircd-t2.log"; + "LOG" = "SYSTEM" "LEVEL" "NOTICE"; +}; Index: ircd-ircdev/ircd/test/ircd_match_t.c diff -u /dev/null ircd-ircdev/ircd/test/ircd_match_t.c:1.1 --- /dev/null Tue May 31 04:11:12 2005 +++ ircd-ircdev/ircd/test/ircd_match_t.c Tue May 31 04:11:01 2005 @@ -0,0 +1,74 @@ +/* + * ircd_match_t.c - test cases for irc glob matching + */ + +#include "ircd_log.h" +#include "match.h" +#include <stdio.h> +#include <string.h> + +struct match_test { + const char *glob; + const char *should_match; + const char *shouldnt_match; +}; + +const struct match_test match_tests[] = { + { "\\*", + "*\0", + "a\0*PeacefuL*\0" }, + { "*a*", + "a\0pizza\0abe\0brack\0", + "b\0" }, + { "?", + "*\0a\0?\0", + "*PeacefuL*\0pizza\0???\0" }, + { "abc", + "abc\0", + "abcd\0cabc\0" }, + { "*abc", + "abc\0fooabc\0ababc\0", + "abra\0abcd\0" }, + { "\\?", + "?\0", + "a\0" }, + { NULL, NULL, NULL } +}; + +void do_match_test(const struct match_test *test) +{ + const char *candidate; + unsigned int matched, not_matched; + int res; + + for (candidate = test->should_match, matched = 0; + *candidate; + candidate += strlen(candidate) + 1, ++matched) { + res = match(test->glob, candidate); + if (res != 0) { + fprintf(stderr, "\"%s\" failed to match \"%s\".\n", test->glob, candidate); + assert(0); + } + } + + for (candidate = test->shouldnt_match, not_matched = 0; + *candidate; + candidate += strlen(candidate) + 1, ++not_matched) { + res = match(test->glob, candidate); + if (res == 0) { + fprintf(stderr, "\"%s\" incorrectly matched \"%s\".\n", test->glob, candidate); + assert(0); + } + } + + printf("Passed: %s (%u matches, %u non-matches)\n", + test->glob, matched, not_matched); +} + +int main(int argc, char *argv[]) +{ + const struct match_test *match; + for (match = match_tests; match->glob; ++match) + do_match_test(match); + return 0; +} Index: ircd-ircdev/ircd/test/jupe-1.cmd diff -u /dev/null ircd-ircdev/ircd/test/jupe-1.cmd:1.1 --- /dev/null Tue May 31 04:11:12 2005 +++ ircd-ircdev/ircd/test/jupe-1.cmd Tue May 31 04:11:01 2005 @@ -0,0 +1,8 @@ +define srv localhost:7701 + +connect cl1 Alex alex %srv% :Test client 1 +:cl1 oper oper1 oper1 +:cl1 raw :jupe +irc-3.example.net 3600 :Server 3 not welcome here. +:cl1 raw :jupe -irc-3.example.net 3600 :Server 3 not welcome here. +:cl1 raw :jupe +irc-3.example.net * 3600 :Server 3 not welcome here. +:cl1 raw :jupe -irc-3.example.net * 3600 :Server 3 not welcome here. Index: ircd-ircdev/ircd/test/kill-block-1.cmd diff -u /dev/null ircd-ircdev/ircd/test/kill-block-1.cmd:1.1 --- /dev/null Tue May 31 04:11:12 2005 +++ ircd-ircdev/ircd/test/kill-block-1.cmd Tue May 31 04:11:01 2005 @@ -0,0 +1,4 @@ +define srv localhost:7701 + +connect cl1 Alex sub7 %srv% :s7server +connect cl2 Chloe chloe %srv% :Chloe Index: ircd-ircdev/ircd/test/run-tests.sh diff -u ircd-ircdev/ircd/test/run-tests.sh:1.1 ircd-ircdev/ircd/test/run-tests.sh:1.2 --- ircd-ircdev/ircd/test/run-tests.sh:1.1 Mon May 16 04:31:20 2005 +++ ircd-ircdev/ircd/test/run-tests.sh Tue May 31 04:11:01 2005 @@ -1,12 +1,27 @@ #! /bin/sh set -e srcdir=$1 -for script in channel-1 client-1 stats-1 gline-1 ; do +cp ${srcdir}/ircd-t1.conf ircd-t1.conf +cp ${srcdir}/ircd-t2.conf ircd-t2.conf +echo "Testing one-shot ircd invocations." +../ircd -v +../ircd -x 6 -k -d . -f ircd-t1.conf -c user@127.0.0.1 +echo "Starting ircd." +../ircd -d . -f ircd-t1.conf +../ircd -d . -f ircd-t2.conf +sleep 10 +# stats-1 is out of alphabetical order to avoid triggering IPcheck. +for script in channel-1 client-1 command-1 feature-1 gline-1 stats-1 jupe-1 kill-block-1 ; do echo "Running test $script." ${srcdir}/test-driver.pl ${srcdir}/${script}.cmd done -echo "Terminating server." -${srcdir}/test-driver.pl ${srcdir}/die.cmd -../ircd -? -../ircd -v -../ircd -x 6 -k -d ${srcdir} -f ircd-t1.conf -c user@127.0.0.1 +echo "Sending signals to server." +cp ${srcdir}/ircd-t1-2.conf ircd-t1.conf +kill -HUP `cat ircd-t1.pid` +sleep 1 +kill -INT `cat ircd-t1.pid` +# A long sleep is necessary to make the server flush its IPcheck entries. +sleep 610 +kill -TERM `cat ircd-t1.pid` `cat ircd-t2.pid` +sleep 1 +../ircd -? || true Index: ircd-ircdev/ircd/test/stats-1.cmd diff -u ircd-ircdev/ircd/test/stats-1.cmd:1.1 ircd-ircdev/ircd/test/stats-1.cmd:1.2 --- ircd-ircdev/ircd/test/stats-1.cmd:1.1 Mon May 16 04:31:20 2005 +++ ircd-ircdev/ircd/test/stats-1.cmd Tue May 31 04:11:01 2005 @@ -33,6 +33,9 @@ :cl1 raw :stats z :cl1 raw :stats * +# Remote stats requests +:cl1 raw :stats f test-2.* + # Named stats commands :cl1 raw :stats nameservers :cl1 raw :stats connect @@ -65,6 +68,9 @@ :cl1 raw :stats memory :cl1 raw :stats help :cl1 raw :hash +:cl1 raw :rehash m +:cl1 raw :rehash l +:cl1 raw :rehash q :cl1 raw :rehash :cl1 nick Alexey Index: ircd-ircdev/ircd/test/test-driver.pl diff -u ircd-ircdev/ircd/test/test-driver.pl:1.1 ircd-ircdev/ircd/test/test-driver.pl:1.2 --- ircd-ircdev/ircd/test/test-driver.pl:1.1 Mon May 16 04:31:20 2005 +++ ircd-ircdev/ircd/test/test-driver.pl Tue May 31 04:11:01 2005 @@ -4,7 +4,7 @@ # collection isn't broken. POE is sometimes too clever for our good # in finding references to sessions, and keeps running even after we # want to stop. -# $Id: test-driver.pl,v 1.1 2005/05/16 11:31:20 zolty Exp $ +# $Id: test-driver.pl,v 1.2 2005/05/31 11:11:01 zolty Exp $ # This interprets a simple scripting language. Lines starting with a # hash mark (#, aka octothorpe, pound sign, etc) are ignored. The @@ -103,8 +103,11 @@ irc_nick => sub {}, irc_part => sub {}, irc_ping => sub {}, + irc_pong => sub {}, + irc_rpong => sub {}, irc_quit => sub {}, irc_topic => sub {}, + irc_plugin_add => sub {}, irc_error => \&irc_error, irc_disconnected => \&irc_disconnected, irc_socketerr => \&irc_socketerr, @@ -316,7 +319,8 @@ } return undef; } - print "ERROR: Unexpected event $state to test driver (from ".$sender->ID.")\n"; + print "ERROR: Unexpected event $state to test driver (from ".$sender->ID.")\n" + unless $state eq '_signal'; return undef; } Index: ircd-ircdev/ircd/test/test_stub.c diff -u ircd-ircdev/ircd/test/test_stub.c:1.2 ircd-ircdev/ircd/test/test_stub.c:1.3 --- ircd-ircdev/ircd/test/test_stub.c:1.2 Mon Mar 21 10:39:12 2005 +++ ircd-ircdev/ircd/test/test_stub.c Tue May 31 04:11:01 2005 @@ -17,6 +17,7 @@ va_start(args, fmt); vfprintf(stderr, fmt, args); + fputc('\n', stderr); va_end(args); } @@ -27,6 +28,7 @@ va_start(args, form); vfprintf(stdout, form, args); + fputc('\n', stdout); va_end(args); } ----------------------- End of diff ----------------------- |