From: robertl Date: Mon, 15 May 2006 20:57:37 +0000 (+0000) Subject: Add TPO test cases from Curt. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~2833 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=809dd7233f04318dfb2f92e1690b1815420e046d;p=gpsbabel.git Add TPO test cases from Curt. --- diff --git a/gpsbabel/reference/tpo-sample3.gpx b/gpsbabel/reference/tpo-sample3.gpx new file mode 100644 index 000000000..1d38e89b8 --- /dev/null +++ b/gpsbabel/reference/tpo-sample3.gpx @@ -0,0 +1,500 @@ + + + + + 2428.000000 + 001 + 001 + 001 + + + 2439.000000 + 002 + 002 + 002 + + + 2462.000000 + 003 + WITH MESSAGE + WITH MESSAGE + + + 2559.000000 + GPSRTE0 + GPSRTE0 + GPSRTE0 + + + 2582.000000 + GPSRTE1 + GPSRTE1 + GPSRTE1 + + + 2586.000000 + GPSRTE2 + GPSRTE2 + GPSRTE2 + + + 2612.000000 + GPSRTE3 + GPSRTE3 + GPSRTE3 + + + 2606.000000 + GPSRTE4 + GPSRTE4 + GPSRTE4 + + + 2632.000000 + GPSRTE5 + GPSRTE5 + GPSRTE5 + + + 2627.000000 + GPSRTE6 + GPSRTE6 + GPSRTE6 + + + 2622.000000 + GPSRTE7 + GPSRTE7 + GPSRTE7 + + + 2639.000000 + GPSRTE8 + GPSRTE8 + GPSRTE8 + + + 2599.000000 + GPSRTE9 + GPSRTE9 + GPSRTE9 + + + NOTE 1 + This is a note that has a photo attached + This is a note that has a photo attached + w:\photo.jpg + + + NOTE 2 + 2nd note, with link to a web page + 2nd note, with link to a web page + http://www.defghi.org + + + NOTE 3 + 3rd note, with a link to a document + 3rd note, with a link to a document + c:document.txt + + + SYM 1 + SYM 1 + SYM 1 + + + SYM 2 + SYM 2 + SYM 2 + + + SYM 3 + SYM 3 + SYM 3 + + + SYM 4 + SYM 4 + SYM 4 + + + TXT 1 + test + test + + + TXT 2 + test2 with new style + test2 with new style + + + TXT 3 + 2.55 miles + 2.55 miles + + + RTE 1 + 1 + + 2559.000000 + GPSRTE0 + + + 2582.000000 + GPSRTE1 + + + 2586.000000 + GPSRTE2 + + + 2612.000000 + GPSRTE3 + + + 2606.000000 + GPSRTE4 + + + 2632.000000 + GPSRTE5 + + + 2627.000000 + GPSRTE6 + + + 2622.000000 + GPSRTE7 + + + 2639.000000 + GPSRTE8 + + + 2599.000000 + GPSRTE9 + + + + crazy route 4.49 miles long +1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TRK 2 +2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TRK 3 +3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gpsbabel/reference/tpo-sample3.tpo b/gpsbabel/reference/tpo-sample3.tpo new file mode 100644 index 000000000..af5065a45 Binary files /dev/null and b/gpsbabel/reference/tpo-sample3.tpo differ diff --git a/gpsbabel/testo b/gpsbabel/testo index ba76ef64b..494da7cc0 100755 --- a/gpsbabel/testo +++ b/gpsbabel/testo @@ -213,11 +213,21 @@ compare ${TMPDIR}/tpg.mxf ${TMPDIR}/topo.mxf # tpo-sample1.tpo, tpo-sample1.gpx, tpo-sample2.gpx, and # tpo-sample2.tpo. These are used to check the conversion to/from # TPO format. +# +# Version 2.x tests rm -f ${TMPDIR}/tpo-sample1.gpx ${TMPDIR}/tpo-sample2.tpo -${PNAME} -t -i tpo -f ${REFERENCE}/track/tpo-sample1.tpo -o gpx -F ${TMPDIR}/tpo-sample1.gpx -compare ${TMPDIR}/tpo-sample1.gpx ${REFERENCE}/track/tpo-sample1.gpx -#${PNAME} -t -i gpx -f ${REFERENCE}/track/tpo-sample2.gpx -o tpo -F ${TMPDIR}/tpo-sample2.tpo -#bincompare ${TMPDIR}/tpo-sample2.tpo ${REFERENCE}/track/tpo-sample2.tpo +${PNAME} -t -i tpo -f reference/track/tpo-sample1.tpo -o gpx -F ${TMPDIR}/tpo-sample1.gpx +compare ${TMPDIR}/tpo-sample1.gpx reference/track/tpo-sample1.gpx +#${PNAME} -t -i gpx -f reference/track/tpo-sample2.gpx -o tpo -F ${TMPDIR}/tpo-sample2.tpo +#bincompare ${TMPDIR}/tpo-sample2.tpo reference/track/tpo-sample2.tpo +# +# Version 3.x tests. Remove the timestamp from the generated file +# so that the compare will succeed. +rm -f ${TMPDIR}/tpo-sample3.gpx ${TMPDIR}/tpo-sample3.gpx2 +${PNAME} -t -r -w -i tpo -f reference/tpo-sample3.tpo -o gpx -F ${TMPDIR}/tpo-sample3.gpx +# Remove the timestamp +grep -v time <${TMPDIR}/tpo-sample3.gpx >${TMPDIR}/tpo-sample3.gpx2 +compare ${TMPDIR}/tpo-sample3.gpx2 reference/tpo-sample3.gpx # OZI (OziExplorer 1.1) file format rm -f ${TMPDIR}/oz.wpt ${TMPDIR}/ozi.wpt