315 Commits

Author SHA1 Message Date
Alexey Sokolov
780659b139 Add basic tests for modperl and modpython 2016-01-07 00:52:52 +00:00
Falk Seidel
8f73840e74 Welcome to 2016
🎆  Happy 2016 🎆
2016-01-01 20:11:21 +01:00
Donal Cahill
15c200c908 Disallow CIDR /00000 2015-12-13 23:16:58 +00:00
Donal Cahill
db7e1ef162 Fix up CIDR code. 2015-12-13 15:36:35 +00:00
Donal Cahill
56c97af14b Improve code quality. 2015-12-13 12:23:08 +00:00
Donal Cahill
b4bb4fa0cd Add support for CIDR notation in allowed hosts list.
Fixes #207
2015-12-13 06:31:51 +00:00
Alexey Sokolov
16a8c77737 Replace virtual with override where possible.
Using clang-tidy
2015-12-08 20:51:50 +00:00
Alexey Sokolov
d185d6f22d clang-format: switch tabs to spaces
I like tabs, but I have to admit that spaces make source code more
consistent, because every editor/viewer tends to render tabs differently :(
2015-12-07 00:53:30 +00:00
Alexey Sokolov
33b0627d75 Add clang-format configuration.
For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.
2015-12-07 00:53:01 +00:00
Alexey Sokolov
02f8749a8b Protect some parts of code from clang-format 2015-12-07 00:48:58 +00:00
Alexey Sokolov
9c48119897 Use C++11 threads instead of custom pthread wrappers.
Signal handling of CThread was handled in previous commit.
2015-12-06 00:11:15 +00:00
Alexey Sokolov
7f6fc6643e Merge branch 'master' into notify
Conflicts:
    test/Integration.cpp
2015-11-30 08:02:47 +00:00
Alexey Sokolov
d736397194 Small change for test of notify_connect for better variety 2015-11-30 08:00:51 +00:00
Alexey Sokolov
bee266a08e Fix test after fixing #1190 2015-11-29 12:26:17 +00:00
Alexey Sokolov
569f057561 Call CTCP callback for actions too, as it was before switch to CMessage.
Partyline had both of callbacks, one of which is redundant.

Fix #1134
Fix #1190
2015-11-29 00:59:50 +00:00
Oleh Prypin
50edbd5f0d Test notify_connect module 2015-11-27 12:20:33 +02:00
KindOne
6ac59ee4df Add test for controlpanel 2015-11-06 20:45:38 -05:00
Alexey Sokolov
29847146cf Make channel test more reliable 2015-11-01 23:01:05 +00:00
Alexey Sokolov
900a11a1a9 Fix test which I've just broken 2015-11-01 22:44:50 +00:00
Alexey Sokolov
585b380189 How did I manage to write invalid JOIN test? 2015-11-01 22:26:24 +00:00
Alexey Sokolov
34026d39dc Add test for shell module 2015-10-31 20:36:58 +00:00
Alexey Sokolov
5e337647b1 Add test for invalid channel config. 2015-10-30 14:33:46 +00:00
Alexey Sokolov
9777a1a667 Add test for fix of #528 2015-10-30 01:06:39 +00:00
Alexey Sokolov
69b031c43c Workaround test failure on cygwin64 2015-10-24 11:56:23 +01:00
Alexey Sokolov
db550a3aa0 Add one more small test. 2015-10-20 08:12:34 +01:00
Alexey Sokolov
a35a5d3bc8 Test: add typedef for a widely used type 2015-10-20 08:02:46 +01:00
Alexey Sokolov
38288a17e9 Test: slightly more compact output 2015-10-20 08:00:36 +01:00
Alexey Sokolov
933aa6db0c Add some more tests and fix a bug which sometimes blocked login of users.
This bug wasn't released yet.
cc @jpnurmi
2015-10-18 23:22:32 +01:00
Alexey Sokolov
eb450ee885 Test: extract some building blocks to make future tests easier 2015-10-18 22:23:42 +01:00
Alexey Sokolov
1caf6541a0 Test: workaround some Qt's annoyances, and add one more small test. 2015-10-18 21:39:59 +01:00
Alexey Sokolov
90ae78533f Rewrite integration test.
Pexpect was failing too often, even when starting a new process.
Now the test is using Qt and C++.

Fix #772
2015-10-17 15:27:18 +01:00
Alexey Sokolov
8f598273f9 Test: launch ZNC on a config created during --makeconf and connect. 2015-10-03 21:38:18 +01:00
J-P Nurmi
d66cb36cc3 Unit test CClient message handlers 2015-09-21 23:26:50 +02:00
J-P Nurmi
3cb2834cc5 Fix STATUSMSG buffering 2015-09-21 15:41:20 +02:00
J-P Nurmi
565d04a8ef Resolve 'make test' warnings
Fix our own, and hide csocket, gtest & gmock related.
2015-09-21 15:41:20 +02:00
J-P Nurmi
ecb9b21055 Move message tags related code from CUtils to CMessage 2015-09-20 23:22:03 +02:00
J-P Nurmi
7d10ad2625 CBuffer: add CMessage-based API 2015-09-20 23:22:03 +02:00
J-P Nurmi
cbd860c2a9 Add CMessage::Equals()
Compares sender, command, and parameters. Not timestamp nor tags.
2015-09-20 23:22:02 +02:00
J-P Nurmi
c223d3a500 Unit test CClient::PutClient(CMessage) 2015-09-20 23:22:02 +02:00
J-P Nurmi
467d48cb45 Share the unit test classes 2015-09-20 23:22:02 +02:00
J-P Nurmi
cb84ecac9c Port CIRCSock::ParseISupport() to use CMessage 2015-09-20 23:22:01 +02:00
J-P Nurmi
683379df7d CUtils::ParseServerTime(): fix handling of invalid timestamps 2015-09-18 01:16:01 +02:00
J-P Nurmi
f1973fe81b MessageTest: prefer EXPECT_THAT and ContainerEq 2015-09-18 01:02:12 +02:00
J-P Nurmi
57fb58bf71 Fix CModeMessage::GetModes()
Thanks to KindOne for finding the bug. CModeMessage::GetModes()
must trim the colon that CMessage::GetParams() may include.
2015-09-17 13:26:24 +02:00
J-P Nurmi
08ad9c40cc QueryTest: fix signed vs. unsigned comparison warnings 2015-09-13 02:15:10 +02:00
J-P Nurmi
75ee9cec62 Add QueryTest 2015-09-10 01:44:06 +02:00
J-P Nurmi
1a3e9ecb86 Resolve #1045: Make CMessage retain the colon
If the colon was there when parsed, stick it back even if it would be
technically unnecessary.
2015-09-10 00:21:04 +02:00
J-P Nurmi
ba76e041b9 Add OnNumericMessage() module hook (close #1069) 2015-09-07 16:41:15 +02:00
J-P Nurmi
fc981fa44c MessageTest: test CTargetMessage in one place 2015-09-07 00:00:28 +02:00
J-P Nurmi
f71a0a213e Add IRCSockTest 2015-09-07 00:00:28 +02:00