Browse code

add put/get single unicode filenames to run-tests

Matt Domsch authored on 2014/03/27 05:43:39
Showing 1 changed files
... ...
@@ -446,11 +446,22 @@ test_s3cmd("Get multiple files", ['get', '%s/xyz/etc2/Logo.PNG' % pbucket(1), '%
446 446
     retcode = 1,
447 447
     must_find = [ 'Destination must be a directory or stdout when downloading multiple sources.' ])
448 448
 
449
+## ====== put/get non-ASCII filenames
450
+test_s3cmd("Put unicode filenames", ['put', u'testsuite/encodings/UTF-8/ŪņЇЌœđЗ/Žůžo',  u'%s/xyz/encodings/UTF-8/ŪņЇЌœđЗ/Žůžo' % pbucket(1)],
451
+           retcode = 0,
452
+           must_find = [ 'stored as' ])
453
+
449 454
 
450 455
 ## ====== Make dst dir for get
451 456
 test_mkdir("Make dst dir for get", "testsuite-out")
452 457
 
453 458
 
459
+## ====== put/get non-ASCII filenames
460
+test_s3cmd("Get unicode filenames", ['get', u'%s/xyz/encodings/UTF-8/ŪņЇЌœđЗ/Žůžo' % pbucket(1), 'testsuite-out'],
461
+           retcode = 0,
462
+           must_find = [ 'saved as' ])
463
+
464
+
454 465
 ## ====== Get multiple files
455 466
 test_s3cmd("Get multiple files", ['get', '%s/xyz/etc2/Logo.PNG' % pbucket(1), '%s/xyz/etc/AtomicClockRadio.ttf' % pbucket(1), 'testsuite-out'],
456 467
     must_find = [ u"saved as 'testsuite-out/Logo.PNG'", u"saved as 'testsuite-out/AtomicClockRadio.ttf'" ])