rm -f ${TMPDIR}/bushnell.*
gpsbabel -i bushnell -f ${REFERENCE}/bushnell.wpt -o gpx -F ${TMPDIR}/bushnell.gpx
compare ${REFERENCE}/bushnell.gpx ${TMPDIR}/bushnell.gpx

# This format has a goofy output naming convention; each wpt must be in a 
# unique file, so the output name is a template.
gpsbabel -i bushnell -f ${REFERENCE}/bushnell.wpt -o bushnell -F ${TMPDIR}/bushnell
bincompare ${REFERENCE}/bushnell.wpt ${TMPDIR}/bushnell-0.wpt

gpsbabel -i bushnell_trl -f ${REFERENCE}/bushnell_trl.trl -o gpx -F ${TMPDIR}/bushnell_trl.gpx -o bushnell_trl -F ${TMPDIR}/bush_trl.trl
compare ${REFERENCE}/bushnell_trl.gpx ${TMPDIR}/bushnell_trl.gpx

# Because of numeric instability, we don't actually do the compare, but there's
# value just in spinning through the writer.
gpsbabel -i bushnell_trl -f ${TMPDIR}/bush_trl.trl -o gpx -F ${TMPDIR}/bush~gpx.gpx
# compare ${REFERENCE}/bushnell_trl.gpx ${TMPDIR}/bush~gpx.gpx
