Browse code

Test case for following symlinks (simplest case) (currently fails)

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

Aaron Maxwell authored on 2010/07/12 10:05:36
Showing 2 changed files
... ...
@@ -334,7 +334,9 @@ if have_wget:
334 334
 
335 335
 ## ====== Sync more to S3
336 336
 test_s3cmd("Sync more to S3", ['sync', 'testsuite/', 's3://%s/xyz/' % bucket(1), '--no-encrypt' ],
337
-	must_find = [ "File 'testsuite/.svn/entries' stored as '%s/xyz/.svn/entries' " % pbucket(1) ])
337
+	must_find = [ "File 'testsuite/.svn/entries' stored as '%s/xyz/.svn/entries' " % pbucket(1) ],
338
+	must_not_find_re = [ "linked.png"])
339
+           
338 340
 
339 341
 
340 342
 ## ====== Rename within S3
... ...
@@ -438,3 +440,7 @@ test_s3cmd("Remove empty bucket", ['rb', pbucket(1)],
438 438
 test_s3cmd("Remove remaining buckets", ['rb', '--recursive', pbucket(2), pbucket(3)],
439 439
 	must_find = [ "Bucket '%s/' removed" % pbucket(2),
440 440
 		      "Bucket '%s/' removed" % pbucket(3) ])
441
+
442
+## ====== Sync symbolic links
443
+test_s3cmd("Sync symbolic links", ['sync', 'testsuite/', 's3://%s/xyz/' % bucket(1), '--no-encrypt' ],
444
+	must_find_re = [ "linked.png"])
441 445
new file mode 120000
... ...
@@ -0,0 +1 @@
0
+logo.png
0 1
\ No newline at end of file