mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add test for issue 1329
This commit is contained in:
parent
68c70ab5b6
commit
b8090a134d
@ -78,9 +78,10 @@ assertLocalAndRemoteDir( 'fromLocal1', 0);
|
||||
|
||||
# remove a local dir
|
||||
printInfo( "Remove a local directory.");
|
||||
localCleanup( localDir() . 'remoteToLocal1/rtlX' );
|
||||
localCleanup( 'remoteToLocal1/rtlX' );
|
||||
csync();
|
||||
assertLocalAndRemoteDir( 'fromLocal1', 0);
|
||||
assert( ! -e localDir().'remoteToLocal1/rtlX' );
|
||||
|
||||
# create a false conflict, only the mtimes are changed, by content are equal.
|
||||
printInfo( "Create a false conflict.");
|
||||
@ -105,6 +106,33 @@ assert( $localMD5 eq $realMD5 );
|
||||
assert( glob(localDir().'remoteToLocal1/kernelcrash_conflict-*.txt' ) );
|
||||
|
||||
|
||||
# prepare test for issue 1329, rtlX need to be modified
|
||||
# [https://github.com/owncloud/mirall/issues/1329]
|
||||
printInfo( "Add a local directory");
|
||||
system("cp -r 'toremote1/rtl1/' '" . localDir(). "remoteToLocal1/rtlX'");
|
||||
csync();
|
||||
assertLocalAndRemoteDir( 'fromLocal1', 0);
|
||||
|
||||
# remove a local dir (still for issue 1329)
|
||||
printInfo( "Remove that directory.");
|
||||
localCleanup( 'remoteToLocal1/rtlX' );
|
||||
csync();
|
||||
assertLocalAndRemoteDir( 'fromLocal1', 0);
|
||||
assert( ! -e localDir().'remoteToLocal1/rtlX' );
|
||||
|
||||
|
||||
# add it back again (still for issue 1329)
|
||||
printInfo( "Add back the local dir.");
|
||||
system("cp -r 'toremote1/rtl1/' '" . localDir(). "remoteToLocal1/rtlX'");
|
||||
assert( -e localDir().'remoteToLocal1/rtlX' );
|
||||
assert( -e localDir().'remoteToLocal1/rtlX/rtl11/file.txt' );
|
||||
csync();
|
||||
assertLocalAndRemoteDir( 'fromLocal1', 0);
|
||||
assert( -e localDir().'remoteToLocal1/rtlX' );
|
||||
assert( -e localDir().'remoteToLocal1/rtlX/rtl11/file.txt' );
|
||||
|
||||
|
||||
|
||||
# ==================================================================
|
||||
|
||||
cleanup();
|
||||
|
||||
1
tests/ownCloud/toremote1/rtl1/rtl11/file.txt
Normal file
1
tests/ownCloud/toremote1/rtl1/rtl11/file.txt
Normal file
@ -0,0 +1 @@
|
||||
hello Olivier
|
||||
Loading…
Reference in New Issue
Block a user