Add conf files to be used for automated testing.

This commit is contained in:
Jilles Tjoelker 2008-08-09 15:38:31 +02:00
parent 1be74e6038
commit b89f5f4845
4 changed files with 284 additions and 0 deletions

92
testsuite/ircd.conf.1 Normal file
View file

@ -0,0 +1,92 @@
loadmodule "extensions/extb_account.so";
loadmodule "extensions/extb_channel.so";
loadmodule "extensions/extb_oper.so";
loadmodule "extensions/extb_realname.so";
loadmodule "extensions/extb_server.so";
#loadmodule "extensions/ip_cloaking.so";
loadmodule "extensions/sno_farconnect.so";
loadmodule "extensions/sno_globalkline.so";
#loadmodule "extensions/sno_globaloper.so";
serverinfo {
name = "testsuite1.";
sid = "1TT";
description = "Testsuite";
network_name = "Testsuite";
network_desc = "Testing";
hub = yes;
vhost = "127.0.0.1";
};
admin {
name = "Here";
description = "Charybdis testsuite server";
email = "root@localhost";
};
class "users" {
ping_time = 5 minutes;
number_per_ip = 100;
max_number = 200;
sendq = 100kb;
};
class "server" {
ping_time = 5 minutes;
connectfreq = 5 minutes;
max_number = 3;
sendq = 5 megabytes;
};
listen { host = "127.0.0.1"; port = 7601; };
auth { user = "*@127.0.0.0/8"; class = "users"; };
operator "oper" {
user = "*@127.0.0.0/8";
password = "oper";
flags = global_kill, remote, kline, unkline, nick_changes,
die, rehash, admin, xline, operwall, oper_spy, ~encrypted;
};
connect "testsuite2." {
host = "127.0.0.1";
port = 7602;
send_password = "testsuite";
accept_password = "testsuite";
hub_mask = "*";
class = "server";
flags = topicburst;
};
connect "testsuite3." {
host = "127.0.0.1";
port = 7603;
send_password = "testsuite";
accept_password = "testsuite";
hub_mask = "*";
class = "server";
flags = topicburst;
};
shared {
oper = "*@*", "*";
flags = all;
};
alias "NickServ" {
target = "NickServ";
};
alias "ChanServ" {
target = "ChanServ";
};
alias "OperServ" {
target = "OperServ";
};
alias "MemoServ" {
target = "MemoServ";
};
service {
name = "services.";
};

92
testsuite/ircd.conf.2 Normal file
View file

@ -0,0 +1,92 @@
loadmodule "extensions/extb_account.so";
loadmodule "extensions/extb_channel.so";
loadmodule "extensions/extb_oper.so";
loadmodule "extensions/extb_realname.so";
loadmodule "extensions/extb_server.so";
#loadmodule "extensions/ip_cloaking.so";
loadmodule "extensions/sno_farconnect.so";
loadmodule "extensions/sno_globalkline.so";
#loadmodule "extensions/sno_globaloper.so";
serverinfo {
name = "testsuite2.";
sid = "2TT";
description = "Testsuite";
network_name = "Testsuite";
network_desc = "Testing";
hub = yes;
vhost = "127.0.0.1";
};
admin {
name = "Here";
description = "Charybdis testsuite server";
email = "root@localhost";
};
class "users" {
ping_time = 5 minutes;
number_per_ip = 100;
max_number = 200;
sendq = 100kb;
};
class "server" {
ping_time = 5 minutes;
connectfreq = 5 minutes;
max_number = 3;
sendq = 5 megabytes;
};
listen { host = "127.0.0.1"; port = 7602; };
auth { user = "*@127.0.0.0/8"; class = "users"; };
operator "oper" {
user = "*@127.0.0.0/8";
password = "oper";
flags = global_kill, remote, kline, unkline, nick_changes,
die, rehash, admin, xline, operwall, oper_spy, ~encrypted;
};
connect "testsuite1." {
host = "127.0.0.1";
port = 7601;
send_password = "testsuite";
accept_password = "testsuite";
hub_mask = "*";
class = "server";
flags = topicburst;
};
connect "testsuite3." {
host = "127.0.0.1";
port = 7603;
send_password = "testsuite";
accept_password = "testsuite";
hub_mask = "*";
class = "server";
flags = topicburst;
};
shared {
oper = "*@*", "*";
flags = all;
};
alias "NickServ" {
target = "NickServ";
};
alias "ChanServ" {
target = "ChanServ";
};
alias "OperServ" {
target = "OperServ";
};
alias "MemoServ" {
target = "MemoServ";
};
service {
name = "services.";
};

92
testsuite/ircd.conf.3 Normal file
View file

@ -0,0 +1,92 @@
loadmodule "extensions/extb_account.so";
loadmodule "extensions/extb_channel.so";
loadmodule "extensions/extb_oper.so";
loadmodule "extensions/extb_realname.so";
loadmodule "extensions/extb_server.so";
#loadmodule "extensions/ip_cloaking.so";
loadmodule "extensions/sno_farconnect.so";
loadmodule "extensions/sno_globalkline.so";
#loadmodule "extensions/sno_globaloper.so";
serverinfo {
name = "testsuite3.";
sid = "3TT";
description = "Testsuite";
network_name = "Testsuite";
network_desc = "Testing";
hub = yes;
vhost = "127.0.0.1";
};
admin {
name = "Here";
description = "Charybdis testsuite server";
email = "root@localhost";
};
class "users" {
ping_time = 5 minutes;
number_per_ip = 100;
max_number = 200;
sendq = 100kb;
};
class "server" {
ping_time = 5 minutes;
connectfreq = 5 minutes;
max_number = 3;
sendq = 5 megabytes;
};
listen { host = "127.0.0.1"; port = 7603; };
auth { user = "*@127.0.0.0/8"; class = "users"; };
operator "oper" {
user = "*@127.0.0.0/8";
password = "oper";
flags = global_kill, remote, kline, unkline, nick_changes,
die, rehash, admin, xline, operwall, oper_spy, ~encrypted;
};
connect "testsuite1." {
host = "127.0.0.1";
port = 7601;
send_password = "testsuite";
accept_password = "testsuite";
hub_mask = "*";
class = "server";
flags = topicburst;
};
connect "testsuite2." {
host = "127.0.0.1";
port = 7602;
send_password = "testsuite";
accept_password = "testsuite";
hub_mask = "*";
class = "server";
flags = topicburst;
};
shared {
oper = "*@*", "*";
flags = all;
};
alias "NickServ" {
target = "NickServ";
};
alias "ChanServ" {
target = "ChanServ";
};
alias "OperServ" {
target = "OperServ";
};
alias "MemoServ" {
target = "MemoServ";
};
service {
name = "services.";
};

8
testsuite/startall.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
testdir=`pwd`
prefix=`sed -n -e 's/^#define IRCD_PREFIX "\(.*\)"/\1/p' "$testdir/../include/setup.h"`
[ -d $prefix ] || { echo Unable to find installation prefix; exit 1; }
$prefix/bin/ircd -configfile $testdir/ircd.conf.1 -pidfile $testdir/ircd.pid.1
$prefix/bin/ircd -configfile $testdir/ircd.conf.2 -pidfile $testdir/ircd.pid.2
$prefix/bin/ircd -configfile $testdir/ircd.conf.3 -pidfile $testdir/ircd.pid.3