[gvfs] gvfs-test: Refresh MTP record



commit f25f929a1574a2d874d164895ec6693abb87025b
Author: Martin Pitt <martinpitt gnome org>
Date:   Thu Nov 7 16:37:05 2013 +0100

    gvfs-test: Refresh MTP record
    
    - DCIM/100CANON/IMG_000?.JPG are from test/files/source-gphoto/
    
    - sine.ogg was generated with
      gst-launch-1.0 audiotestsrc num-buffers=10 ! audioconvert ! \
      audioresample ! vorbisenc ! oggmux ! filesink location=sine.ogg
    
    - Record started with
      umockdev-record -i /dev/bus/usb/001/017=test/files/mtp_xperia.ioctl /usr/lib/gvfs/gvfsd
    
    - Recorded commands (in a different terminal):
      gvfs-mount 'mtp://[usb:001,017]'
      gvfs-ls 'mtp://[usb:001,017]/SD-Karte'
      gvfs-ls 'mtp://[usb:001,017]/SD-Karte/Music'
      gvfs-ls 'mtp://[usb:001,017]/SD-Karte/Music/GStreamer - The Test Sine'
      gvfs-info 'mtp://[usb:001,017]/SD-Karte/Music/GStreamer - The Test Sine'
      gvfs-info 'mtp://[usb:001,017]/SD-Karte/Music/GStreamer - The Test Sine/sine.ogg'
      gvfs-cat 'mtp://[usb:001,017]/SD-Karte/Music/GStreamer - The Test Sine/sine.ogg'
      gvfs-cat 'mtp://[usb:001,017]/SD-Karte/hello.txt'
      gvfs-info 'mtp://[usb:001,017]/SD-Karte/hello.txt'
      gvfs-info 'mtp://[usb:001,017]/SD-Karte/DCIM/100CANON/IMG_0001.JPG'
      gvfs-cat 'mtp://[usb:001,017]/SD-Karte/DCIM/100CANON/IMG_0001.JPG'
      gvfs-mount -u 'mtp://[usb:001,017]'

 test/files/mtp_xperia.ioctl.xz |  Bin 8184 -> 5556 bytes
 test/gvfs-test                 |    4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test/files/mtp_xperia.ioctl.xz b/test/files/mtp_xperia.ioctl.xz
index f929398..a39c320 100644
Binary files a/test/files/mtp_xperia.ioctl.xz and b/test/files/mtp_xperia.ioctl.xz differ
diff --git a/test/gvfs-test b/test/gvfs-test
index 7360d53..1598a40 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -1750,7 +1750,7 @@ class Mtp(GvfsTestCase):
 
             out = self.program_out_success(['gvfs-info', uri + '/SD-Karte/Music/GStreamer - The Test 
Sine/sine.ogg'])
             self.assertIn('standard::content-type: audio/ogg', out)
-            self.assertIn('standard::size: 4400', out)
+            self.assertIn('standard::size: 4033', out)
             self.assertIn('access::can-read: TRUE', out)
             self.assertIn('access::can-write: TRUE', out)
             self.assertIn('access::can-delete: TRUE', out)
@@ -1769,7 +1769,7 @@ class Mtp(GvfsTestCase):
             # photo
             out = self.program_out_success(['gvfs-info', uri + '/SD-Karte/DCIM/100CANON/IMG_0001.JPG'])
             self.assertIn('standard::content-type: image/jpeg', out)
-            self.assertIn('standard::size: 8843', out)
+            self.assertIn('standard::size: 4151', out)
             self.assertIn('preview::icon:', out)
 
             out = subprocess.check_output(['gvfs-cat', uri + '/SD-Karte/DCIM/100CANON/IMG_0001.JPG'])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]