mirror of
https://github.com/openharmony/third_party_libexif.git
synced 2026-07-01 12:47:16 -04:00
60667a9273
Signed-off-by: zhang-xiaobo1997 <tony.zhangxiaobo@huawei.com>
22 lines
544 B
Bash
22 lines
544 B
Bash
#!/bin/sh
|
|
# Parses test EXIF files and compares the results to that expected
|
|
#
|
|
# Copyright (C) 2018-2021 Dan Fandrich <dan@coneharvesters.com>, et. al.
|
|
# SPDX-License-Identifier: LGPL-2.0-or-later
|
|
|
|
srcdir="${srcdir:-.}"
|
|
TMPLOG="$(mktemp)"
|
|
trap 'rm -f "${TMPLOG}"' 0
|
|
# Ensure that names are untranslated
|
|
LANG=
|
|
LANGUAGE=
|
|
LC_ALL=C
|
|
export LANG LANGUAGE LC_ALL
|
|
for fn in "${srcdir}"/testdata/*.jpg ; do
|
|
./test-parse "${fn}" > "${TMPLOG}"
|
|
if ! diff "${fn}".parsed "${TMPLOG}"; then
|
|
echo Error parsing "$fn"
|
|
exit 1
|
|
fi
|
|
done
|