Add swap-byte-order.sh to test libexif's byte order conversion function.
authorDan Fandrich <dan@coneharvesters.com>
Thu, 1 Nov 2018 13:24:31 +0000 (14:24 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 1 Nov 2018 14:09:09 +0000 (15:09 +0100)
commit8adb1700131e6d9b0c6ac1b5c34f2e2f58b23a9d
treedbe2f8740deefd3b9c95f6a101586486b7a4cb9a
parent6ea0f9b87bee9d435f1ada397c0b3b1d8b674e84
Add swap-byte-order.sh to test libexif's byte order conversion function.

This is accomplished by adding a feature to test-parse.c to switch the
byte order before dumping the EXIF output. Additionally, the MakerNote
values are now logged in the dump as well, in the same way as the
regular tags, to better catch regressions.

This new test uncovered a bug in the decoding of the
MNOTE_NIKON_TAG_FIRMWARE tag whose data should not be treated as being
endian-specific.
13 files changed:
libexif/olympus/mnote-olympus-entry.c
test/Makefile.am
test/swap-byte-order.sh [new file with mode: 0755]
test/test-parse.c
test/testdata/canon_makernote_variant_1.jpg.parsed
test/testdata/fuji_makernote_variant_1.jpg.parsed
test/testdata/olympus_makernote_variant_2.jpg.parsed
test/testdata/olympus_makernote_variant_3.jpg.parsed
test/testdata/olympus_makernote_variant_4.jpg.parsed
test/testdata/olympus_makernote_variant_5.jpg.parsed
test/testdata/pentax_makernote_variant_2.jpg.parsed
test/testdata/pentax_makernote_variant_3.jpg.parsed
test/testdata/pentax_makernote_variant_4.jpg.parsed