Permalink
Browse files

Test for s3cmd put --follow-symlinks

  • Loading branch information...
redsymbol committed Jul 18, 2010
1 parent 7b5df26 commit 8c3bd0264a1e62ecb509497b38c6ee9c73806dc7
Showing with 5 additions and 0 deletions.
  1. +4 −0 run-tests.py
  2. +1 −0 testsuite/etc/linked1.png
View
@@ -392,6 +392,10 @@ def pbucket(tail):
"File %s/xyz/blahBlah/blah.txt copied to %s/copy/blahBlah/blah.txt" % (pbucket(1), pbucket(2)) ],
must_not_find = [ ".svn" ])
+## ====== Put symbolic link
+test_s3cmd("Put symbolic links", ['put', 'testsuite/etc/linked1.png', 's3://%s/xyz/' % bucket(1),'--follow-symlinks' ],
+ must_find_re = [ "linked1.png"])
+
## ====== Sync symbolic links
test_s3cmd("Sync symbolic links", ['sync', 'testsuite/', 's3://%s/xyz/' % bucket(1), '--no-encrypt', '--follow-symlinks' ],
must_find_re = [ "linked.png"])

0 comments on commit 8c3bd02

Please sign in to comment.