https://bugs.freedesktop.org/show_bug.cgi?id=97780
--- Comment #1 from Patrick Ohly <[email protected]> ---
Regarding testing: you can re-use the existing tests and get them applied to
your new backend, using either the existing testcases or testcases specific to
your backend.
See how AkonadiSyncSourceRegister.cpp instantiates one custom
RegisterSyncSourceTest per item type:
static class vCard30Test : public RegisterSyncSourceTest {
public:
vCard30Test() : RegisterSyncSourceTest("kde_contact", "eds_contact") {}
virtual void updateConfig(ClientTestConfig &config) const
{
config.m_type = "kde-contacts";
}
} vCard30Test;
This defines the "Client::Source::kde_contact" tests, using the existing
eds_contact = syncevolution/test/testcases/eds_contact.vcf testcases.
Build with integration testing enabled, dynamic linking disabled (easier that
way) and then you can run (without installation, directly in the "src"
directory:
./client-test Client::Source::kde_contact (or whatever you are going to call
it).
The HACKING document has some more information about this, although I can't
vouch for it being entirely up-to-date.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug._______________________________________________
Syncevolution-issues mailing list
[email protected]
https://lists.syncevolution.org/mailman/listinfo/syncevolution-issues