# iGo8
# This format has some jitter in the first 64 bytes of the header.
# So we read our reference track, spin to GPX.
# Read that track, spin to igo.
# read the igo file we just wrote, and spin that to GPX.
# compare the two GPX files.
gpsbabel -i igo8 -f ${REFERENCE}/track/igo8.trk -o gpx -F ${TMPDIR}/igo.gpx
gpsbabel -i gpx -f ${TMPDIR}/igo.gpx -o igo8 -F ${TMPDIR}/new-igo.trk
gpsbabel -i igo8 -f ${TMPDIR}/new-igo.trk -o gpx -F ${TMPDIR}/new-igo2.gpx
compare ${TMPDIR}/igo.gpx ${TMPDIR}/new-igo2.gpx
#  On 6/23/10, we received reports of IGO files that were trailing padded.
# verify that one such files converts sensibly to GPX.

gpsbabel -i igo8 -f ${REFERENCE}/track/igo8_padded.trk -o gpx -F ${TMPDIR}/igo8_padded.gpx
compare reference/track/igo8_padded~gpx.gpx ${TMPDIR}/igo8_padded.gpx
