diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2015-02-06 12:22:34 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2015-02-06 12:23:20 +0300 |
commit | 2a88f5083c1df20068dac12212561ac1819300ca (patch) | |
tree | 0436a69bf1f7c92c01ab03c88b7cbdc4c975ee63 /csync | |
parent | 5ec793e0457012dd9d49520abeddf376d0225428 (diff) |
t6.pl: Add a test that re-upload a chunked file with lot of chunks
Diffstat (limited to 'csync')
-rwxr-xr-x | csync/tests/ownCloud/t6.pl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/csync/tests/ownCloud/t6.pl b/csync/tests/ownCloud/t6.pl index 8df72eb2f..71ea39698 100755 --- a/csync/tests/ownCloud/t6.pl +++ b/csync/tests/ownCloud/t6.pl @@ -152,6 +152,23 @@ chunkFileTest( "twoChunkSizeminusone.bin", 2*$ChunkSize-1); printInfo("Big file exactly as big as 2*chunk size plus 1 byte"); chunkFileTest( "twoChunkSizeplusone.bin", 2*$ChunkSize+1); +printInfo("Big file with many chunks"); +chunkFileTest( "bigFileManyChunk.bin", 10*$ChunkSize); + + +printInfo("Big file with many chunks reuploaded twice (1)"); +createLocalFile( "BIG4.file", 21762122 ); +csync(); +assertLocalAndRemoteDir( '', 1); + + +printInfo("Big file with many chunks reuploaded twice (2)"); + +createLocalFile( "BIG4.file", 21783424 ); +csync(); +assertLocalAndRemoteDir( '', 1); + + # ================================================================== |