nextcloud-desktop/tests/ownCloud
Olivier Goffart f946dd4287 Owncloud: cache the last PROPFIND call.
So we do not need to have two calls (stat+opendir)
2012-12-05 14:49:50 +01:00
..
HTTP More blackbox testing of csync ownCloud - enhanced test script. 2012-08-23 17:57:04 +03:00
mocka Owncloud: cache the last PROPFIND call. 2012-12-05 14:49:50 +01:00
testfiles added test data as well as a test config template. 2012-08-29 15:26:31 +03:00
tolocal1 tests: Added test script to test the ownCloud module of csync. 2012-04-17 10:40:21 +02:00
toremote1 More blackbox testing of csync ownCloud - enhanced test script. 2012-08-23 17:57:04 +03:00
CMakeLists.txt Added mocka tests for the ownCloud module. 2012-07-09 14:16:20 +02:00
mockatest.cfg.in added test data as well as a test config template. 2012-08-29 15:26:31 +03:00
README tests: Added test script to test the ownCloud module of csync. 2012-04-17 10:40:21 +02:00
t1.pl Fix test script to work with ocsync. 2012-10-16 11:53:20 +02:00

t1 - a test script for csync syncing to ownCloud.

t1 uses a perl WebDAV client lib to sync to an existing instance of
ownCloud. For that, various files are copied around, synced and the
results are tested through their existance, the filesize and the 
modification times. All tests are asserts, which means that the 
scripts stops if a test fails.

How to call:

First, configure the script. For that, open it in an editor and 
edit the values for the owncloud-url and the credentials. Yeah,
this test script is not secure, make sure to run it with a weak
account and in a save environment.

Further down, in sub csync, you can configure the LD_LIBRARY_PATH
and the binary for csync. That allows to adopt the test script to
local development environments. Make sure to check these.

To start the script, call ./t1.pl on the commandline. A lot of 
output is generated. If the script does not fail, everything works.

Before it actually ends, it takes a four seconds break for you to 
interrupt with Ctrl-C. If you don't do that, it removes all its 
traces...

Have fun,
Klaas Freitag <freitag@owncloud.com>