You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.6 KiB
Python
59 lines
2.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import system_tests
|
|
|
|
|
|
@system_tests.CopyFiles("$data_path/exiv2-empty.jpg")
|
|
class EasyaccessTest(metaclass=system_tests.CaseMeta):
|
|
|
|
url = "https://github.com/Exiv2/exiv2/pull/287"
|
|
|
|
filename = "$data_path/exiv2-empty_copy.jpg"
|
|
|
|
commands = [
|
|
"""$exiv2 -u -v -M"set Exif.Image.Make Samsung" $filename""",
|
|
"$easyaccess_test $filename"
|
|
]
|
|
stdout = [
|
|
"""File 1/1: $filename
|
|
Set Exif.Image.Make "Samsung" (Ascii)
|
|
""",
|
|
"""Orientation ( ) :
|
|
ISO speed ( ) :
|
|
Date & time original ( ) :
|
|
Flash bias ( ) :
|
|
Exposure mode ( ) :
|
|
Scene mode ( ) :
|
|
Macro mode ( ) :
|
|
Image quality ( ) :
|
|
White balance ( ) :
|
|
Lens name ( ) :
|
|
Saturation ( ) :
|
|
Sharpness ( ) :
|
|
Contrast ( ) :
|
|
Scene capture type ( ) :
|
|
Metering mode ( ) :
|
|
Camera make (Exif.Image.Make ) : Samsung
|
|
Camera model ( ) :
|
|
Exposure time ( ) :
|
|
FNumber ( ) :
|
|
Shutter speed value ( ) :
|
|
Aperture value ( ) :
|
|
Brightness value ( ) :
|
|
Exposure bias ( ) :
|
|
Max aperture value ( ) :
|
|
Subject distance ( ) :
|
|
Light source ( ) :
|
|
Flash ( ) :
|
|
Camera serial number ( ) :
|
|
Focal length ( ) :
|
|
Subject location/area ( ) :
|
|
Flash energy ( ) :
|
|
Exposure index ( ) :
|
|
Sensing method ( ) :
|
|
AF point ( ) :
|
|
"""
|
|
]
|
|
stderr = [""] * 2
|
|
retval = [0] * 2
|