2013-07-11 12:47:50 +04:00
|
|
|
t1 - an integration test script for csync syncing to ownCloud.
|
|
|
|
|
|
|
|
Note: This test script uses perl HTTP::DAV. This package needs to
|
|
|
|
be in version 0.46 at least. Many distros deliver older versions.
|
|
|
|
A working version is part of the github checkout.
|
2012-02-28 15:27:00 +04:00
|
|
|
|
2013-05-14 18:32:36 +04:00
|
|
|
Note: This test script uses perl HTTP::DAV. This package needs to
|
|
|
|
be in version 0.46 at least. Many distros deliver older versions.
|
|
|
|
Update than.
|
|
|
|
|
2012-02-28 15:27:00 +04:00
|
|
|
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:
|
|
|
|
|
2013-07-11 12:47:50 +04:00
|
|
|
First, configure the script. For that, create a file t1.cfg. There
|
|
|
|
is t1.cfg.in as an example. Yeah, this test script is not secure,
|
|
|
|
make sure to run it with a weak account and in a save environment.
|
2012-02-28 15:27:00 +04:00
|
|
|
|
2013-08-01 13:05:07 +04:00
|
|
|
Second, unpack the test file collection with
|
2013-08-01 19:08:19 +04:00
|
|
|
tar xf testfiles.tar.xz
|
2013-08-01 13:05:07 +04:00
|
|
|
in the directory where the tarball can be found.
|
2012-02-28 15:27:00 +04:00
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|