irctest/README.md

64 lines
1.3 KiB
Markdown
Raw Normal View History

2015-12-18 16:26:55 +00:00
# irctest
2015-12-19 18:11:17 +00:00
This project aims at testing interoperability of software using the
IRC protocol, by running them against test suites and making different
software communicate with each other.
It is very young and does not contain a lot of test cases yet.
## The big picture
This project contains:
2015-12-19 22:57:22 +00:00
* IRC protocol test cases
2015-12-19 18:11:17 +00:00
* small wrappers around existing software to run tests on them
2015-12-19 22:57:22 +00:00
(only Limnoria, Sopel, and InspIRCd for the moment)
2015-12-19 18:11:17 +00:00
2015-12-19 22:57:22 +00:00
Wrappers run software in temporary directories, so running `irctest` should
have no side effect, with [the exception of Sopel](https://github.com/sopel-irc/sopel/issues/946).
2015-12-19 18:11:17 +00:00
2015-12-19 22:57:22 +00:00
## Prerequisites
Install dependencies:
2015-12-19 18:11:17 +00:00
```
pip3 install --user -r requirements.txt
```
2015-12-19 22:57:22 +00:00
Add `~/.local/bin/` to your `PATH` if it is not.
```
export PATH=$HOME/.local/bin/:$PATH
```
## Run tests
2015-12-19 18:11:17 +00:00
To run tests with Limnoria:
```
pip3 install --user limnoria
python3 -m irctest irctest.controllers.limnoria
```
To run tests with Sopel:
```
pip3 install --user sopel
mkdir ~/.sopel/
python3 -m irctest irctest.controllers.sopel
```
2015-12-19 22:57:22 +00:00
To run tests with InspIRCd:
```
cd /tmp/
wget git clone git@github.com:inspircd/inspircd.git
cd inspircd
./configure --prefix=$HOME/.local/ --development
make -j 4
make install
python3 -m irctest irctest.controllers.inspircd
```
```