2 # Swaps the byte order of test EXIF files and ensures the data don't change.
5 trap 'rm -f "${TMPLOG}"' 0
6 # Ensure that names are untranslated
10 export LANG LANGUAGE LC_ALL
11 for fn in "${srcdir}"/testdata/*.jpg ; do
12 ./test-parse --swap-byte-order "${fn}" | sed -e '/^New byte order:/d' > "${TMPLOG}"
13 if ! diff "${fn}".parsed "${TMPLOG}"; then
14 echo Error parsing "$fn"