Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2018-07-03OwnSql: Fixup after feedback for #6388Olivier Goffart
2018-06-28Update testutilityRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-06-28Fix tests to actually compileRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-06-11Blacklist: Add unittest #6411Christian Kamm
2018-06-11Conflicts: Change tags to be more user friendly #6365Christian Kamm
From "_conflict-user-yyyymmdd-hhmmss" to " (conflicted copy user yyyy-mm-dd hhmmss)"
2018-06-07TestChunkingNG: Remove unneeded test codeChristian Kamm
2018-06-06Uploads: Don't delete unexisting chunksOlivier Goffart
Since commit 4dc49ff3, we store an entry in the upload info table even for non chunked uploads. However, if this fails we don't want to remove non-existant stale chunks if the upload fails. Without this commit, we would send a DELETE command to clean non-existant chunks in the dav/uploads/ namespace.
2018-06-04Merge pull request #322 from nextcloud/upstream/pr/6404Roeland Jago Douma
Excludes: Expand doc, Desktop.ini only in root folder
2018-06-04csync: Simplify csync_walk_local_tree/csync_walk_remote_treeOlivier Goffart
Small refactoring
2018-06-02Merge pull request #314 from nextcloud/upstream/pr/6373Roeland Jago Douma
Make sure ignored and conflict files show up in the issues tab even with partial local discovery
2018-05-31Move ClientProxy and ConnecitonValidator to guiOlivier Goffart
They are using the ConfigFile and are used to control when to sync rather than for the sync itself
2018-05-29Merge pull request #311 from nextcloud/upstream/pr/6371Roeland Jago Douma
Utility::fsCasePreserving: remove UNIT_TESTING ifdef
2018-05-26Merge pull request #307 from nextcloud/upstream/pr/6366Roeland Jago Douma
test/testsyncengine: testNoLocalEncoding is for Linux
2018-05-18Merge pull request #303 from nextcloud/upstream/issue/6322Roeland Jago Douma
SyncJournal: Don't use LIKE with paths
2018-05-16Excludes: Expand doc, Desktop.ini only in root folderChristian Kamm
The Desktop.ini exclude was added for 2.4 because we add such a file to the synced folder on Windows. It doesn't need to cover subdirectories.
2018-05-16SyncEngine: Make "local discovery?" question availableChristian Kamm
Also fix the minor bug that was mentioned and add tests.
2018-05-16Utility::fsCasePreserving: remove UNIT_TESTING ifdefOlivier Goffart
Since the release package will be build with unit test, we don't want to query the env variable at every call to fsCasePreserving. So only test the env variable at startup. And the testutility can still change the value. (The env variable is still used from t8.pl and maybe smashbox) Issue #6318
2018-05-16test/testsyncengine: testNoLocalEncoding is for LinuxMarkus Goetz
2018-05-15Conflicts with user name: Fix testsChristian Kamm
2018-05-15Conflicts: Add user name to conflict file name #6325Christian Kamm
For the case of uploading conflict files only.
2018-05-15SyncJournal: Don't use LIKE with pathsChristian Kamm
Paths can contain the wildcards % and _ and that would lead to odd behavior. This patch also clarifies the behavior of avoidReadFromDbOnNextSync() which previously dependend on whether "foo/bar" or "foo/bar/" was passed as input. Possibly affects #6322
2018-01-22TextXmlParse: Add truncated-xml testcase #6317Christian Kamm
2018-01-19Sync: Deal with file/folder conflicts #6312Christian Kamm
Previously conflicts with a different type on both ends lead to sync errors. Now they are handled in the expected way: the local item gets renamed and the remote item gets propagated downwards. This also adds a unittest for the TYPE_CHANGE case. That one looks like parts of it might be unified with CONFLICT cases.
2018-01-17Exclude matching: Speedup the full-path traversal caseChristian Kamm
Previously we'd use the full regex when the bname triggered a full-path matching to take place. Now we have a simplified full-traversal regex for this case that can be significantly faster to apply. Triggered by #5017 but doesn't actually solve it.
2018-01-13Remove unused c_strlistOlivier Goffart
2018-01-13Modernize out CMakeLists.txtOlivier Goffart
Mainly uses target_include_directories instead of include_directories so libraries public include directory get automatically added when adding the target in target_link_library
2018-01-13Remove unused c_pathOlivier Goffart
2018-01-13Get rid of csync_logOlivier Goffart
We use Qt's debugging code everywhere
2018-01-13Csync: use QElapsedTimer and qCInfo instead of CSYNC_LOG and its own csync ↵Olivier Goffart
time function This allow to remove all the csync time manipulation routne which are now unused
2018-01-13Build system: Get rid of QtVersionAbstraction.cmakeOlivier Goffart
Use modern cmake with target_link_libraries and Qt5:: that automatically add the include path and compile flags
2018-01-13Don't include sqlite3.h from headersOlivier Goffart
So that sqlite is not part of the public interface of csync (and that the sqlite include path don't need to be passed when compiling libsync or gui)
2018-01-11Merge remote-tracking branch 'origin/2.4'Olivier Goffart
Conflicts: src/libsync/networkjobs.cpp
2018-01-10Ignore files that can't be encoded for the filesystemChristian Kamm
There's an upstream bug where QTextCodec::canEncode returns true even though it should be false. This works around that issue and adds a test. The original work was done in 72809ef5b1aeb578976e4360ed267ac1c4d71ea6 See #6287, #5676, #5719 See https://bugreports.qt.io/browse/QTBUG-6925
2018-01-09Exclude regex: Restore old matching on Windows #6245Christian Kamm
Unfortunately matching behaved differently on Windows. This patch restores the previous matching behavior but still uses the new regular expression based matching. Further work will hopefully unify the behavior between platforms without breaking backwards compatibility.
2017-12-15Exclude: Use Qt to load the exclude fileOlivier Goffart
fopen does not work well with relative path tand forward slashes on windows This fix the windows textexcludedfiles test. And also make the code simpler. Note that the 'trimmed' might be a behavior change, but i think it is ok
2017-12-15Upload conflict files #4557Christian Kamm
If the server has the 'uploadConflictFiles' capability conflict files will be uploaded instead of ignored. Uploaded conflict files have the following headers set during upload OC-Conflict: 1 OC-ConflictBaseFileId: 172489174instanceid OC-ConflictBaseMtime: 1235789213 OC-ConflictBaseEtag: myetag when the data is available. Downloads accept the same headers in return when downloading a conflict file. In the absence of server support clients will identify conflict files through the file name pattern and attempt to deduce the base fileid. Base etag and mtime can't be deduced though. The upload job for a new conflict file will be triggered directly from the job that created the conflict file now. No second sync run is necessary anymore. This commit does not yet introduce a 'username' like identifier that automatically gets added to conflict file filenames (to name the files foo_conflict-Fred-1345.txt instead of just foo_conflict-1345.txt).
2017-12-15Unify item type enumChristian Kamm
Previously, there was csync_ftw_type_e and SyncFileItem::Type. Having two enums lead to a bug where Type::Unknown == Type::File that went unnoticed for a good while. This patch keeps only a single enum.
2017-12-15Fix the TestFolderMan on WindowsOlivier Goffart
2017-12-15Fix TestSyncEngine on windowsOlivier Goffart
2017-12-14SyncEngine: Recover when the PUT reply (or chunkin's MOVE) is lostOlivier Goffart
This can happen if the upload of a file is finished, but we just got disconnected right before recieving the reply containing the etag. So nothing was save din the DB, and we are not sure if the server recieved the file properly or not. Further local update of the file will cause a conflict. In order to fix this, store the checksum of the uploading file in the uploadinfo table of the local db (even if there is no chunking involved). And when we have a conflict, check that it is not because of this situation by checking the entry in the uploadinfo table. Issue #5106
2017-12-14TestSystem: Add QIODevice in the serverOverride function, and add a DelayedReplyOlivier Goffart
Preparing to add test that needs the QIODevice. Also make the DelayedReply so we can generalize the existing delay on FakeChunkMoveReply to any reply.
2017-12-13Merge remote-tracking branch 'origin/2.4'Christian Kamm
2017-12-12Journal: 64bit inodes, fix storing uint64s generallyChristian Kamm
In addition to using the right function when retrieving inodes this *also* fixes a more general bug ownsql had with storing uint64 values that didn't fit into an int64.
2017-12-08Utility: use QUrlQueryOlivier Goffart
For QUrl::setQuery is deprecated in Qt5
2017-12-07Excludes: Remove fnmatch codepathChristian Kamm
Now all exclude patterns can be translated to regular expressions.
2017-12-07Excludes: Translate full-path patterns to regexChristian Kamm
Improves full matches by more than an order of magnitude and also improves speed of traversal matches by roughly 20%, judging by the check_csync_exclude performance test.
2017-12-07Excludes: Introduce dir-only regex matchesChristian Kamm
2017-12-07Excludes: Optimize Desktop.ini checkChristian Kamm
2017-12-07Excludes: Refactor for pending improvementsChristian Kamm
Make ExcludedFiles something that is instantiated outside of the CSYNC context and then given to it as a hook. ExcludedFiles still lives in csync_exclude and the internal workings haven't been touched.
2017-12-07Merge remote-tracking branch 'origin/2.4'Olivier Goffart
Conflicts: src/csync/csync.cpp