weercd
is the WeeChat IRC testing server.
It can be used with any IRC client (not only WeeChat).
In the "flood" mode, various IRC commands are sent in a short time (privmsg, notice, join/quit, ..) to test client resistance and memory usage (to quickly detect memory leaks, for example with client scripts).
This script requires Python ≥ 3.6.
It is STRONGLY RECOMMENDED to connect this server with a client in a test environment:
-
For WeeChat, a temporary home directory (see below).
-
On a test machine, because CPU will be used a lot by client to display messages from weercd.
-
If possible locally (i.e. server and client on same machine), to speed up data exchange between server and client.
Open a terminal and run server:
python3 weercd.py
Open another terminal and run WeeChat with a temporary home directory:
weechat --temp-dir
Note
|
The option --temp-dir (or -t ) has been added in WeeChat 2.4, so with
an older version you can do: weechat --dir /tmp/weechat (this directory
is not automatically removed on exit).
|
Optional: install script(s) in WeeChat (for example /script install xxx
).
Add server and connect to it:
/server add weercd 127.0.0.1/7777 /connect weercd
Wait some months…
WeeChat still not crashed and does not use 200 TB of RAM ?
Yeah, it’s stable! \o/
Copyright © 2011-2020 Sébastien Helleu <[email protected]>
This file is part of weercd, the WeeChat IRC testing server.
weercd is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
weercd is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with weercd. If not, see https://www.gnu.org/licenses/.