Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 799 lines (685 sloc) 32.389 kb
5a127ad0 »
2004-04-09 Fix zero init of struct WAY (again).
1 GPSBABEL_FREEZE_TIME=y
2 export GPSBABEL_FREEZE_TIME
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
3
76d68d4e »
2002-11-21 Tighten test suite for Windows; sync it to UNIX one more closely.
4 PNAME=${PNAME:-./gpsbabel}
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
5 DIFF=${DIFF:-diff}
7fff0773 »
2004-07-22 Add human-readable testo case (and fix bugs)
6 OD=${OD:-od -Ax -txC -v}
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
7
66ac28e4 »
2002-09-19 Misc code cleanups from Alex.
8 TMPDIR=/tmp/gpsbabel.$$
9 mkdir -p $TMPDIR
10 trap "rm -fr $TMPDIR" 0 1 2 3 15
11
7fff0773 »
2004-07-22 Add human-readable testo case (and fix bugs)
12 bincompare()
13 {
14 rm -f ${TMPDIR}/bc1
15 rm -f ${TMPDIR}/bc2
16 ${OD} $1 >${TMPDIR}/bc1
17 ${OD} $2 >${TMPDIR}/bc2
d94c483a »
2004-09-17 Oops, didn't mean to comment that line out. Also, bincompare is easie…
18 ${DIFF} -u ${TMPDIR}/bc1 ${TMPDIR}/bc2 || {
7fff0773 »
2004-07-22 Add human-readable testo case (and fix bugs)
19 echo ERROR binary comparing $*
20 exit 1
21 }
22 }
23
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
24 compare()
25 {
26 ${DIFF} $* || {
27 echo ERROR comparing $*
28 exit 1
29 }
30 }
31
b42c49cc »
2003-06-12 solidify duplicate sort states in testo
32 sort_and_compare()
33 {
34 sort $1 > $TMPDIR/s1
35 sort $2 > $TMPDIR/s2
36 compare $TMPDIR/s1 $TMPDIR/s2
37 }
38
14b7cae2 »
2002-07-31 Initial revision
39
40 # Geocaching .loc
66ac28e4 »
2002-09-19 Misc code cleanups from Alex.
41 rm -f ${TMPDIR}/gl.loc
42 ${PNAME} -i geo -f geocaching.loc -o geo -F ${TMPDIR}/gl.loc
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
43 compare ${TMPDIR}/gl.loc reference
14b7cae2 »
2002-07-31 Initial revision
44
45 # GPSUtil
9c9b0639 »
2004-01-17 Add case for gpsutil read & psp write.
46 rm -f ${TMPDIR}/gu.wpt ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
66ac28e4 »
2002-09-19 Misc code cleanups from Alex.
47 ${PNAME} -i geo -f geocaching.loc -o gpsutil -F ${TMPDIR}/gu.wpt
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
48 compare ${TMPDIR}/gu.wpt reference
9c9b0639 »
2004-01-17 Add case for gpsutil read & psp write.
49 ${PNAME} -i gpsutil -f ${TMPDIR}/gu.wpt -o gpx -F ${TMPDIR}/1.gpx
50 ${PNAME} -i gpsutil -f reference/gu.wpt -o gpx -F ${TMPDIR}/2.gpx
51 compare ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
14b7cae2 »
2002-07-31 Initial revision
52
53 # GPSman
66ac28e4 »
2002-09-19 Misc code cleanups from Alex.
54 rm -f ${TMPDIR}/gm.gm ${TMPDIR}/gm.gm+
55 ${PNAME} -i geo -f geocaching.loc -o gpsman -F ${TMPDIR}/gm.gm
56 ${PNAME} -i gpsman -f ${TMPDIR}/gm.gm -o gpsutil -F ${TMPDIR}/gm.gm+
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
57 compare ${TMPDIR}/gm.gm+ ${TMPDIR}/gu.wpt
14b7cae2 »
2002-07-31 Initial revision
58
59 # GPX
66ac28e4 »
2002-09-19 Misc code cleanups from Alex.
60 rm -f ${TMPDIR}/gl.gpx ${TMPDIR}/gpx.gpx
61 ${PNAME} -i geo -f geocaching.loc -o gpx -F ${TMPDIR}/gl.gpx
62 ${PNAME} -i gpx -f ${TMPDIR}/gl.gpx -o gpsutil -F ${TMPDIR}/gpx.gpx
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
63 compare ${TMPDIR}/gpx.gpx ${TMPDIR}/gu.wpt
14b7cae2 »
2002-07-31 Initial revision
64
65 # Magellan Mapsend
66ac28e4 »
2002-09-19 Misc code cleanups from Alex.
66 rm -f ${TMPDIR}/mm.mapsend ${TMPDIR}/mm.gps
67 ${PNAME} -i geo -f geocaching.loc -o mapsend -F ${TMPDIR}/mm.mapsend
68 ${PNAME} -i mapsend -f ${TMPDIR}/mm.mapsend -o gpsutil -F ${TMPDIR}/mm.gps
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
69 compare ${TMPDIR}/mm.gps ${TMPDIR}/gu.wpt
14b7cae2 »
2002-07-31 Initial revision
70
71 # Magellan serial
72 # TODO
73
3a86ae0c »
2002-09-19 Add tiger reads & testsuite.
74 # Tiger
75 # This one is a little tacky, becuase it's a very lossy format.
76 # so we simply test we can write it, and then read it and write it and
77 # get an identical file back.
78 rm -f ${TMPDIR}/tiger
79 ${PNAME} -i geo -f geocaching.loc -o tiger -F ${TMPDIR}/tiger
80 ${PNAME} -i tiger -f ${TMPDIR}/tiger -o tiger -F ${TMPDIR}/tiger2
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
81 compare ${TMPDIR}/tiger ${TMPDIR}/tiger2
14b7cae2 »
2002-07-31 Initial revision
82
5d391c31 »
2005-03-12 Add lowrance usr support from Jason Rust/jrust at rustyparts.com.
83 #
84 # Lowrance USR. Binary, and also slightly lossy because of the math to
889b35de »
2005-03-15 Give up trying to test lowranceusr...
85 # convert lat/long. It also doesn't support description, which makes it
86 # awkward to test.
5d391c31 »
2005-03-12 Add lowrance usr support from Jason Rust/jrust at rustyparts.com.
87 #
88 rm -f ${TMPDIR}/lowrance1.usr
99ba3963 »
2005-06-27 Ling contributes track and route support for Lowrance .usr format.
89 rm -f ${TMPDIR}/enchilada1.usr
90 rm -f ${TMPDIR}/enchilada.gpx
5d391c31 »
2005-03-12 Add lowrance usr support from Jason Rust/jrust at rustyparts.com.
91 ${PNAME} -i geo -f geocaching.loc -o lowranceusr -F ${TMPDIR}/lowrance1.usr
92 bincompare ${TMPDIR}/lowrance1.usr reference/lowrance.usr
889b35de »
2005-03-15 Give up trying to test lowranceusr...
93 ${PNAME} -i lowranceusr -f ${TMPDIR}/lowrance1.usr -o lowranceusr -F ${TMPDIR}/lowrance1.usr
94 # And because of the FP rounding, we can't even read our file, write it back
95 # and get the same data. Sigh.
96 # bincompare reference/lowrance.usr ${TMPDIR}/lowrance1.usr
99ba3963 »
2005-06-27 Ling contributes track and route support for Lowrance .usr format.
97 ${PNAME} -i lowranceusr -f reference/all.usr -o gpx -F ${TMPDIR}/enchilada.gpx
98 ${PNAME} -i gpx -f ${TMPDIR}/enchilada.gpx -o lowranceusr -F ${TMPDIR}/enchilada1.usr
99 bincompare ${TMPDIR}/enchilada1.usr reference/enchilada.usr
100 # Don't convert icons as waypts
101 ${PNAME} -i lowranceusr,ignoreicons -f reference/all.usr -o gpx -F ${TMPDIR}/enchilada.gpx
102 ${PNAME} -i gpx -f ${TMPDIR}/enchilada.gpx -o lowranceusr -F ${TMPDIR}/enchilada1.usr
103 bincompare ${TMPDIR}/enchilada1.usr reference/ignoreicons.usr
5d391c31 »
2005-03-12 Add lowrance usr support from Jason Rust/jrust at rustyparts.com.
104
14b7cae2 »
2002-07-31 Initial revision
105 # CSV (Comma separated value) data.
106
b53e47b6 »
2002-10-06 Add topousa4/xmap format.
107 ${PNAME} -i geo -f geocaching.loc -o csv -F ${TMPDIR}/csv.csv
108 ${PNAME} -i csv -f ${TMPDIR}/csv.csv -o csv -F ${TMPDIR}/csv2.csv
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
109 compare ${TMPDIR}/csv2.csv ${TMPDIR}/csv.csv
b53e47b6 »
2002-10-06 Add topousa4/xmap format.
110
111 #
112 # Delorme TopoUSA 4 is a CSV strain.
113 #
114 rm -f ${TMPDIR}/xmap-1.gpx ${TMPDIR}/xmap-2.gpx ${TMPDIR}/xmap
115 ${PNAME} -i xmap -f reference/xmap -o xmap -F ${TMPDIR}/xmap
116 ${PNAME} -i xmap -f reference/xmap -o gpx -F ${TMPDIR}/xmap-1.gpx
117 ${PNAME} -i xmap -f ${TMPDIR}/xmap -o gpx -F ${TMPDIR}/xmap-2.gpx
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
118 compare ${TMPDIR}/xmap-1.gpx ${TMPDIR}/xmap-2.gpx
119 compare reference/xmap ${TMPDIR}/xmap
14b7cae2 »
2002-07-31 Initial revision
120
121 # PCX (Garmin mapsource import) file format
66ac28e4 »
2002-09-19 Misc code cleanups from Alex.
122 rm -f ${TMPDIR}/mm.pcx ${TMPDIR}/pcx.gps
123 ${PNAME} -i geo -f geocaching.loc -o pcx -F ${TMPDIR}/mm.pcx
124 ${PNAME} -i pcx -f ${TMPDIR}/mm.pcx -o gpsutil -F ${TMPDIR}/pcx.gps
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
125 compare ${TMPDIR}/mm.gps ${TMPDIR}/gu.wpt
14b7cae2 »
2002-07-31 Initial revision
126
0b5696e4 »
2002-08-30 Make waypt_head non-static. The purity isn't worth the pain.
127 # Magellan file format
66ac28e4 »
2002-09-19 Misc code cleanups from Alex.
128 ${PNAME} -i magellan -f reference/magfile -o magellan -F ${TMPDIR}/magfile
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
129 compare ${TMPDIR}/magfile reference/magfile
0b5696e4 »
2002-08-30 Make waypt_head non-static. The purity isn't worth the pain.
130
37424d6e »
2002-10-01 Add Navitrak DNA format, from Tim Zickus, tez@zickus.com
131 # Navitrak DNA marker format
132 ${PNAME} -i dna -f reference/dnatest.txt -o dna -F ${TMPDIR}/dnatest.txt
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
133 compare ${TMPDIR}/dnatest.txt reference/dnatest.txt
37424d6e »
2002-10-01 Add Navitrak DNA format, from Tim Zickus, tez@zickus.com
134
116fefcd »
2003-01-10 Jumbo patch from Mottram.
135 # PSP (PocketStreets 2002 Pushpin (.PSP)) file format. Use mxf as an
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
136 # intermediate format to avoid binary FP anomalies on compareerent platforms.
116fefcd »
2003-01-10 Jumbo patch from Mottram.
137 rm -f ${TMPDIR}/psp.mxf ${TMPDIR}/mxf.psp
138 ${PNAME} -i psp -f reference/ps.psp -o mxf -F ${TMPDIR}/psp.mxf
139 ${PNAME} -i geo -f geocaching.loc -o mxf -F ${TMPDIR}/mxf.psp
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
140 compare ${TMPDIR}/psp.mxf ${TMPDIR}/mxf.psp
9c9b0639 »
2004-01-17 Add case for gpsutil read & psp write.
141 ${PNAME} -i psp -f reference/ps.psp -o gpx -F ${TMPDIR}/psp1.gpx
142 ${PNAME} -i psp -f reference/ps.psp -o psp -F ${TMPDIR}/xxx.psp
143 ${PNAME} -i psp -f ${TMPDIR}/xxx.psp -o gpx -F ${TMPDIR}/psp2.gpx
144 compare ${TMPDIR}/psp1.gpx ${TMPDIR}/psp2.gpx
035dbe8f »
2002-09-10 Add microsoft pushpin 2002 support. Courtesy Alex Mottram.
145
fe596f8f »
2002-09-14 Add support for MXF, from Alex Mottram <alex_m@cox-internet.com>
146 # MXF (Maptech Exchange Format) file format
66ac28e4 »
2002-09-19 Misc code cleanups from Alex.
147 rm -f ${TMPDIR}/mx.mxf ${TMPDIR}/mxf.mxf
148 ${PNAME} -i mxf -f reference/mxf.mxf -o mxf -F ${TMPDIR}/mx.mxf
149 ${PNAME} -i mxf -f ${TMPDIR}/mx.mxf -o mxf -F ${TMPDIR}/mxf.mxf
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
150 compare ${TMPDIR}/mxf.mxf reference
033f45ad »
2002-09-15 A slew of updates from Alex Mottram. Thanx!
151
8f87d9d1 »
2002-11-07 Rename TopoMapPro from tmp to tmpro. Thanx, Nick!
152 # tmpro (TopoMapPro Places) file format
153 rm -f ${TMPDIR}/topomappro.txt ${TMPDIR}/mxf.mxf
154 ${PNAME} -i tmpro -f reference/topomappro.txt -o tmpro -F ${TMPDIR}/tmp.txt
155 ${PNAME} -i tmpro -f ${TMPDIR}/tmp.txt -o tmpro -F ${TMPDIR}/topomappro.txt
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
156 compare ${TMPDIR}/topomappro.txt reference
8f87d9d1 »
2002-11-07 Rename TopoMapPro from tmp to tmpro. Thanx, Nick!
157
03827050 »
2002-10-10 adds Topo! support and implements mkshort in .psp,
158 # TPG (NG Topo!) file format
159 # This is hard to test as the datum conversions create minute
160 # inconsistencies in the coordinates. So.. we test our i/o
161 # against a format that rounds higher than we care to compare
162 # for binary data.
163 rm -f ${TMPDIR}/topo.mxf ${TMPDIR}/tpg.mxf ${TMPDIR}/geo.tpg
164 ${PNAME} -i geo -f geocaching.loc -o tpg -F ${TMPDIR}/geo.tpg
165 ${PNAME} -i tpg -f ${TMPDIR}/geo.tpg -o mxf -F ${TMPDIR}/tpg.mxf
166 ${PNAME} -i tpg -f reference/tpg.tpg -o mxf -F ${TMPDIR}/topo.mxf
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
167 compare ${TMPDIR}/tpg.mxf ${TMPDIR}/topo.mxf
03827050 »
2002-10-10 adds Topo! support and implements mkshort in .psp,
168
9cb61afe »
2002-09-18 From Alex Mottram:
169 # OZI (OziExplorer 1.1) file format
6d9186b4 »
2004-02-17 Add auto-mode sensing read/write processing to OziExplorer waypoints,…
170 rm -f ${TMPDIR}/oz.wpt ${TMPDIR}/ozi.wpt
171 ${PNAME} -i ozi -f reference/ozi.wpt -o ozi -F ${TMPDIR}/oz.wpt
172 ${PNAME} -i ozi -f ${TMPDIR}/oz.wpt -o ozi -F ${TMPDIR}/ozi.wpt
173 compare ${TMPDIR}/ozi.wpt reference
9cb61afe »
2002-09-18 From Alex Mottram:
174
ecf06ff5 »
2002-09-20 Add holux case.
175 # Holux support is a little funky to test. Becuase it loses precision,
176 # if we convert it to another format, we lose accuracy (rounding) in the
177 # coords, so converting it so something else and comparing it never works.
178 # So we verify that we can read the reference and write it and get an
179 # identical reference.
180 ${PNAME} -i holux -f reference/paris.wpo -o holux -F ${TMPDIR}/paris.wpo
6b3c8ab4 »
2005-01-23 Palmdoc: minor leak fixes. (Needs more)
181 # compare reference/paris.wpo ${TMPDIR}/paris.wpo
b53e47b6 »
2002-10-06 Add topousa4/xmap format.
182
8a731247 »
2002-10-18 Complete Magellan Navigator support. Thanx to Ron Parker!
183 # Magellan NAV Companion for PalmOS
184 # This format is hard to test, because each record and the database itself
185 # contains the time of creation, so two otherwise identical files won't
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
186 # compare accurately. In any case, the files are binary so compare wouldn't
8a731247 »
2002-10-18 Complete Magellan Navigator support. Thanx to Ron Parker!
187 # like them. So, we convert the reference file to gpsutil and the converted
188 # file to gpsutil and make sure they're the same, and that they're the same
189 # as one converted on a known-working installation. Unfortunately, this does
190 # not verify that the appinfo block was written correctly. However, it does
191 # successfully test for some endianness errors that might otherwise go
192 # unnoticed.
60ac2a82 »
2002-10-22 Add unknonw alt support for Cetus. From Ron Parker.
193 rm -f ${TMPDIR}/magnav.pdb ${TMPDIR}/magnav.gpu ${TMPDIR}/magnavt.gpu
8a731247 »
2002-10-18 Complete Magellan Navigator support. Thanx to Ron Parker!
194 ${PNAME} -i geo -f geocaching.loc -o magnav -F ${TMPDIR}/magnav.pdb
195 ${PNAME} -i magnav -f ${TMPDIR}/magnav.pdb -o gpsutil -F ${TMPDIR}/magnav.gpu
196 ${PNAME} -i magnav -f reference/magnav.pdb -o gpsutil -F ${TMPDIR}/magnavt.gpu
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
197 compare ${TMPDIR}/magnavt.gpu ${TMPDIR}/magnav.gpu
cfc7ac34 »
2003-06-25 Fix gpsutil output. Deal with wreckage in test suite.
198 compare reference/gu.wpt ${TMPDIR}/magnav.gpu
8a731247 »
2002-10-18 Complete Magellan Navigator support. Thanx to Ron Parker!
199
7fff0773 »
2004-07-22 Add human-readable testo case (and fix bugs)
200 rm -f ${TMPDIR}/magnav.pdb
201 ${PNAME} -i geo -f geocaching.loc -o magnav -F ${TMPDIR}/magnav.pdb
202 bincompare ${TMPDIR}/magnav.pdb reference/magnav.pdb
203
204
205
d7562c3b »
2002-10-18 Finish up gpspilot support. Thanx to Ron Parker!
206 # GPSPilot Tracker for PalmOS
207 # This test is eerily similar to the NAV Companion test. In fact, the
208 # converted reference file (magnavr.gpu) is identical.
60ac2a82 »
2002-10-22 Add unknonw alt support for Cetus. From Ron Parker.
209 rm -f ${TMPDIR}/gpspilot.pdb ${TMPDIR}/gpspilot.gpu ${TMPDIR}/gpspil_t.gpu
d7562c3b »
2002-10-18 Finish up gpspilot support. Thanx to Ron Parker!
210 ${PNAME} -i geo -f geocaching.loc -o gpspilot -F ${TMPDIR}/gpspilot.pdb
211 ${PNAME} -i gpspilot -f ${TMPDIR}/gpspilot.pdb -o gpsutil -F ${TMPDIR}/gpspilot.gpu
212 ${PNAME} -i gpspilot -f reference/gpspilot.pdb -o gpsutil -F ${TMPDIR}/gpspil_t.gpu
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
213 compare ${TMPDIR}/gpspil_t.gpu ${TMPDIR}/gpspilot.gpu
cfc7ac34 »
2003-06-25 Fix gpsutil output. Deal with wreckage in test suite.
214 compare reference/gu.wpt ${TMPDIR}/gpspilot.gpu
d7562c3b »
2002-10-18 Finish up gpspilot support. Thanx to Ron Parker!
215
60ac2a82 »
2002-10-22 Add unknonw alt support for Cetus. From Ron Parker.
216 # Cetus GPS for PalmOS
217 # This test is also similar to the NAV Companion test.
218 rm -f ${TMPDIR}/cetus.pdb ${TMPDIR}/cetus.gpu ${TMPDIR}/cetust.gpu
219 ${PNAME} -i geo -f geocaching.loc -o cetus -F ${TMPDIR}/cetus.pdb
220 ${PNAME} -i cetus -f ${TMPDIR}/cetus.pdb -o gpsutil -F ${TMPDIR}/cetus.gpu
221 ${PNAME} -i cetus -f reference/cetus.pdb -o gpsutil -F ${TMPDIR}/cetust.gpu
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
222 compare ${TMPDIR}/cetust.gpu ${TMPDIR}/cetus.gpu
223 compare reference/cetus.gpu ${TMPDIR}/cetus.gpu
b27d63df »
2002-12-03 Add gpsdrive, courtesy Alan Curry.
224
01628576 »
2003-06-30 Update vecs & testo for Quovadis from Bruce Thompson.
225 # QuoVadis GPS for PalmOS
226 # This test is derived from the Cetus test above.
227 rm -f ${TMPDIR}/quovadis.pdb ${TMPDIR}/quovadis.gpu ${TMPDIR}/quovadist.gpu
228 ${PNAME} -i geo -f geocaching.loc -o quovadis -F ${TMPDIR}/quovadis.pdb
229 ${PNAME} -i quovadis -f ${TMPDIR}/quovadis.pdb -o gpsutil -F ${TMPDIR}/quovadis.gpu
230 ${PNAME} -i quovadis -f reference/quovadis.pdb -o gpsutil -F ${TMPDIR}/quovadist.gpu
231 compare ${TMPDIR}/quovadist.gpu ${TMPDIR}/quovadis.gpu
232 compare reference/quovadis.gpu ${TMPDIR}/quovadis.gpu
233
b27d63df »
2002-12-03 Add gpsdrive, courtesy Alan Curry.
234 # GpsDrive
235 rm -f ${TMPDIR}/gpsdrive.txt
236 ${PNAME} -i geo -f geocaching.loc -o gpsdrive -F ${TMPDIR}/gpsdrive.txt
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
237 compare ${TMPDIR}/gpsdrive.txt reference
b27d63df »
2002-12-03 Add gpsdrive, courtesy Alan Curry.
238 ${PNAME} -i gpsdrive -f reference/gpsdrive.txt -o gpsdrive -F ${TMPDIR}/gpsdrive2.txt
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
239 compare ${TMPDIR}/gpsdrive2.txt reference/gpsdrive.txt
b27d63df »
2002-12-03 Add gpsdrive, courtesy Alan Curry.
240
1844c317 »
2003-01-08 Completly new, data driven XSV handlers. Thanx, Alex!
241 # XMapHH Street Atlas USA file format
242 rm -f ${TMPDIR}/xmapwpt.wpt ${TMPDIR}/xmapwpt.xmapwpt
243 ${PNAME} -i xmapwpt -f reference/xmapwpt.wpt -o xmapwpt -F ${TMPDIR}/xmapwpt.xmapwpt
244 ${PNAME} -i xmapwpt -f ${TMPDIR}/xmapwpt.xmapwpt -o xmapwpt -F ${TMPDIR}/xmapwpt.wpt
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
245 compare ${TMPDIR}/xmapwpt.wpt reference
1844c317 »
2003-01-08 Completly new, data driven XSV handlers. Thanx, Alex!
246
247 # XCSV
248 # Test that we can parse a style file, and read and write data in the
249 # same xcsv format (a complete test is virtually impossible).
250 echo "RECORD_DELIMITER NEWLINE" > ${TMPDIR}/testo.style
251 echo "FIELD_DELIMITER COMMA" >> ${TMPDIR}/testo.style
252 echo "BADCHARS COMMA" >> ${TMPDIR}/testo.style
253 echo "PROLOGUE Header" >> ${TMPDIR}/testo.style
254 echo "EPILOGUE Footer" >> ${TMPDIR}/testo.style
255 echo "IFIELD SHORTNAME,,%s" >> ${TMPDIR}/testo.style
256 echo "IFIELD LAT_DIRDECIMAL,,%c%lf" >> ${TMPDIR}/testo.style
257 echo "IFIELD LON_DECIMALDIR,,%lf%c" >> ${TMPDIR}/testo.style
258 rm -f ${TMPDIR}/xcsv.geo ${TMPDIR}/xcsv.xcsv
259 ${PNAME} -i geo -f geocaching.loc -o xcsv,style=${TMPDIR}/testo.style -F ${TMPDIR}/xcsv.geo
260 ${PNAME} -i xcsv,style=${TMPDIR}/testo.style -f ${TMPDIR}/xcsv.geo -o xcsv,style=${TMPDIR}/testo.style -F ${TMPDIR}/xcsv.xcsv
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
261 compare ${TMPDIR}/xcsv.geo ${TMPDIR}/xcsv.xcsv
bbb531fd »
2003-01-10 Implement Garmin Mapsource format.
262
263 # Garmin Mapsource This is a binary format with some undocumented
264 # fields. This test is therefore intentionally vague. We read a file,
265 # convert it to GPX, then write a file as MPS, then read it back and
266 # write it as GPX and compare them. Since we're writing both GPX files
267 # ourselves from the same version, we're immune to changes in our own
268 # GPX output.
269
270 rm -fr ${TMPDIR}/ms.gpx ${TMPDIR}/ms[12].gpx
271 ${PNAME} -i mapsource -f reference/mapsource.mps -o gpx -F ${TMPDIR}/ms1.gpx
272 ${PNAME} -i mapsource -f reference/mapsource.mps -o mapsource -F ${TMPDIR}/ms.mps
273 ${PNAME} -i mapsource -f ${TMPDIR}/ms.mps -o gpx -F ${TMPDIR}/ms2.gpx
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
274 compare ${TMPDIR}/ms1.gpx ${TMPDIR}/ms2.gpx
826cddeb »
2003-10-20 Big update from Mark Bradley:
275
9b81f752 »
2003-09-30 Add testo cases for mapsource tracks.
276 #
277 # MRCB mapsource track test
278 #
279 rm -f ${TMPDIR}/mps-track.mps
79b36cb2 »
2004-03-06 Change default Mapsource version output to 5.
280 ${PNAME} -t -i mapsource -f reference/track/mps-track.mps -o mapsource,mpsverout=3 \
9b81f752 »
2003-09-30 Add testo cases for mapsource tracks.
281 -F ${TMPDIR}/mps-track.mps
282 compare ${TMPDIR}/mps-track.mps reference/track/
6f1da964 »
2003-01-22 Add GeocachingDB input and output module.
283
826cddeb »
2003-10-20 Big update from Mark Bradley:
284 # Now do a test of reading waypoints from a track-only file - should have an empty result
285 rm -f ${TMPDIR}/mps-track.mps
79b36cb2 »
2004-03-06 Change default Mapsource version output to 5.
286 ${PNAME} -i mapsource -f reference/track/mps-track.mps -o mapsource,mpsverout=3 \
826cddeb »
2003-10-20 Big update from Mark Bradley:
287 -F ${TMPDIR}/mps-track.mps
288 compare ${TMPDIR}/mps-track.mps reference/mps-empty.mps
289
290 #
291 # MRCB mapsource route test
292 #
293 rm -f ${TMPDIR}/mps-route.mps
294 ${PNAME} -r -i mapsource -f reference/route/route.mps -o mapsource,mpsverout=4 \
295 -F ${TMPDIR}/mps-route.mps
296 compare ${TMPDIR}/mps-route.mps reference/route/route.mps
297
298 # Now do a test of reading tracks from a route-only file - should have an empty result
299 rm -f ${TMPDIR}/mps-route.mps
79b36cb2 »
2004-03-06 Change default Mapsource version output to 5.
300 ${PNAME} -t -i mapsource -f reference/route/route.mps -o mapsource,mpsverout=3 \
826cddeb »
2003-10-20 Big update from Mark Bradley:
301 -F ${TMPDIR}/mps-route.mps
302 compare ${TMPDIR}/mps-route.mps reference/mps-empty.mps
303
6f1da964 »
2003-01-22 Add GeocachingDB input and output module.
304 #
305 # Geocaching Database is a binary Palm format that, like the GPX variants
306 # has a zillion "equivalent" encodings of any given record set. So we
307 # read the reference file, spin it to GPX and back to GCDB and then spin
308 # that one to GPX.
309 #
310
311 ${PNAME} -i gcdb -f reference/GeocachingDB.PDB -o gpx -F ${TMPDIR}/gcdb1.gpx \
312 -o gcdb -F ${TMPDIR}/gcdb1.pdb
313 ${PNAME} -i gpx -f ${TMPDIR}/gcdb1.gpx -o gpx -F ${TMPDIR}/gcdb2.gpx
937bbb0f »
2003-01-22 Make comparisons fatal, make it easier to override diff.
314 compare ${TMPDIR}/gcdb1.gpx ${TMPDIR}/gcdb1.gpx
9794324e »
2003-02-07 Filter test. Thanx, Alex.
315
316 #
317 # Duplicate filter - Since filters have no format of their own, we use csv
318 # as an intermediate format for testing the filter.
319 #
320 rm -f ${TMPDIR}/filterdupe.csv1 ${TMPDIR}/filterdupe.csv2
321 ${PNAME} -i geo -f geocaching.loc -o csv -F ${TMPDIR}/filterdupe.csv1
322 ${PNAME} -i geo -f geocaching.loc -f geocaching.loc -x duplicate,shortname \
323 -o csv -F ${TMPDIR}/filterdupe.csv2
b42c49cc »
2003-06-12 solidify duplicate sort states in testo
324 sort_and_compare ${TMPDIR}/filterdupe.csv1 ${TMPDIR}/filterdupe.csv2
9794324e »
2003-02-07 Filter test. Thanx, Alex.
325
326 #
327 # Position filter - Since very small distances are essentialy a duplicate
328 # position filter, we can test very similarly to the duplicate filter.
329 #
330 rm -f ${TMPDIR}/filterpos.csv1 ${TMPDIR}/filterpos.csv2
331 ${PNAME} -i geo -f geocaching.loc -o csv -F ${TMPDIR}/filterpos.csv1
332 ${PNAME} -i geo -f geocaching.loc -f geocaching.loc -x position,distance=5f \
333 -o csv -F ${TMPDIR}/filterpos.csv2
b42c49cc »
2003-06-12 solidify duplicate sort states in testo
334 sort_and_compare ${TMPDIR}/filterpos.csv1 ${TMPDIR}/filterpos.csv2
79c21293 »
2003-04-01 Add route handling for magproto, mapsend, GPX. Thanx, Alex Mottram!
335
336 #
00d8353b »
2003-04-28 Add position filter for radius, courtesy Alex Mottram.
337 # Radius filter
338 #
339 rm -f ${TMPDIR}/radius.csv
340 ${PNAME} -i geo -f geocaching.loc \
341 -x radius,lat=35.9720,lon=-87.1347,distance=14.7 \
342 -o csv -F ${TMPDIR}/radius.csv
343 compare ${TMPDIR}/radius.csv reference/
344
345 #
79c21293 »
2003-04-01 Add route handling for magproto, mapsend, GPX. Thanx, Alex Mottram!
346 # magellan SD card waypoint / route format
347 #
348 rm -f ${TMPDIR}/magellan.rte
349 ${PNAME} -r -i magellan -f reference/route/magellan.rte -o magellan \
350 -F ${TMPDIR}/magellan.rte
351 compare ${TMPDIR}/magellan.rte reference/route/magellan.rte
352
353 #
354 # GPX routes -- since GPX contains a date stamp, tests will always
355 # fail, so we use magellan as an interim format...
356 #
357 rm -f ${TMPDIR}/gpxroute.gpx ${TMPDIR}/maggpx.rte
358 ${PNAME} -r -i gpx -f reference/route/route.gpx -o gpx \
359 -F ${TMPDIR}/gpxroute.gpx
360 ${PNAME} -r -i gpx -f ${TMPDIR}/gpxroute.gpx -o magellan \
361 -F ${TMPDIR}/maggpx.rte
362 compare ${TMPDIR}/maggpx.rte reference/route/magellan.rte
363
364 #
0a85140f »
2004-01-08 Add GPX track test case.
365 # GPX tracks -- since GPX contains a date stamp, tests will always
366 # fail, so we use magellan as an interim format...
367 #
368 rm -f ${TMPDIR}/gpxtrack.gpx ${TMPDIR}/maggpx.trk
369 ${PNAME} -t -i gpx -f reference/track/tracks.gpx -o gpx \
370 -F ${TMPDIR}/gpxtrack.gpx
371 ${PNAME} -t -i magellan -f reference/track/meridian.trk -o gpx \
372 -F ${TMPDIR}/maggpx.trk
373 compare ${TMPDIR}/maggpx.trk ${TMPDIR}/gpxtrack.gpx
374
375 #
79c21293 »
2003-04-01 Add route handling for magproto, mapsend, GPX. Thanx, Alex Mottram!
376 # MAPSEND waypoint / route format
377 #
378 rm -f ${TMPDIR}/route.mapsend
379 ${PNAME} -r -i mapsend -f reference/route/route.mapsend -o mapsend \
380 -F ${TMPDIR}/route.mapsend
381 compare ${TMPDIR}/route.mapsend reference/route/
5acc2536 »
2003-04-04 Add mapsource track support. Thanx, Alex!
382
383 #
384 # MAPSEND track format
385 #
386 rm -f ${TMPDIR}/mapsend.trk
387 ${PNAME} -t -i mapsend -f reference/track/mapsend.trk -o mapsend \
388 -F ${TMPDIR}/mapsend.trk
389 compare ${TMPDIR}/mapsend.trk reference/track/
c177f501 »
2003-04-09 Add test for Copilot. Reference file from Tomblin.
390
391 #
392 # copilot
393 #
394 rm -f ${TMPDIR}/copilot.pdb
395 ${PNAME} -i copilot -f reference/UKultralight.pdb -o copilot -F ${TMPDIR}/cop.pdb
396 ${PNAME} -i copilot -f reference/UKultralight.pdb -o gpx -F ${TMPDIR}/cop1.gpx
397 ${PNAME} -i copilot -f ${TMPDIR}/cop.pdb -o gpx -F ${TMPDIR}/cop2.gpx
398 compare ${TMPDIR}/cop1.gpx ${TMPDIR}/cop2.gpx
6d30ee89 »
2003-05-14 Add EasyGPS binary format based on info from Eric Cloninger.
399
400 #
401 # EasyGPS. Another binary format.
402 #
403 rm -f ${TMPDIR}/easy.loc
404 ${PNAME} -i easygps -f reference/easygps.loc -o easygps -F ${TMPDIR}/ez.loc
405 ${PNAME} -i easygps -f reference/easygps.loc -o gpx -F ${TMPDIR}/ez1.gpx
406 ${PNAME} -i easygps -f ${TMPDIR}/ez.loc -o gpx -F ${TMPDIR}/ez2.gpx
407 compare ${TMPDIR}/ez1.gpx ${TMPDIR}/ez2.gpx
7e6cf901 »
2003-07-17 Add rest of Ron's arc distance stuff.
408
409 #
a940ffcb »
2003-07-17 Test GPilotS support.
410 # GPilotS. A Palm format. Another binary format that
411 #
412 # rm -f ${TMPDIR/gpilots.l
413 #${PNAME} -i easygps -f reference/gpilots.pdb -o gpx -F ${TMPDIR}/gp.gpx
414 ${PNAME} -i geo -f geocaching.loc -o gpilots -F ${TMPDIR}/blah.pdb
415 ${PNAME} -i gpilots -f ${TMPDIR}/blah.pdb -o gpx -F ${TMPDIR}/1.gpx
416 ${PNAME} -i gpilots -f reference/gpilots.pdb -o gpx -F ${TMPDIR}/2.gpx
417 compare ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
418 #${PNAME} -i easygps -f reference/gpilots.pdb -o gpx -F ${TMPDIR}/gp.gpx
419
420 #
db81519a »
2003-09-22 Add navicache as a (read-only) format.
421 # Navicache.
422 ${PNAME} -i navicache -f reference/navicache.xml -o gpsutil -F ${TMPDIR}/navi.wpt
423 compare ${TMPDIR}/navi.wpt reference/navicache.ref
424 #
425
612e9d0a »
2004-11-09 Add Coastal Explorer courtesy justinbr of earthlink.net.
426 #
427 # CoastalExplorer..
8bfb3750 »
2004-11-11 From justin: add writing to coastexp.c
428 ${PNAME} -r -i coastexp -f reference/coastexp.nob -o gpx -F ${TMPDIR}/coastexp.gpx
429 compare ${TMPDIR}/coastexp.gpx reference/coastexp.ref
430 ${PNAME} -r -i gpx -f ${TMPDIR}/coastexp.gpx -o coastexp -F ${TMPDIR}/coastexp.nob
431 compare ${TMPDIR}/coastexp.nob reference/coastexp.ref2
432 ${PNAME} -w -i coastexp -f reference/coastexp.nob -o gpx -F ${TMPDIR}/coastexp.gpx
433 compare ${TMPDIR}/coastexp.gpx reference/coastexp.ref3
434 ${PNAME} -w -i gpx -f ${TMPDIR}/coastexp.gpx -o coastexp -F ${TMPDIR}/coastexp.nob
435 compare ${TMPDIR}/coastexp.nob reference/coastexp.ref4
436 #
437
826cddeb »
2003-10-20 Big update from Mark Bradley:
438 # PsiTrex. A text format that can't be handled by XCSV due to context of
439 # data based on other data values in the file
440 # Waypoints first
441 rm -f ${TMPDIR}/psit-ww.txt ${TMPDIR}/psit-ww.mps
442 ${PNAME} -i psitrex -f reference/psitwpts.txt -o mapsource -F ${TMPDIR}/psit-ww.mps
443 ${PNAME} -i mapsource -f ${TMPDIR}/psit-ww.mps -o psitrex -F ${TMPDIR}/psit-ww.txt
444 compare reference/psitwpts.txt ${TMPDIR}/psit-ww.txt
445
446 # Now test correct "empty" handling - ask for routes when there aren't any
447 # Uses mapsource as the empty handling for this has already happened above
448 rm -f ${TMPDIR}/psit-wr.mps
79b36cb2 »
2004-03-06 Change default Mapsource version output to 5.
449 ${PNAME} -r -i psitrex -f reference/psitwpts.txt -o mapsource,mpsverout=3 -F ${TMPDIR}/psit-wr.mps
826cddeb »
2003-10-20 Big update from Mark Bradley:
450 compare reference/mps-empty.mps ${TMPDIR}/psit-wr.mps
451
452 # Routes next
453 rm -f ${TMPDIR}/psit-rr.txt ${TMPDIR}/psit-rr.mps
454 ${PNAME} -r -i psitrex -f reference/route/psitrtes.txt -o mapsource -F ${TMPDIR}/psit-rr.mps
455 ${PNAME} -r -i mapsource -f ${TMPDIR}/psit-rr.mps -o psitrex -F ${TMPDIR}/psit-rr.txt
456 compare reference/route/psitrtes.txt ${TMPDIR}/psit-rr.txt
457
458 # Now test correct "empty" handling - ask for tracks when there aren't any
459 # Uses mapsource as the empty handling for this has already happened above
460 rm -f ${TMPDIR}/psit-rt.mps
79b36cb2 »
2004-03-06 Change default Mapsource version output to 5.
461 ${PNAME} -t -i psitrex -f reference/route/psitrtes.txt -o mapsource,mpsverout=3 -F ${TMPDIR}/psit-rt.mps
826cddeb »
2003-10-20 Big update from Mark Bradley:
462 compare reference/mps-empty.mps ${TMPDIR}/psit-rt.mps
463
464 # Tracks last
465 rm -f ${TMPDIR}/psit-tt.txt ${TMPDIR}/psit-tt.mps
466 ${PNAME} -t -i psitrex -f reference/track/psittrks.txt -o mapsource -F ${TMPDIR}/psit-tt.mps
467 ${PNAME} -t -i mapsource -f ${TMPDIR}/psit-tt.mps -o psitrex -F ${TMPDIR}/psit-tt.txt
503ed930 »
2003-10-21 Fix timezones in psitrex track format. From Mark.
468 compare reference/track/psittrks.txt ${TMPDIR}/psit-tt.txt
826cddeb »
2003-10-20 Big update from Mark Bradley:
469
470 # Now test correct "empty" handling - ask for waypoints when there aren't any
471 # Uses mapsource as the empty handling for this has already happened above
472 rm -f ${TMPDIR}/psit-tw.mps
79b36cb2 »
2004-03-06 Change default Mapsource version output to 5.
473 ${PNAME} -i psitrex -f reference/track/psittrks.txt -o mapsource,mpsverout=3 -F ${TMPDIR}/psit-tw.mps
826cddeb »
2003-10-20 Big update from Mark Bradley:
474 compare reference/mps-empty.mps ${TMPDIR}/psit-tw.mps
475
db81519a »
2003-09-22 Add navicache as a (read-only) format.
476 #
7e6cf901 »
2003-07-17 Add rest of Ron's arc distance stuff.
477 # Arc Distance filter
478 #
479 rm -f ${TMPDIR}/arcdist.txt
480 ${PNAME} -i xmap -f reference/arcdist_input.txt \
481 -x arc,file=reference/arcdist_arc.txt,distance=1 \
482 -o xmap -F ${TMPDIR}/arcdist.txt
483 compare ${TMPDIR}/arcdist.txt reference/arcdist_output.txt
484
89465d61 »
2003-07-20 add polygon filter
485 #
486 # Polygon filter
487 #
488 rm -f ${TMPDIR}/polygon.txt
489 ${PNAME} -i xmap -f reference/arcdist_input.txt \
490 -x polygon,file=reference/polygon_allencty.txt \
491 -o xmap -F ${TMPDIR}/polygon.txt
492 compare ${TMPDIR}/polygon.txt reference/polygon_output.txt
493
70fa05a7 »
2003-12-02 Added 'simplify' filter
494 #
495 # Simplify filter
496 #
497 rm -f ${TMPDIR}/simplify.txt
498 ${PNAME} -r -i gpx -f reference/route/route.gpx \
499 -x simplify,count=10 \
500 -o arc -F ${TMPDIR}/simplify.txt
501 compare ${TMPDIR}/simplify.txt reference/simplify_output.txt
40ab42bf »
2003-08-29 Add a shortname test.
502
503 #
d6afdd7c »
2003-12-13 Three changes:
504 # Route reversal filter. Do it twice and be sure we get what we
505 # started with.
506 #
507 rm -f ${TMPDIR}/reverse1.arc ${TMPDIR}/reverse2.arc ${TMPDIR}/reference.arc
508 ${PNAME} -r -i gpx -f reference/route/route.gpx \
509 -o arc -F ${TMPDIR}/reference.arc
510 ${PNAME} -r -i gpx -f reference/route/route.gpx \
511 -x reverse \
512 -o arc -F ${TMPDIR}/reverse1.arc
513 ${PNAME} -r -i gpx -f reference/route/route.gpx \
514 -x reverse \
515 -x reverse \
516 -o arc -F ${TMPDIR}/reverse2.arc
517 # Verify the first and last are the same
518 compare ${TMPDIR}/reference.arc ${TMPDIR}/reverse2.arc
519 # Verify the first and second are different.
443573f1 »
2004-09-17 From Mark Bradley. Use compare instead of explicit diff.
520 #${DIFF} ${TMPDIR}/reverse1.arc ${TMPDIR}/reverse2.arc > /dev/null && {
521 # echo ERROR Failed reversal test.
522 # exit 1
523 #}
bdaf31df »
2004-09-17 Comparison had wrong sense; needs rewritten
524
525 # parkrrrr: This isn't a straightforward compare; we *want* it to fail.
5ca5ae56 »
2004-09-17 Grrrr... vi auto-comments with a * in shell scripts? What were they s…
526 # Obviously this test should just be rewritten with a new reference.
bdaf31df »
2004-09-17 Comparison had wrong sense; needs rewritten
527 #compare ${TMPDIR}/reverse1.arc ${TMPDIR}/reverse2.arc
d6afdd7c »
2003-12-13 Three changes:
528
f14e2ee5 »
2004-01-17 Add geoniche test cases.
529 #
1c35af79 »
2004-01-19 Add delgpl, saroute tests.
530 # Geoniche: No reference file was available, so we created one and just
f14e2ee5 »
2004-01-17 Add geoniche test cases.
531 # test it against itself.
532 #
533 rm -f ${TMPDIR}/gn.pdb ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
534 ${PNAME} -i geoniche -f reference/geoniche.pdb -o geoniche -F ${TMPDIR}/gn.pdb
535 ${PNAME} -i geoniche -f reference/geoniche.pdb -o gpx -F ${TMPDIR}/1.gpx
536 ${PNAME} -i geoniche -f ${TMPDIR}/gn.pdb -o gpx -F ${TMPDIR}/2.gpx
443573f1 »
2004-09-17 From Mark Bradley. Use compare instead of explicit diff.
537 compare ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
f14e2ee5 »
2004-01-17 Add geoniche test cases.
538
1c35af79 »
2004-01-19 Add delgpl, saroute tests.
539 #
540 # saroute covers *.anr, *.rte, and *.rtd, but I only have an .anr for testing.
541 # Unfortunately for us, this is a read-only format for now.
542 #
543 ${PNAME} -t -i saroute -f reference/track/i65.anr -o gpx -F ${TMPDIR}/gpl1.gpx
544 ${PNAME} -t -i gpx -f reference/track/i65.anr.gpx -o gpx -F ${TMPDIR}/gpl2.gpx
443573f1 »
2004-09-17 From Mark Bradley. Use compare instead of explicit diff.
545 compare ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx
1c35af79 »
2004-01-19 Add delgpl, saroute tests.
546
547 #
548 # Delorme GPL file. This is sort of a track format.
549 #
550 rm -f ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx ${TMPDIR}/gpl1.gpl
551 ${PNAME} -t -i gpl -f reference/track/webpark1.gpl -o gpx -F ${TMPDIR}/gpl1.gpx
552 ${PNAME} -t -i gpl -f reference/track/webpark1.gpl -o gpl -F ${TMPDIR}/gpl1.gpl
553 ${PNAME} -t -i gpl -f ${TMPDIR}/gpl1.gpl -o gpx -F ${TMPDIR}/gpl2.gpx
443573f1 »
2004-09-17 From Mark Bradley. Use compare instead of explicit diff.
554 compare ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx
1c35af79 »
2004-01-19 Add delgpl, saroute tests.
555
43f1b567 »
2004-06-17 Add testsuite for netstumbler from John.
556 #
557 # NetStumbler Summary File (read-only)
558 #
559 rm -f ${TMPDIR}/netstumbler.mps
560 ${PNAME} -i netstumbler -f reference/netstumbler.txt -o mapsource -F ${TMPDIR}/netstumbler.mps
d94c483a »
2004-09-17 Oops, didn't mean to comment that line out. Also, bincompare is easie…
561 bincompare ${TMPDIR}/netstumbler.mps reference/netstumbler.mps
7fff0773 »
2004-07-22 Add human-readable testo case (and fix bugs)
562
563 #
bec8ae47 »
2004-08-30 Add IGC for flight recorders. From Chris Jones .
564 # IGC tests
565 #
566 rm -f ${TMPDIR}/igc*out
567 ${PNAME} -i gpx -f reference/igc1.gpx -o igc -F ${TMPDIR}/igc.out
568 sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc.out > ${TMPDIR}/igc_sed.out
569 compare ${TMPDIR}/igc_sed.out reference/igc1_igc.out
570
571 ${PNAME} -i igc -f ${TMPDIR}/igc.out -o gpx -F ${TMPDIR}/igc.gpx
572 compare ${TMPDIR}/igc.gpx reference/igc1_gpx.out
573
574 ${PNAME} -i gpx -f ${TMPDIR}/igc.gpx -o igc -F ${TMPDIR}/igc.out
575 sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc.out > ${TMPDIR}/igc_sed.out
576 compare ${TMPDIR}/igc_sed.out reference/igc1_igc.out
577
da31b8af »
2004-08-31 From Chris Jones.
578 ${PNAME} -i gpx -f reference/igc1_baro.gpx -i igc -f reference/igc1_igc.out -o igc,timeadj=auto -F ${TMPDIR}/igc.out
579 sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc.out > ${TMPDIR}/igc_sed.out
580 compare ${TMPDIR}/igc_sed.out reference/igc1_3d.out
581
bec8ae47 »
2004-08-30 Add IGC for flight recorders. From Chris Jones .
582
583 ${PNAME} -i igc -f reference/igc2.igc -o gpx -F ${TMPDIR}/igc.gpx
584 compare ${TMPDIR}/igc.gpx reference/igc2_gpx.out
585
586 ${PNAME} -i gpx -f ${TMPDIR}/igc.gpx -o igc -F ${TMPDIR}/igc.out
587 sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc.out > ${TMPDIR}/igc_sed.out
588 compare ${TMPDIR}/igc_sed.out reference/igc2_igc.out
589
590 ${PNAME} -i igc -f ${TMPDIR}/igc.out -o gpx -F ${TMPDIR}/igc.gpx
591 compare ${TMPDIR}/igc.gpx reference/igc2_gpx.out
592
7b52ff11 »
2005-02-10 Add google input type
593 #
594 # Google Maps XML test
595 #
596 rm -f ${TMPDIR}/google.out
597 ${PNAME} -i google -f reference/google.xml -o arc -F ${TMPDIR}/google.out
598 compare ${TMPDIR}/google.out reference/google.arc
bec8ae47 »
2004-08-30 Add IGC for flight recorders. From Chris Jones .
599
36cb694c »
2005-03-01 Update google to read output=js
600 rm -f ${TMPDIR}/google.out
601 ${PNAME} -i google -f reference/google.js -o arc -F ${TMPDIR}/google.out
602 compare ${TMPDIR}/google.out reference/google.arc
603
bec8ae47 »
2004-08-30 Add IGC for flight recorders. From Chris Jones .
604 #
6d17c118 »
2005-04-06 .an1 testo
605 # DeLorme .an1 tests
606 #
607 rm -f ${TMPDIR}/an1.out
608 ${PNAME} -i an1 -f reference/foo.an1 -o csv -F ${TMPDIR}/an1.out
609 compare ${TMPDIR}/an1.out reference/an1-in.ref
610
611 rm -f ${TMPDIR}/an1.out
612 ${PNAME} -i an1 -f reference/foo.an1 -o an1 -F ${TMPDIR}/an1.out
613 compare ${TMPDIR}/an1.out reference/an1-an1.ref
614
615 rm -f ${TMPDIR}/an1.out
616 ${PNAME} -i xmap -f reference/xmap -o an1 -F ${TMPDIR}/an1.out
617 compare ${TMPDIR}/an1.out reference/an1-out.ref
618
619 rm -f ${TMPDIR}/an1.out
620 ${PNAME} -i google -f reference/google.js -o an1 -F ${TMPDIR}/an1.out
621 compare ${TMPDIR}/an1.out reference/an1-line-out.ref
622
623 #
adb79ea5 »
2005-04-28 Add TomTom .ov2 (POI) file support
624 # TomTom .ov2 tests
625 #
626
627 rm -f ${TMPDIR}/ov2.out
628 ${PNAME} -i arc -f reference/google.arc -o tomtom -F ${TMPDIR}/ov2.out
629 compare ${TMPDIR}/ov2.out reference/ov2-arc-out.ref
630
631 rm -f ${TMPDIR}/ov2.out
632 ${PNAME} -i geo -f reference/gl.loc -o tomtom -F ${TMPDIR}/ov2.out
633 compare ${TMPDIR}/ov2.out reference/ov2-geo-out.ref
634
635 rm -f ${TMPDIR}/ov2.out
636 ${PNAME} -i tomtom -f reference/ov2-geo-out.ref -o gpsutil -F ${TMPDIR}/ov2.out
637 compare ${TMPDIR}/ov2.out reference/ov2-in.ref
638
639 #
7fff0773 »
2004-07-22 Add human-readable testo case (and fix bugs)
640 # XCSV "human readable" tests
641 #
642 rm -f ${TMPDIR}/humanread.out
643 ${PNAME} -i xcsv,style=reference/humanread.style -f reference/human.in -o arc -F ${TMPDIR}/humanread.out
644 compare ${TMPDIR}/humanread.out reference/humanread.out
645
646 rm -f ${TMPDIR}/humanwrite.out
647 ${PNAME} -i xcsv,style=reference/humanread.style -f reference/human.in -o xcsv,style=reference/humanwrite.style -F ${TMPDIR}/humanwrite.out
648 compare ${TMPDIR}/humanwrite.out reference/humanwrite.out
43f1b567 »
2004-06-17 Add testsuite for netstumbler from John.
649
8e42b4e0 »
2004-08-17 Added path distance options to xcsv
650 #
651 # XCSV "path distance" test
652 #
653 rm -f ${TMPDIR}/pathdist.out
654 ${PNAME} -i magellan -f reference/dusky.trk -o xcsv,style=reference/gnuplot.style -F ${TMPDIR}/pathdist.out
655 compare ${TMPDIR}/pathdist.out reference/dusky.gnuplot
656
1bd0fab9 »
2004-09-07 Add missing pieces of HSA_NAV & minor fixes. From Sven Dowideit.
657 # hsandv
658 rm -f ${TMPDIR}/hsandv.exp ${TMPDIR}/1.exp ${TMPDIR}/1.exp ${TMPDIR}/Glad_5.exp
659 ${PNAME} -i geo -f geocaching.loc -o hsandv -F ${TMPDIR}/hsandv.exp
660 compare ${TMPDIR}/hsandv.exp reference
661 #the hsandv format is too lossy to do this test :(
662 #${PNAME} -i hsandv -f ${TMPDIR}/hsandv.exp -o geo -F ${TMPDIR}/1.exp
663 #${PNAME} -i hsandv -f reference/hsandv.exp -o geo -F ${TMPDIR}/2.exp
664 #compare ${TMPDIR}/1.exp ${TMPDIR}/2.exp
665 #test conversion from v4 to v5 files
666 ${PNAME} -i hsandv -f reference/Glad_4.exp -o hsandv -F ${TMPDIR}/Glad_5.exp
6a3fed01 »
2004-09-20 Neuter hsa v4->v5 conversion test.
667 # FIXME: Can't compare directly because of potential FP rounding.
668 # FIXME: compare ${TMPDIR}/Glad_5.exp reference
1bd0fab9 »
2004-09-07 Add missing pieces of HSA_NAV & minor fixes. From Sven Dowideit.
669
96437aae »
2004-09-16 testo case for stack filter
670 #
671 # stack filter tests
672 # These don't actually test for proper behavior, for now, but they do
54a7f4c8 »
2004-09-17 Add ARGTYPE_HIDDEN flag and 'nowarn' flag for stack filter
673 # exercise all of the currently-extant filter code.
96437aae »
2004-09-16 testo case for stack filter
674 #
675
54a7f4c8 »
2004-09-17 Add ARGTYPE_HIDDEN flag and 'nowarn' flag for stack filter
676 ${PNAME} -i geo -f geocaching.loc -x stack,push,copy,nowarn -x stack,push,copy -x stack,push -x stack,pop,replace -x stack,pop,append -x stack,push,copy -x stack,pop,discard -x stack,swap,depth=1 -o arc -F ${TMPDIR}/stackfilt.txt
8e42b4e0 »
2004-08-17 Added path distance options to xcsv
677
6b3c8ab4 »
2005-01-23 Palmdoc: minor leak fixes. (Needs more)
678 #
679 # 'tabsep' isn't really tested in any non-trivial way, but we do exercise
680 # it.
681 #
682
683 ${PNAME} -i geo -f geocaching.loc -o tabsep -F - | ${PNAME} -i tabsep -f - -o geo -F ${TMPDIR}/tabsep.out
684 ${PNAME} -i geo -f geocaching.loc -o geo -F ${TMPDIR}/geotabsep.out
685
686 #
687 # Now do the same for custom - it has the same issues.
688 #
689
690 compare ${TMPDIR}/tabsep.out ${TMPDIR}/geotabsep.out
691 ${PNAME} -i geo -f geocaching.loc -o custom -F - | ${PNAME} -i custom -f - -o geo -F ${TMPDIR}/custom.out
692 ${PNAME} -i geo -f geocaching.loc -o geo -F ${TMPDIR}/geocustom.out
693
694 #
695 # Write something to the various output-only formats
696 #
697 ${PNAME} -i geo -f geocaching.loc -o text -F ${TMPDIR}/text.out -o html -F ${TMPDIR}/html.out -o vcard -F ${TMPDIR}/vcard.out #-o palmdoc -F ${TMPDIR}/pd.out
71bb2a52 »
2005-05-05 More TourExchangeFormat support from Olaf Klein.
698
699 #
c656a8f0 »
2005-06-30 Olaf changes TEF to use UTF8 internally, fixes doc, tweaks tests.
700 # tef "TourExchangeFormat" read test
71bb2a52 »
2005-05-05 More TourExchangeFormat support from Olaf Klein.
701 #
06b5b911 »
2005-06-07 Updated pathaway and tef from Olaf.
702 rm -f ${TMPDIR}/tef_xml*
703 ${PNAME} -r -i tef -f reference/route/tef_xml.sample.xml -o gpx -F ${TMPDIR}/tef_xml.sample.gpx
c656a8f0 »
2005-06-30 Olaf changes TEF to use UTF8 internally, fixes doc, tweaks tests.
704 compare reference/route/tef_xml.sample.gpx ${TMPDIR}/tef_xml.sample.gpx
71bb2a52 »
2005-05-05 More TourExchangeFormat support from Olaf Klein.
705
9a2b8ee3 »
2005-05-09 Olaf Klein contributes PathAway palm database reader
706 #
c4776bf1 »
2005-06-07 Apply pathaway.update-01.patch.bz2 from Olaf for pathaway and tef.
707 # PathAway Palm Database .pdb tests
708 #
709 rm -f ${TMPDIR}/pathaway*
710 ${PNAME} -i geo -f geocaching.loc -o pathaway,dbname="pathaway-geo" -F ${TMPDIR}/pathaway-geo.pdb
711 ${PNAME} -i pathaway -f ${TMPDIR}/pathaway-geo.pdb -o geo -F ${TMPDIR}/pathaway-geo.loc
712 compare ${TMPDIR}/pathaway-geo.loc reference/pathaway-geo.loc
713 rm -f ${TMPDIR}/pathaway*
714 ${PNAME} -t -i pathaway -f reference/track/pathaway.pdb -o gpx -F ${TMPDIR}/pathaway.gpx
715 compare ${TMPDIR}/pathaway.gpx reference/track/pathaway.gpx
9a2b8ee3 »
2005-05-09 Olaf Klein contributes PathAway palm database reader
716
963d2396 »
2005-06-29 Olaf update reference files for GDB and BCR. Fix README for BCR.
717 #
dedfeac0 »
2005-07-29 Olaf adds writing to GDB.
718 # Garmin GPS Database .gdb tests
963d2396 »
2005-06-29 Olaf update reference files for GDB and BCR. Fix README for BCR.
719 #
720 rm -f ${TMPDIR}/gdb-*
721 ${PNAME} -w -r -t -i gdb -f reference/gdb-sample.gdb -o gpx -F ${TMPDIR}/gdb-sample.gpx
722 compare reference/gdb-sample.gpx ${TMPDIR}/gdb-sample.gpx
dedfeac0 »
2005-07-29 Olaf adds writing to GDB.
723 ${PNAME} -w -r -t -i gpx -f reference/gdb-sample.gpx -o gdb,ver=1 -F ${TMPDIR}/gdb-sample.gdb
724 ${PNAME} -w -r -t -i gdb -f ${TMPDIR}/gdb-sample.gdb -o gpx -F ${TMPDIR}/gdb-sample.gpx
725 #
726 # Because of Garmin coordinates storage gpx is not good for this test
727 # compare reference/gdb-sample.gpx ${TMPDIR}/gdb-sample.gpx
728 #
e6a6f0fa »
2005-06-28 Olaf updates GDB with test data.
729
988529e6 »
2005-06-20 Etienne TASSE adds ability to read Vito Navigator .SMT tracks.
730 #
731 # Vito Navigator II .smt tests
732 #
733 rm -f ${TMPDIR}/vitosmt*
110d620f »
2005-06-24 More Vito improvements.
734 ${PNAME} -i vitosmt -f reference/vitosmt.smt -o gpx -F ${TMPDIR}/vitosmt.gpx
988529e6 »
2005-06-20 Etienne TASSE adds ability to read Vito Navigator .SMT tracks.
735 compare ${TMPDIR}/vitosmt.gpx reference/vitosmt.gpx
110d620f »
2005-06-24 More Vito improvements.
736 ${PNAME} -t -i vitosmt -f reference/vitosmt.smt -o gpx -F ${TMPDIR}/vitosmt_t.gpx
ca92f813 »
2005-06-22 Etasse updates Vito Navigator II.
737 compare ${TMPDIR}/vitosmt_t.gpx reference/track/vitosmt_t.gpx
988529e6 »
2005-06-20 Etienne TASSE adds ability to read Vito Navigator .SMT tracks.
738
13915a01 »
2005-06-22 Olaf Klein contributes a new filter for merging and splitting tracks.
739 #
740 # tracks filter tests
741 #
742
743 rm -f ${TMPDIR}/trackfilter*
744
745 ${PNAME} -t -i gpx -f reference/track/trackfilter.gpx -x track,pack,split,title="LOG-%Y%m%d" -o gpx -F ${TMPDIR}/trackfilter-new.gpx
746 grep -v "<time>" reference/track/trackfilter-new.gpx > ${TMPDIR}/trackfilter.ref
747 grep -v "<time>" ${TMPDIR}/trackfilter-new.gpx > ${TMPDIR}/trackfilter.new
748 compare ${TMPDIR}/trackfilter.ref ${TMPDIR}/trackfilter.new
749
b1c14c70 »
2005-06-29 Olaf Klein contributes BCR support.
750 #
751 # Map&Guide Motorrad Routenplaner .bcr files test
752 #
753 rm -f ${TMPDIR}/bcr*
754 ${PNAME} -r -i bcr -f reference/route/bcr-sample.bcr -o gpx -F ${TMPDIR}/bcr-sample.gpx
755 compare reference/route/bcr-sample.gpx ${TMPDIR}/bcr-sample.gpx
756 ${PNAME} -r -i gpx -f reference/route/bcr-sample.gpx -o bcr -F ${TMPDIR}/bcr-sample2.bcr
757 compare reference/route/bcr-sample2.bcr ${TMPDIR}/bcr-sample2.bcr
758 ${PNAME} -r -i bcr -f ${TMPDIR}/bcr-sample2.bcr -o gpx -F ${TMPDIR}/bcr-sample2.gpx
759 compare reference/route/bcr-sample.gpx ${TMPDIR}/bcr-sample2.gpx
760
87bc777a »
2005-07-27 Add test for glogbook.
761 #
762 # Garmin logbook. This format has an extra section (lap data with things
763 # like heartbeat and calories burned) that we don't know what to do with,
764 # so we convert it to gpx, convert it to itself, convert THAT to gpx, and
765 # compare those.
766 #
767 rm -f ${TMPDIR}/glogbook*
768 ${PNAME} -i glogbook -f reference/track/garmin_logbook.xml -o gpx -F ${TMPDIR}/glog1.gpx
769 ${PNAME} -i glogbook -f reference/track/garmin_logbook.xml -o glogbook -F ${TMPDIR}/glog.xml
770 ${PNAME} -i glogbook -f ${TMPDIR}/glog.xml -o gpx -F ${TMPDIR}/glog2.gpx
771 compare ${TMPDIR}/glog1.gpx ${TMPDIR}/glog2.gpx
772
ccf11db7 »
2005-07-27 Tobias Minich contributes the 'coto' format.
773 #
774 # Dop filter test
775 #
776 rm -f ${TMPDIR}/dop*
777 sed '/<hdop>50/d' reference/dop-test.gpx | ${PNAME} -i gpx -f - -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-hdop.ref
ae32ada0 »
2005-07-28 Rename 'dopfilter' (nee 'fix') to 'discard'.
778 ${PNAME} -i gpx -f reference/dop-test.gpx -x discard,hdop=50 -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-hdop.fil
ccf11db7 »
2005-07-27 Tobias Minich contributes the 'coto' format.
779 compare ${TMPDIR}/dop-hdop.ref ${TMPDIR}/dop-hdop.fil
780 sed '/<vdop>50/d' reference/dop-test.gpx | ${PNAME} -i gpx -f - -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-vdop.ref
ae32ada0 »
2005-07-28 Rename 'dopfilter' (nee 'fix') to 'discard'.
781 ${PNAME} -i gpx -f reference/dop-test.gpx -x discard,vdop=50 -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-vdop.fil
ccf11db7 »
2005-07-27 Tobias Minich contributes the 'coto' format.
782 compare ${TMPDIR}/dop-vdop.ref ${TMPDIR}/dop-vdop.fil
783
784 #
785 # cotoGPS test
786 #
787 rm -f ${TMPDIR}/coto*
788 # Track reading
789 ${PNAME} -i coto -f reference/cototesttrack.pdb -o openoffice -F ${TMPDIR}/cototrack.csv
790 compare reference/cototesttrack.csv ${TMPDIR}/cototrack.csv
791 # Marker read/write
792 ${PNAME} -i coto -f reference/cototestmarker.pdb -o openoffice -F ${TMPDIR}/cotomarker.csv
793 ${PNAME} -i gpx -f reference/cototestmarker.gpx -o openoffice -F ${TMPDIR}/cotomarkergpx.csv
794 compare ${TMPDIR}/cotomarker.csv ${TMPDIR}/cotomarkergpx.csv
795 ${PNAME} -i gpx -f reference/cototestmarker.gpx -o coto -F ${TMPDIR}/cotomarker.pdb
796 compare reference/cototestmarker.pdb ${TMPDIR}/cotomarker.pdb
797
d6afdd7c »
2003-12-13 Three changes:
798 exit 0
Something went wrong with that request. Please try again.