Commit Graph

4298 Commits

Author SHA1 Message Date
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 cc76522063 travis: Trusty has new enough lcov 2015-10-17 15:27:18 +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 f3762e8b05 Use termios instead of deprecated getpass().
Also this fixes flaky integration test. Sometimes it hanged because
getpass() sometimes didn't want to believe that it already got the
password from input.
2015-10-16 23:33:11 +01:00
Alexey Sokolov 0d21471b74 Merge branch '1.6.x'
Conflicts:
    .travis.yml
2015-10-16 23:32:37 +01:00
Alexey Sokolov 0022fc6162 Merge pull request #1153 from Mikaela/travis-trusty
.travis.yml: use Ubuntu Trusty & #znc-dev
2015-10-16 20:28:42 +01:00
Mikaela Suomalainen 10d92e539b .travis.yml: use Ubuntu Trusty & #znc-dev
http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/ and
we have been talking forever about moving notifications to #znc-dev and
there have been multiple PRs for that.

-y is apparently needed with trusty or apt hangs forever waiting for
yes/no.
2015-10-16 10:02:59 +03:00
Alexey Sokolov c87a40ac9b Merge pull request #1145 from Zarthus/blockmotd_override
blockmotd: Allow overriding via command
2015-10-16 08:00:03 +01:00
Jos Ahrens 92b4f92577 blockmotd: Allow overriding via command
Fixes #783
2015-10-15 11:54:14 +02:00
Alexey Sokolov eb6852f58b Merge pull request #1140 from Zarthus/simpleaway-expandstring
Use ExpandString for simple_away, rename %s to %awaytime% to follow ExpandString standards
2015-10-15 09:00:06 +01:00
Alexey Sokolov 3623cf0d45 Merge pull request #1152 from znc/revert-1149-server-details
Revert "Fix #1147: show new server name when jumping"
2015-10-15 08:39:06 +01:00
Alexey Sokolov 44bbde35ee Revert "Fix #1147: show new server name when jumping" 2015-10-15 08:38:02 +01:00
Alexey Sokolov e57f6460a1 Merge pull request #1149 from jreese/server-details
Fix #1147: show new server name when jumping
2015-10-15 08:33:58 +01:00
Alexey Sokolov 87a921d87a Merge pull request #1139 from Zarthus/expandstring-network
Expandstring network, alphabeticize expandstring list
2015-10-15 08:31:50 +01:00
John Reese 5f79f2d01f Fix #1147: show new server name when jumping
This updates the connect command in *status to retrieve the next server
object before triggering the jump, thereby allowing it to display the
next server's name rather than a generic message.
2015-10-12 16:27:01 -07:00
Alexey Sokolov 46f937aa4a Remove test2 for now. Pexpect is broken. 2015-10-10 09:16:34 +01:00
Alexey Sokolov 58fbbaf110 Update Csocket. Close #1146
Fix build when OpenSSL is built without SSLv3.
2015-10-10 08:58:37 +01:00
Jos Ahrens 2c8baa8193 ExpandString %network%, alphabeticize ExpandString list 2015-10-08 21:39:02 +02:00
Alexey Sokolov 1c54550304 AppVeyor: change cygwin mirror. Old one often errored out during download
"download error in unattended_mode: 1 retry remaining."
2015-10-04 23:27:58 +01:00
Alexey Sokolov 8f598273f9 Test: launch ZNC on a config created during --makeconf and connect. 2015-10-03 21:38:18 +01:00
Alexey Sokolov 0750e529c5 Don't print anything from signal handler.
Thread sanitizer doesn't like that.
2015-10-03 19:29:01 +01:00
Jos Ahrens 25f40b7d2c Use ExpandString for simple_away, rename %s to %awaytime% to follow ExpandString standards
To support upgrading, %s will still be replaced with the Away Time. but we just refer to it
as %awaytime% to be consistent with ExpandString substitutions.
2015-10-03 11:38:38 +02:00
Alexey Sokolov c8e00c5750 AppVeyor: Upload config.log even if ./configure failed 2015-10-02 23:31:44 +01:00
Alexey Sokolov 9f151c5bc9 Merge pull request #1130 from Zarthus/alias-dump-command
alias: add 'dump' command to copy your config between users.
2015-10-02 20:53:34 +01:00
Alexey Sokolov c19a214ca8 Merge pull request #1124 from Zarthus/printstatus-nook
Remove 'ok' from bootup
2015-10-02 20:43:25 +01:00
Alexey Sokolov 0b89db6753 Merge pull request #1113 from Mikaela/travis
.travis.yml: enable fast_finish
2015-10-02 20:42:24 +01:00
Alexey Sokolov 819ded0f9c Merge pull request #1138 from Zarthus/clientnotify-disconnect
Fixes a weird sentence in clientnotify syntax help.
2015-10-02 20:38:50 +01:00
Jos Ahrens 9f63a491af Fixes a weird sentence in clientnotify syntax help. 2015-10-02 19:40:20 +02:00
Alexey Sokolov 30cbb5ab39 Merge pull request #1101 from Mikaela/perform-descriptions
perform: add descriptions for commands
2015-09-28 07:43:29 +01:00
Jos Ahrens a83aedd932 alias: add 'dump' command to copy your config between users.
This fixes issue znc/znc#1114 - and also a small consistency fix
2015-09-27 13:24:04 +02:00
Jos Ahrens 2031a82a77 Remove 'ok' from bootup
ZNC previously sent 'ok' on a new line every time a process went alright in CUtils::PrintStatus

No longer is this the case! ZNC now remains silent when everything is going well.
2015-09-25 13:11:33 +02:00
J-P Nurmi d66cb36cc3 Unit test CClient message handlers 2015-09-21 23:26:50 +02:00
Mikaela Suomalainen aa631a5ee7 perform: add descriptions for commands
Thanks @ChasedSpade

Closes #1100
Closes #1102
2015-09-21 16:46:17 +03: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
Mikaela Suomalainen f2c53b64e1 .travis.yml: enable fast_finish
When fast_finish is True, Travis will inform that the build has failed
when one build fails which is usually desirable instead of waiting for
everything to finish.

However builds that haven't finished yet will continue, this doesn't
stop them or do anything else to them.

`travis lint` passes so,

[CI SKIP]
2015-09-21 16:40:45 +03:00
J-P Nurmi e879203d54 Merge branch '1.6.x'
Conflicts:
	modules/bouncedcc.cpp
2015-09-20 23:36:44 +02:00
Mikaela Suomalainen c8ab811a29 cert: add description for the "info" command 2015-09-20 23:31:37 +02:00
J-P Nurmi c83a41ce89 CClient: message handlers 2015-09-20 23:22:03 +02:00
J-P Nurmi 4d3b47f2b1 Refactor CClient::ReadLine() to take advantage of CMessage::Type 2015-09-20 23:22:03 +02:00
J-P Nurmi 0c6215df9e CClient: use CModeMessage 2015-09-20 23:22:03 +02:00
J-P Nurmi 658db6bbe6 Make CMessage::ToString() use GetParams()
Avoids having the same loop in two places.

GetParams() was under consideration to be removed after the CMessage
porting work is done, but it's starting to look like it's here to stay.
There are cases, such as mode messages, where "get all params starting
from position N" is handy.
2015-09-20 23:22:03 +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 dce6d4f0ea Make CClient::PutClient() handle multi-prefix 2015-09-20 23:22:02 +02:00
J-P Nurmi f7802209ae Make CClient::PutClient() handle extended-join 2015-09-20 23:22:02 +02:00