Commit Graph

333 Commits

Author SHA1 Message Date
Valentin Lorentz 4ded96fbba Fix LUSER tests to pass with Charybdis. 2021-02-21 21:50:24 +01:00
Valentin Lorentz 9f68f12b3a Document how to call the pytest command 2021-02-21 21:50:12 +01:00
Valentin Lorentz 85d14f3e12 Install oragono in ~/go/bin and update $PATH instructions. 2021-02-21 21:50:12 +01:00
Valentin Lorentz 81d5715465 Update the README with instructions for Oragono + pytest 2021-02-21 21:50:12 +01:00
Valentin Lorentz 13be312366 Restore the original irctest README. 2021-02-21 21:50:12 +01:00
Valentin Lorentz 85f02c4626 Use pytest as a test runner instead of unit test
'./test <controller> -s spec1 -s spec2' becomes:
'pytest --controller <controller> -k "spec1 or spec2"'

This uses pytest's test selection, which allows finer selection of which tests
to run (for example, it will allow running all tests but those requiring one
feature or combination of features).
It also allows running only a particular test (or set of test) by
filtering on their name or file name.

pytest also shows a much nicer output while testing (grouped by file,
percentage of tests run, manages the verbosity); and it captures all the output
and only shows it if the test fails, which makes --show-io irrelevant.
2021-02-21 18:03:20 +01:00
Valentin Lorentz efa5b5eb3b client_tests/test_sasl: Update to work with newer versions of Sopel 2021-02-20 10:53:23 +01:00
Valentin Lorentz fe694487c7 Better handling of connections closed by clients. 2021-02-20 10:43:00 +01:00
Valentin Lorentz c4a9592156 Fix Sopel tests; broken by 9b2a6a063c. 2021-02-20 10:42:37 +01:00
Valentin Lorentz 3d7a539d06 Fix some tests to pass with inspircd 2021-02-20 09:53:30 +01:00
Valentin Lorentz 3932a40d74 Fix client tests broken by a14ebf9ec2. 2021-02-19 23:00:00 +01:00
Valentin Lorentz 0dfe0de549 Fix client tests broken by 020564bdcb. 2021-02-19 22:57:59 +01:00
Valentin Lorentz c9c08c7f6f client_mock: Write client name in 'waiting...' message 2021-02-19 22:25:41 +01:00
Valentin Lorentz 684c889304 Fix testWhoisUser to pass with inspircd. 2021-02-19 19:22:00 +01:00
Valentin Lorentz c9dbba985c Fix crash when sendLine() is called with bytes and --show-io is given. 2021-02-19 19:19:58 +01:00
Valentin Lorentz fe0d65f7c8 Fix oragono tests broken by 9b2a6a063c. 2021-02-19 19:19:37 +01:00
Shivaram Lingamneni 8d427c80c8 fix stall on failed channel join 2021-02-18 19:35:11 +01:00
Valentin Lorentz a74f893942 Fix IRCv3 tests to not fail with Charybdis. 2021-02-17 21:35:36 +01:00
Valentin Lorentz 75dafa47fe testWhoisUser: use a shorter username, so it doesn't get truncated
eg. charybdis limits it to 10 characters
2021-02-17 10:45:52 +01:00
Valentin Lorentz d69c41756b Fix RFC1459 tests to pass with charybdis
only oragono replies to PINGs before a valid NICK afaik.
2021-02-16 00:33:46 +01:00
Valentin Lorentz 9b2a6a063c Don't pass a 'config' argument to the controller, only Oragono had it.
Instead, annotate tests with the optional features they may need from the IRCd.
2021-02-15 23:29:10 +01:00
Shivaram Lingamneni de49571b1e add test coverage for RPL_TOPIC 2021-02-08 17:47:11 -05:00
Shivaram Lingamneni b58fe44b5b update relaymsg test 2020-12-21 22:06:13 -05:00
Shivaram Lingamneni 307722fbec test the multiline batch tag 2020-12-15 04:41:25 -05:00
Shivaram Lingamneni 0b9087cc39 rename test 2020-12-14 22:55:49 -05:00
Shivaram Lingamneni 40ac45cdbe add a channel forwarding test 2020-12-14 05:22:41 -05:00
Shivaram Lingamneni 5aeb297de5 fix relaymsg test fail code 2020-12-07 02:25:20 -05:00
Shivaram Lingamneni 8c66157a9e test that TAGMSG are not sent to users with only server-time 2020-11-30 17:00:06 -05:00
Shivaram Lingamneni 3b489a2125 test long-line DoS attacks 2020-11-30 13:18:02 -05:00
Shivaram Lingamneni 14435ce0e8 regression test for oragono #1411 2020-11-29 19:32:29 -05:00
Shivaram Lingamneni a723791942 add a test for message-tags and ERR_INPUTTOOLONG 2020-11-29 18:54:37 -05:00
Shivaram Lingamneni d741ab86d5 add a test for message-tags 2020-11-26 00:25:52 -05:00
Shivaram Lingamneni b7975ada46 allow message-tags to enable account tag implicitly
Servers MAY send arbitrary server tags (time, msgid, account) to clients
that have enabled message-tags.
2020-11-24 21:22:59 -05:00
Shivaram Lingamneni b43e127805 modify chathistory test to check for INVALID_TARGET 2020-11-04 01:51:51 -05:00
Shivaram Lingamneni 512b4bd74d add regression test for oragono #1370 2020-11-01 18:14:57 -05:00
Shivaram Lingamneni d48cbc4287 oragono-specific test for unregistered lusers counts 2020-10-21 19:47:49 -04:00
Shivaram Lingamneni 215ed3171b test unregistered counts in LUSERS 2020-10-21 19:46:00 -04:00
Shivaram Lingamneni 95a26bfa57 add a test for +m 2020-10-21 19:26:31 -04:00
Shivaram Lingamneni 706e794df6 test for mute extban 2020-10-21 11:08:14 -04:00
Shivaram Lingamneni 62197e4c4d test for +U opmoderated 2020-10-20 13:42:51 -04:00
Shivaram Lingamneni f0eb6e4e80 test for lusers 2020-10-15 22:40:11 -04:00
Shivaram Lingamneni 513c74a52b regression test for #1312 2020-10-13 09:22:07 -04:00
Shivaram Lingamneni 1ac1c1c6a7 basic integration tests for REGISTER/VERIFY 2020-10-09 08:38:53 -04:00
Shivaram Lingamneni d144dad001 enable strict nickname reservation 2020-10-09 08:38:18 -04:00
Shivaram Lingamneni 0c069b7418 test no-CTCP mode 2020-10-02 12:41:13 -04:00
Shivaram Lingamneni 616785eae4 test topic privileges 2020-10-02 07:50:14 -04:00
Shivaram Lingamneni b2a1df41bd fix auditorium test, unvoiced users can speak 2020-10-01 18:02:51 -04:00
Shivaram Lingamneni 9eef97e615 test for auditorium mode 2020-10-01 10:49:59 -04:00
Shivaram Lingamneni a67cfea82f rename relaymsg oper capab 2020-10-01 09:47:21 -04:00
Shivaram Lingamneni 0287b83797 add a test for SCENE 2020-09-16 12:12:24 -04:00