#
# TomTom .ov2 tests
#

rm -f ${TMPDIR}/ov2.out
gpsbabel -i arc -f ${REFERENCE}/google.arc -o tomtom -F ${TMPDIR}/ov2.out
compare ${REFERENCE}/ov2-arc-out.ref ${TMPDIR}/ov2.out

rm -f ${TMPDIR}/ov2.out
gpsbabel -i geo -f ${REFERENCE}/gl.loc -o tomtom -F ${TMPDIR}/ov2.out
compare ${REFERENCE}/ov2-geo-out.ref ${TMPDIR}/ov2.out

# round trip test including CP-1252 conversion
rm -f ${TMPDIR}/tomtom.gpx
gpsbabel -i tomtom -f ${REFERENCE}/tomtom.ov2 -o gpx -F ${TMPDIR}/tomtom.gpx
compare ${REFERENCE}/tomtom.gpx ${TMPDIR}/tomtom.gpx

rm -f ${TMPDIR}/tomtom.ov2
gpsbabel -i gpx -f ${REFERENCE}/tomtom.gpx -o tomtom -F ${TMPDIR}/tomtom.ov2
bincompare ${REFERENCE}/tomtom.ov2 ${TMPDIR}/tomtom.ov2
