- Notifications
You must be signed in to change notification settings - Fork8
ircdocs/parser-tests
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Various tests for IRC parsers so people can check to ensure they're consistent. These tests are based on existing test suites and widespread client behaviour.
Note: This is still being written. Feel free to suggest or contribute tests - PRs are welcomed!
There are two included tests used to test these vectors, the Python and Golang programs.
Eitherpip install irc_parser_tests or addirc_parser_tests to yourrequirements.txt. The test data is available in the moduleparser_tests.
- Bump the version identifier in
parser_tests/__init__.py - Commit the version bump and tag it
git tag v<version> - Push to master
- Github actions will deploy to PyPi
Thetest.py script uses thegirc andircmatch libraries as reference implementations, as well aspyyaml to parse the test files.
To install these libraries, run:
pip3 install --upgrade girc ircmatch pyyamlAfter that, simply run the script withpython3 test.py in the root dir. This will test everything we can test, and show the output.
Thetest.go script uses thegirc-go packages as reference implementations.
To install these packages, run:
go get -u ./...After that, simply run the script withgo run test.go run in the root dir. This will test everything we can test, and show the output.
Thanks to these sources for having open tests and/or agreeing to let me include your tests here!
Some tests originate fromMozilla's test vectors, which are public domain.
Some tests originate fromgrawity's test vectors which were WTFPL v2 licensed when they were retrieved.
Some tests originate fromSadie's test vectors which she's indicated I'm free to include here.
About
Tests for IRC Parsers
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors8
Uh oh!
There was an error while loading.Please reload this page.