From 486adfe6732568617c7812bc557e4532b89f2f18 Mon Sep 17 00:00:00 2001 From: "Zhu, Yongsheng" Date: Tue, 7 Dec 2010 20:15:56 -0500 Subject: HACKING: add one section to describe testing Buteo Add one section in HACKING to describe how to test Buteo in SyncEvolution. Maily show how to setup the environment step-by-step. --- HACKING | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'HACKING') diff --git a/HACKING b/HACKING index 3ce1b09a..0021fc61 100644 --- a/HACKING +++ b/HACKING @@ -352,3 +352,30 @@ crash scenarios the final error messages may get lost. To debug such cases, disable redirection by setting the environment variable SYNCEVOLUTION_DEBUG (value doesn't matter) and capture the output normally. + +Testing Buteo +--------- + +SyncEvolution enables Buteo testing based client-test. Configure with +--enable-integration-tests and --enable-buteo-tests and then run +"src/client-test" to test Buteo with the above described environment +variables. The only difference is that you have to set a new one +"CLIENT_TEST_BUTEO=1". Buteo testing supports testing two kinds of +data: qt_vcard30 and kcal_ical20. + +Here are step-by-step instructions to get started with Buteo testing, +also using ScheduleWorld as example: +- CLIENT_TEST_SERVER=scheduleworld \ + CLIENT_TEST_EVOLUTION_PREFIX=file:///tmp/testing/ \ + ./client-test -h + => creates ~/.config/syncevolution/scheduleworld_[12]/ configs + which use data bases under /tmp/testing, then + prints all available tests +- create Buteo sync profile file ~/.sync/profiles/sync/scheduleworld.xml + and edit and enter account data for ScheduleWorld. +- chmod -R 666 /etc/sync + => change the access mode of the directory /etc/sync +- CLIENT_TEST_SERVER=scheduleworld \ + CLIENT_TEST_EVOLUTION_PREFIX=file:///tmp/testing/ \ + ./client-test Client::Sync::qt_vcard30 + => runs all tests for qt_vcard30 -- cgit v1.2.3