|
Packit Service |
fb147c |
# -*- coding: utf-8 -*-
|
|
Packit Service |
fb147c |
|
|
Packit Service |
fb147c |
from system_tests import CaseMeta, CopyFiles, path
|
|
Packit Service |
fb147c |
@CopyFiles("$data_path/IMG_0246.exv")
|
|
Packit Service |
fb147c |
|
|
Packit Service |
fb147c |
class test_issue_1046Test(metaclass=CaseMeta):
|
|
Packit Service |
fb147c |
|
|
Packit Service |
fb147c |
filename = path("$data_path/IMG_0246_copy.exv")
|
|
Packit Service |
fb147c |
# Use the """ string syntax for -M"set Bla.Dee.Bla" commands to ensure they run on Windows!
|
|
Packit Service |
fb147c |
commands = [ "$exiv2 -pt -b -g GPSInfo -g UserCom $filename"
|
|
Packit Service |
fb147c |
, "$exiv2 -pv -b -g GPSInfo -g UserCom $filename"
|
|
Packit Service |
fb147c |
,"""$exiv2 -M"set Exif.Photo.UserComment charset=Ascii how now brown cow" $filename"""
|
|
Packit Service |
fb147c |
, "$exiv2 -pt -b -g UserComment $filename"
|
|
Packit Service |
fb147c |
, "$exiv2 -pv -b -g UserComment $filename"
|
|
Packit Service |
fb147c |
,"""$exiv2 -M"set Exif.Photo.UserComment charset=Unicode \u0041\u0042" $filename"""
|
|
Packit Service |
fb147c |
, "$exiv2 -pt -b -g UserComment $filename"
|
|
Packit Service |
fb147c |
, "$exiv2 -pv -b -g UserComment $filename"
|
|
Packit Service |
fb147c |
,"""$exiv2 -M"set Exif.Photo.UserComment hello world" $filename"""
|
|
Packit Service |
fb147c |
, "$exiv2 -pt -b -g UserComment $filename"
|
|
Packit Service |
fb147c |
, "$exiv2 -pv -b -g UserComment $filename"
|
|
Packit Service |
fb147c |
,"""$exiv2 -M"set Exif.GPSInfo.GPSProcessingMethod charset=Unicode \u0052\u006f\u0062\u0069\u006e" $filename"""
|
|
Packit Service |
fb147c |
,"""$exiv2 -M"set Exif.GPSInfo.GPSAreaInformation charset=Ascii area information" $filename"""
|
|
Packit Service |
fb147c |
, "$exiv2 -pt -b -g GPSPro -g GPSArea $filename"
|
|
Packit Service |
fb147c |
, "$exiv2 -pv -b -g GPSPro -g GPSArea $filename"
|
|
Packit Service |
fb147c |
]
|
|
Packit Service |
fb147c |
stdout = ["""Exif.Photo.UserComment Undefined 12 charset=Unicode AB
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSVersionID Byte 4 2.2.0.0
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSLatitudeRef Ascii 2 North
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSLatitude Rational 3 51deg 23' 13"
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSLongitudeRef Ascii 2 West
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSLongitude Rational 3 0deg 44' 27"
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSAltitudeRef Byte 1 Above sea level
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSAltitude Rational 1 104.2 m
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSTimeStamp Rational 3 10:34:11
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSMapDatum Ascii 7 WGS-84
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSProcessingMethod Undefined 18 charset=Ascii HYBRID-FIX
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSAreaInformation Undefined 23 Surrey, England
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSDateStamp Ascii 20 2020:02:02 10:34:11
|
|
Packit Service |
fb147c |
""","""0x9286 Photo UserComment Undefined 12 charset=Unicode AB
|
|
Packit Service |
fb147c |
0x0000 GPSInfo GPSVersionID Byte 4 2 2 0 0
|
|
Packit Service |
fb147c |
0x0001 GPSInfo GPSLatitudeRef Ascii 2 N
|
|
Packit Service |
fb147c |
0x0002 GPSInfo GPSLatitude Rational 3 51/1 23/1 13/1
|
|
Packit Service |
fb147c |
0x0003 GPSInfo GPSLongitudeRef Ascii 2 W
|
|
Packit Service |
fb147c |
0x0004 GPSInfo GPSLongitude Rational 3 0/1 44/1 27/1
|
|
Packit Service |
fb147c |
0x0005 GPSInfo GPSAltitudeRef Byte 1 0
|
|
Packit Service |
fb147c |
0x0006 GPSInfo GPSAltitude Rational 1 10420/100
|
|
Packit Service |
fb147c |
0x0007 GPSInfo GPSTimeStamp Rational 3 10/1 34/1 11/1
|
|
Packit Service |
fb147c |
0x0012 GPSInfo GPSMapDatum Ascii 7 WGS-84
|
|
Packit Service |
fb147c |
0x001b GPSInfo GPSProcessingMethod Undefined 18 charset=Ascii HYBRID-FIX
|
|
Packit Service |
fb147c |
0x001c GPSInfo GPSAreaInformation Undefined 23 Surrey, England
|
|
Packit Service |
fb147c |
0x001d GPSInfo GPSDateStamp Ascii 20 2020:02:02 10:34:11
|
|
Packit Service |
fb147c |
""","","""Exif.Photo.UserComment Undefined 25 charset=Ascii how now brown cow
|
|
Packit Service |
fb147c |
""","""0x9286 Photo UserComment Undefined 25 charset=Ascii how now brown cow
|
|
Packit Service |
fb147c |
""","","""Exif.Photo.UserComment Undefined 12 charset=Unicode AB
|
|
Packit Service |
fb147c |
""","""0x9286 Photo UserComment Undefined 12 charset=Unicode AB
|
|
Packit Service |
fb147c |
""","","""Exif.Photo.UserComment Undefined 19 hello world
|
|
Packit Service |
fb147c |
""","""0x9286 Photo UserComment Undefined 19 hello world
|
|
Packit Service |
fb147c |
""","","","""Exif.GPSInfo.GPSProcessingMethod Undefined 18 charset=Unicode Robin
|
|
Packit Service |
fb147c |
Exif.GPSInfo.GPSAreaInformation Undefined 24 charset=Ascii area information
|
|
Packit Service |
fb147c |
""","""0x001b GPSInfo GPSProcessingMethod Undefined 18 charset=Unicode Robin
|
|
Packit Service |
fb147c |
0x001c GPSInfo GPSAreaInformation Undefined 24 charset=Ascii area information
|
|
Packit Service |
fb147c |
"""
|
|
Packit Service |
fb147c |
]
|
|
Packit Service |
fb147c |
stderr = [""]*len(commands)
|
|
Packit Service |
fb147c |
retval = [ 0]*len(commands)
|