source: protocols/skype/HACKING @ 7e5b4bd

Last change on this file since 7e5b4bd was 65a5d15, checked in by Miklos Vajna <vmiklos@…>, at 2013-02-11T12:56:03Z

skype: mention --plugindir quirk in HACKING

As skype support always gets built as plugin, option is required
for running tests without installing plugin to the system.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1== Tabs
2
3I use the following tabs during the development:
4
51) bitlbee-skype:
6
7vim, make, etc.
8
92) bitlbee:
10
11gdb --args ./bitlbee -v -n -D
12run
13
143) skyped:
15
16python skyped.py -n -d
17
184) irssi
19
20== Tests
21
22The plugin is tested with a mocked IRC client and a mocked skyped.
23
24To run tests with bitlbee built in a development tree and not (the one)
25installed in the system (e.g. /usr), make sure to specify --plugindir= option to
26./configure script during the build process:
27
28bitlbee% ./configure --skype=1 --plugindir="$(realpath .)"
29
30Otherwise bitlbee will try to load skype.so (among other things) from /usr/lib,
31which is probably not what you want to test, or produce "Unknown protocol"
32error.
33
34To add a new test, the following steps are necessary:
35
361) Add a new -skyped.mock file: just do the test manually, copy&paste the
37skyped output and clean it up, so Alice talks to Bob.  You can test the created
38mock file by starting skyped with the -m option, and testing it from an IRC
39client manually.
40
412) Add a new -bitlbee.mock file: do the test manually from irssi, and use:
42
43/connect -rawlog rawlog localhost
44
45Then clean up the rawlog: the input lines are parsed as matching patterns, so
46boring prefix/suffix text can be left out, non-interesting lines can be
47deleted. The output lines still have to be strict IRC commands, as usual.
48
493) Add the new test to test.py and run it!
50
51// vim: ft=asciidoc
Note: See TracBrowser for help on using the repository browser.