Commit graph

22 commits

Author SHA1 Message Date
Patrick Ohly
d27aa59e09 ignore that Synthesis does not support some iCalendar 2.0 properties (SEQUENCE, TRANSP, ORGANIZER, VALARM, ATTENDEE parameters)
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@22570 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:27 +01:00
Patrick Ohly
966e895492 also supported N;ENCODING=QUOTED-PRINTABLE: when normalizing for Synthesis server
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@22366 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:27 +01:00
Patrick Ohly
25603052db ignore differences due to added/removed line breaks at end of description (some servers do that and it does not really matter)
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/branches/b_v65/3x/client-api/native@21763 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:26 +01:00
Patrick Ohly
475ed7cdfc - less aggressive capitalization: only apply this to TYPE - simplified one regex (splitting TYPE=foo,bar)
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/branches/b_v65/3x/client-api/native@21751 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:26 +01:00
Patrick Ohly
7300a666e4 extended test data and synccompare to use/handle vCard 3.0 with mixed-case parameters
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/branches/b_v65/3x/client-api/native@21573 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:26 +01:00
Andrea Toccalini
90eb9f7132 updated license to AGPL
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/branches/b_v65/3x/client-api/native@21417 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:25 +01:00
Patrick Ohly
b418e19ee8 Documented some of the environment variables checked by the script and added some more to control some of the hard-coded strings/return codes:
CLIENT_TEST_SERVER=funambol|scheduleworld|egroupware|synthesis
      Enables code which simplifies the text files just like
      certain well-known servers do. This is useful for testing
      to ignore the data loss introduced by these servers or (for
      users) to simulate the effect of these servers on their data.

CLIENT_TEST_CLIENT=evolution|addressbook (Mac OS X/iPhone)
      Same as for servers this replicates the effect of storing
      data in the clients.

CLIENT_TEST_LEFT_NAME="before sync"
CLIENT_TEST_RIGHT_NAME="after sync"
CLIENT_TEST_REMOVED="removed during sync"
CLIENT_TEST_ADDED="added during sync"
      Setting these variables changes the default legend
      print above the left and right file during a
      comparison.

CLIENT_TEST_COMPARISON_FAILED=1
      Overrides the default error code when changes are found.

git-svn-id: https://core.forge.funambol.org/svn/core/top-level/branches/b_v65/3x/client-api/native@20792 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:25 +01:00
Patrick Ohly
36efaad474 myFUNAMBOL looses some data that was preserved by Funambol 3.0. synccompare.pl now simplifies the test data so that the Client::Sync::vcard21::testItems passes again. For an example of what gets lost see the failed test:
BEGIN:VCARD                              BEGIN:VCARD
N:Doe;John                               N:Doe;John
ADR;TYPE=HOME:Test Box #1;;Test Drive    ADR;TYPE=HOME:Test Box #1;;Test Drive
  1;Test Village;Lower Test County;123     1;Test Village;Lower Test County;123
 45;Testovia                              45;Testovia
ADR;TYPE=PARCEL:Test Box #3;;Test Dri  | ADR;TYPE=HOME:Test Box #3;;Test Drive
 ve 3;Test Megacity;Test County;12347; |   3;Test Megacity;Test County;12347;Ne
 New Testonia                          |  w Testonia
ADR;TYPE=WORK:Test Box #2;;Test Drive    ADR;TYPE=WORK:Test Box #2;;Test Drive
  2;Test Town;Upper Test County;12346;     2;Test Town;Upper Test County;12346;
 Old Testovia                             Old Testovia
BDAY:2006-01-08                          BDAY:2006-01-08
CALURI:calender                        <
CATEGORIES:TEST                          CATEGORIES:TEST
EMAIL;TYPE=HOME;X-EVOLUTION-UI-SLOT=2  | EMAIL:john.doe@other.world
 :john.doe@home.priv                   | EMAIL;TYPE=HOME:john.doe@home.priv
EMAIL;TYPE=WORK;X-EVOLUTION-UI-SLOT=1  | EMAIL;TYPE=WORK:john.doe@work.com
 :john.doe@work.com                    <
EMAIL;X-EVOLUTION-UI-SLOT=3:john.doe@  <
 other.world                           <
EMAIL;X-EVOLUTION-UI-SLOT=4:john.doe@  <
 yet.another.world                     <
FBURL:free/busy                        <
NICKNAME:user1                           NICKNAME:user1
NOTE:This is a test case which uses a    NOTE:This is a test case which uses a
 lmost all Evolution fields.              lmost all Evolution fields.
ORG:Test Inc.;Testing                    ORG:Test Inc.;Testing
ROLE:professional test case              ROLE:professional test case
TEL;TYPE=CAR;X-EVOLUTION-UI-SLOT=7:ca  | TEL;TYPE=CAR:car 7
 r 7                                   | TEL;TYPE=CELL:mobile 3
TEL;TYPE=CELL;X-EVOLUTION-UI-SLOT=3:m  | TEL;TYPE=FAX;TYPE=HOME:homefax 5
 obile 3                               | TEL;TYPE=FAX;TYPE=WORK:businessfax 4
TEL;TYPE=FAX;TYPE=HOME;X-EVOLUTION-UI  | TEL;TYPE=HOME:home 2
 -SLOT=5:homefax 5                     | TEL;TYPE=PAGER:pager 6
TEL;TYPE=FAX;TYPE=WORK;X-EVOLUTION-UI  | TEL;TYPE=PREF:primary 8
 -SLOT=4:businessfax 4                 | TEL;TYPE=WORK:business 1
TEL;TYPE=HOME;X-EVOLUTION-UI-SLOT=2:h  <
 ome 2                                 <
TEL;TYPE=PAGER;X-EVOLUTION-UI-SLOT=6:  <
 pager 6                               <
TEL;TYPE=PREF;X-EVOLUTION-UI-SLOT=8:p  <
 rimary 8                              <
TEL;TYPE=WORK;X-EVOLUTION-UI-SLOT=1:b  <
 usiness 1                             <
TITLE:Senior Tester                      TITLE:Senior Tester
URL:http://john.doe.com                  URL:http://john.doe.com
VERSION:3.0                              VERSION:3.0
X-AIM;X-EVOLUTION-UI-SLOT=1:AIM JOHN   <
X-EVOLUTION-ANNIVERSARY:2006-01-09     <
X-EVOLUTION-ASSISTANT:John Doe Junior  <
X-EVOLUTION-BLOG-URL:web log           <
X-EVOLUTION-FILE-AS:Doe\, John           X-EVOLUTION-FILE-AS:Doe\, John
X-EVOLUTION-MANAGER:John Doe Senior    <
X-EVOLUTION-SPOUSE:Joan Doe            <
X-EVOLUTION-VIDEO-URL:chat             <
X-GROUPWISE;X-EVOLUTION-UI-SLOT=4:GRO  <
 UPWISE DOE                            <
X-ICQ;X-EVOLUTION-UI-SLOT=3:ICQ JD     <
X-YAHOO;X-EVOLUTION-UI-SLOT=2:YAHOO J  <
 DOE                                   <
END:VCARD                                END:VCARD
-------------------------------------------------------------------------------
BEGIN:VCARD                              BEGIN:VCARD
N:breaks;line                            N:breaks;line
ADR;TYPE=HOME:;Address Line 2\nAddres  | ADR;TYPE=HOME:;;Address Line 1
 s Line 3;Address Line 1               <
NICKNAME:user7                           NICKNAME:user7
NOTE:This test case uses line breaks.    NOTE:This test case uses line breaks.
  This is line 1.\nLine 2.\n\nLine bre     This is line 1.\nLine 2.\n\nLine bre
 aks in vcard 2.1 are encoded as =0D=0    aks in vcard 2.1 are encoded as =0D=0
 A.\nThat means the = has to be encode    A.\nThat means the = has to be encode
 d itself...                              d itself...
VERSION:3.0                              VERSION:3.0
X-EVOLUTION-FILE-AS:breaks\, line        X-EVOLUTION-FILE-AS:breaks\, line
END:VCARD                                END:VCARD

git-svn-id: https://core.forge.funambol.org/svn/core/top-level/branches/b_v65/3x/client-api/native@20761 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:25 +01:00
Patrick Ohly
2fa2afd09d - suppress acceptable modification when using the Mac OS X address book: some properties and types not supported by it - find perl in the PATH by invoking it via /usr/bin/env (which hopefully is at that place): required by iPhone
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@20310 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:24 +01:00
Patrick Ohly
d2f5cd041f avoid irrelevant differences due to extra white space, generalized X-WSS removal
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@17386 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:23 +01:00
Matteo Vitolo
66e4de9766 copyright updated
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@17292 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:23 +01:00
Patrick Ohly
2389b1eeea remove X-MOZILLA-HTML:FALSE because it (almost) has the same semantic as no X-MOZILLA-HTML
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@16864 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:23 +01:00
Patrick Ohly
ac4af8b0ab added some (preliminary) support for iCalendar 2.0 journal entries
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@16226 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:21 +01:00
Patrick Ohly
3df51b826c additional check to avoid error messages if tput itself fails
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@15823 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:20 +01:00
Patrick Ohly
ba58cb4ad0 replaced invocation of external diff/mktemp tools with pure Perl diff
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@15743 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:20 +01:00
Patrick Ohly
272317f705 ignore some minor differences (TYPE shortcuts, truncated ORG) and one bug (=0A instead of =0D=0A), found when testing against Funambol 3.0 with vcal10/vcard21
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@14182 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:18 +01:00
Patrick Ohly
af7e085f25 check for the same environment variable as client-test
git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@12299 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:17 +01:00
Patrick Ohly
a3137b52e7 Added real sync testing, using RawFILESyncSource to store items locally. Compiles and runs on Linux, but tests mostly fail because FILESyncSource supports no change tracking yet.
See test/client-test.cpp as an example how the existing tests can
be hooked up with other SyncSource implementations. The sync() function
still needs to be implemented.

git-svn-id: https://core.forge.funambol.org/svn/core/top-level/trunk/3x/client-api/native@12093 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10
2009-03-25 14:43:16 +01:00
Patrick Ohly
a121171404 # pushed sources back into SyncML client library
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@431 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-23 21:20:18 +00:00
Patrick Ohly
f665c5abb7 perl is not installed as /usr/bin/perl on iPhone: let /usr/bin/env find it
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@415 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-14 14:02:46 +00:00
Patrick Ohly
1a0568ead2 ScheduleWorld no longer drops department/office
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@411 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-13 20:23:44 +00:00
Patrick Ohly
c90a742b52 added custom vcard 3.0 <-> AddressBook conversion: needed to make vcard representation close to what SyncML servers understand
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@386 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-08-24 21:27:42 +00:00