runtests.py: added Yahoo and Google CalDAV/CardDAV testing

Added separate Client::Source tests for Yahoo CalDAV/CardDAV
and Google CalDAV. Reporting the results needs to know that these
"servers" are local tests.

These tests can only be run if CLIENT_TEST_WEBDAV is set as
expected by WebDAVSourceRegister.cpp.
This commit is contained in:
Patrick Ohly 2011-04-01 18:19:53 +08:00
parent b64763ee53
commit 3ad1911705
2 changed files with 22 additions and 1 deletions

View File

@ -157,7 +157,7 @@ def step2(resultdir, result, servers, indents, srcdir, shellprefix, backenddir):
runservers = os.listdir(resultdir)
#list source test servers statically, we have no idea how to differenciate
#automatically whether the server is a source test or sync test.
sourceServers = ['evolution', 'evolution-prebuilt-build']
sourceServers = ['evolution', 'evolution-prebuilt-build', 'yahoo', 'googlecalendar']
sourceServersRun = 0
haveSource = False
#Only process servers listed in the input parameter and in the sourceServer

View File

@ -742,6 +742,27 @@ evolutiontest = SyncEvolutionTest("evolution", compile,
testPrefix=options.testprefix)
context.add(evolutiontest)
test = SyncEvolutionTest("googlecalendar", compile,
"", options.shell,
[ "Client::Source::google_caldav" ],
[ "google_caldav" ],
"CLIENT_TEST_WEBDAV='google caldav' "
"CLIENT_TEST_SIMPLE_UID=1 " # server gets confused by UID with special characters
"CLIENT_TEST_UNIQUE_UID=1 " # server keeps backups and restores old data unless UID is unieque
,
testPrefix=options.testprefix)
context.add(test)
test = SyncEvolutionTest("yahoo", compile,
"", options.shell,
[ "Client::Source::yahoo_caldav Client::Source::yahoo_carddav" ],
[ "yahoo_caldav", "yahoo_carddav" ],
"CLIENT_TEST_WEBDAV='yahoo caldav carddav' "
"CLIENT_TEST_SIMPLE_UID=1 " # server gets confused by UID with special characters
,
testPrefix=options.testprefix)
context.add(test)
scheduleworldtest = SyncEvolutionTest("scheduleworld", compile,
"", options.shell,
[ "Client::Sync" ],