Browse code

Test for s3cmd put --follow-symlinks

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/branches/amax-follow-symlinks@425 830e0280-6d2a-0410-9c65-932aecc39d9d

Aaron Maxwell authored on 2010/07/19 04:28:56
Showing 2 changed files
... ...
@@ -392,6 +392,10 @@ test_s3cmd("Recursive copy, set ACL", ['cp', '-r', '--acl-public', '%s/xyz/' % p
392 392
 	              "File %s/xyz/blahBlah/blah.txt copied to %s/copy/blahBlah/blah.txt" % (pbucket(1), pbucket(2)) ],
393 393
 	must_not_find = [ ".svn" ])
394 394
 
395
+## ====== Put symbolic link
396
+test_s3cmd("Put symbolic links", ['put', 'testsuite/etc/linked1.png', 's3://%s/xyz/' % bucket(1),'--follow-symlinks' ],
397
+	must_find_re = [ "linked1.png"])
398
+
395 399
 ## ====== Sync symbolic links
396 400
 test_s3cmd("Sync symbolic links", ['sync', 'testsuite/', 's3://%s/xyz/' % bucket(1), '--no-encrypt', '--follow-symlinks' ],
397 401
 	must_find_re = [ "linked.png"])
398 402
new file mode 120000
... ...
@@ -0,0 +1 @@
0
+logo.png
0 1
\ No newline at end of file