Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 950 lines (822 sloc) 39.183 kb
5a127ad Fix zero init of struct WAY (again).
robertl authored
1 GPSBABEL_FREEZE_TIME=y
2 export GPSBABEL_FREEZE_TIME
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
3
76d68d4 Tighten test suite for Windows; sync it to UNIX one more closely.
robertl authored
4 PNAME=${PNAME:-./gpsbabel}
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
5 DIFF=${DIFF:-diff}
7fff077 Add human-readable testo case (and fix bugs)
parkrrrr authored
6 OD=${OD:-od -Ax -txC -v}
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
7
66ac28e Misc code cleanups from Alex.
robertl authored
8 TMPDIR=/tmp/gpsbabel.$$
9 mkdir -p $TMPDIR
10 trap "rm -fr $TMPDIR" 0 1 2 3 15
11
7fff077 Add human-readable testo case (and fix bugs)
parkrrrr authored
12 bincompare()
13 {
14 rm -f ${TMPDIR}/bc1
15 rm -f ${TMPDIR}/bc2
16 ${OD} $1 >${TMPDIR}/bc1
17 ${OD} $2 >${TMPDIR}/bc2
d94c483 Oops, didn't mean to comment that line out. Also, bincompare is easier ...
parkrrrr authored
18 ${DIFF} -u ${TMPDIR}/bc1 ${TMPDIR}/bc2 || {
7fff077 Add human-readable testo case (and fix bugs)
parkrrrr authored
19 echo ERROR binary comparing $*
20 exit 1
21 }
22 }
23
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
24 compare()
25 {
26 ${DIFF} $* || {
27 echo ERROR comparing $*
28 exit 1
29 }
30 }
31
b42c49c solidify duplicate sort states in testo
robertl authored
32 sort_and_compare()
33 {
34 sort $1 > $TMPDIR/s1
35 sort $2 > $TMPDIR/s2
36 compare $TMPDIR/s1 $TMPDIR/s2
37 }
38
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
39 compare_gpx()
40 {
41 sed -e '1d' $1 > $TMPDIR/comp_gpx1
42 sed -e '1d' $2 > $TMPDIR/comp_gpx2
43 compare $TMPDIR/comp_gpx1 $TMPDIR/comp_gpx2
44 }
4bff0e7 Add magellanx. Give up on testing some xcsv types.
robertl authored
45
46 # Some formats are just too boring to test. The ones that
47 # are xcsv include
48 # garmin301
49 # garmin_poi
50 # gpsdrivetrack
51 # nima
52 # mapconverter
53 # geonet
54 # saplus
55 # s_and_t
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
56
14b7cae Initial revision
robertl authored
57 # Geocaching .loc
66ac28e Misc code cleanups from Alex.
robertl authored
58 rm -f ${TMPDIR}/gl.loc
59 ${PNAME} -i geo -f geocaching.loc -o geo -F ${TMPDIR}/gl.loc
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
60 compare ${TMPDIR}/gl.loc reference
14b7cae Initial revision
robertl authored
61
62 # GPSUtil
9c9b063 Add case for gpsutil read & psp write.
robertl authored
63 rm -f ${TMPDIR}/gu.wpt ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
66ac28e Misc code cleanups from Alex.
robertl authored
64 ${PNAME} -i geo -f geocaching.loc -o gpsutil -F ${TMPDIR}/gu.wpt
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
65 compare ${TMPDIR}/gu.wpt reference
9c9b063 Add case for gpsutil read & psp write.
robertl authored
66 ${PNAME} -i gpsutil -f ${TMPDIR}/gu.wpt -o gpx -F ${TMPDIR}/1.gpx
67 ${PNAME} -i gpsutil -f reference/gu.wpt -o gpx -F ${TMPDIR}/2.gpx
68 compare ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
14b7cae Initial revision
robertl authored
69
70 # GPSman
66ac28e Misc code cleanups from Alex.
robertl authored
71 rm -f ${TMPDIR}/gm.gm ${TMPDIR}/gm.gm+
72 ${PNAME} -i geo -f geocaching.loc -o gpsman -F ${TMPDIR}/gm.gm
73 ${PNAME} -i gpsman -f ${TMPDIR}/gm.gm -o gpsutil -F ${TMPDIR}/gm.gm+
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
74 compare ${TMPDIR}/gm.gm+ ${TMPDIR}/gu.wpt
14b7cae Initial revision
robertl authored
75
76 # GPX
66ac28e Misc code cleanups from Alex.
robertl authored
77 rm -f ${TMPDIR}/gl.gpx ${TMPDIR}/gpx.gpx
78 ${PNAME} -i geo -f geocaching.loc -o gpx -F ${TMPDIR}/gl.gpx
79 ${PNAME} -i gpx -f ${TMPDIR}/gl.gpx -o gpsutil -F ${TMPDIR}/gpx.gpx
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
80 compare ${TMPDIR}/gpx.gpx ${TMPDIR}/gu.wpt
14b7cae Initial revision
robertl authored
81
82 # Magellan Mapsend
66ac28e Misc code cleanups from Alex.
robertl authored
83 rm -f ${TMPDIR}/mm.mapsend ${TMPDIR}/mm.gps
84 ${PNAME} -i geo -f geocaching.loc -o mapsend -F ${TMPDIR}/mm.mapsend
85 ${PNAME} -i mapsend -f ${TMPDIR}/mm.mapsend -o gpsutil -F ${TMPDIR}/mm.gps
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
86 compare ${TMPDIR}/mm.gps ${TMPDIR}/gu.wpt
14b7cae Initial revision
robertl authored
87
88 # Magellan serial
89 # TODO
90
3a86ae0 Add tiger reads & testsuite.
robertl authored
91 # Tiger
92 # This one is a little tacky, becuase it's a very lossy format.
93 # so we simply test we can write it, and then read it and write it and
94 # get an identical file back.
95 rm -f ${TMPDIR}/tiger
96 ${PNAME} -i geo -f geocaching.loc -o tiger -F ${TMPDIR}/tiger
97 ${PNAME} -i tiger -f ${TMPDIR}/tiger -o tiger -F ${TMPDIR}/tiger2
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
98 compare ${TMPDIR}/tiger ${TMPDIR}/tiger2
14b7cae Initial revision
robertl authored
99
5d391c3 Add lowrance usr support from Jason Rust/jrust at rustyparts.com.
robertl authored
100 #
101 # Lowrance USR. Binary, and also slightly lossy because of the math to
889b35d Give up trying to test lowranceusr...
robertl authored
102 # convert lat/long. It also doesn't support description, which makes it
103 # awkward to test.
5d391c3 Add lowrance usr support from Jason Rust/jrust at rustyparts.com.
robertl authored
104 #
105 rm -f ${TMPDIR}/lowrance1.usr
99ba396 Ling contributes track and route support for Lowrance .usr format.
robertl authored
106 rm -f ${TMPDIR}/enchilada1.usr
107 rm -f ${TMPDIR}/enchilada.gpx
5d391c3 Add lowrance usr support from Jason Rust/jrust at rustyparts.com.
robertl authored
108 ${PNAME} -i geo -f geocaching.loc -o lowranceusr -F ${TMPDIR}/lowrance1.usr
109 bincompare ${TMPDIR}/lowrance1.usr reference/lowrance.usr
889b35d Give up trying to test lowranceusr...
robertl authored
110 ${PNAME} -i lowranceusr -f ${TMPDIR}/lowrance1.usr -o lowranceusr -F ${TMPDIR}/lowrance1.usr
111 # And because of the FP rounding, we can't even read our file, write it back
112 # and get the same data. Sigh.
113 # bincompare reference/lowrance.usr ${TMPDIR}/lowrance1.usr
99ba396 Ling contributes track and route support for Lowrance .usr format.
robertl authored
114 ${PNAME} -i lowranceusr -f reference/all.usr -o gpx -F ${TMPDIR}/enchilada.gpx
115 ${PNAME} -i gpx -f ${TMPDIR}/enchilada.gpx -o lowranceusr -F ${TMPDIR}/enchilada1.usr
116 bincompare ${TMPDIR}/enchilada1.usr reference/enchilada.usr
117 # Don't convert icons as waypts
118 ${PNAME} -i lowranceusr,ignoreicons -f reference/all.usr -o gpx -F ${TMPDIR}/enchilada.gpx
119 ${PNAME} -i gpx -f ${TMPDIR}/enchilada.gpx -o lowranceusr -F ${TMPDIR}/enchilada1.usr
120 bincompare ${TMPDIR}/enchilada1.usr reference/ignoreicons.usr
5d391c3 Add lowrance usr support from Jason Rust/jrust at rustyparts.com.
robertl authored
121
14b7cae Initial revision
robertl authored
122 # CSV (Comma separated value) data.
123
b53e47b Add topousa4/xmap format.
robertl authored
124 ${PNAME} -i geo -f geocaching.loc -o csv -F ${TMPDIR}/csv.csv
125 ${PNAME} -i csv -f ${TMPDIR}/csv.csv -o csv -F ${TMPDIR}/csv2.csv
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
126 compare ${TMPDIR}/csv2.csv ${TMPDIR}/csv.csv
b53e47b Add topousa4/xmap format.
robertl authored
127
128 #
129 # Delorme TopoUSA 4 is a CSV strain.
130 #
131 rm -f ${TMPDIR}/xmap-1.gpx ${TMPDIR}/xmap-2.gpx ${TMPDIR}/xmap
132 ${PNAME} -i xmap -f reference/xmap -o xmap -F ${TMPDIR}/xmap
133 ${PNAME} -i xmap -f reference/xmap -o gpx -F ${TMPDIR}/xmap-1.gpx
134 ${PNAME} -i xmap -f ${TMPDIR}/xmap -o gpx -F ${TMPDIR}/xmap-2.gpx
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
135 compare ${TMPDIR}/xmap-1.gpx ${TMPDIR}/xmap-2.gpx
136 compare reference/xmap ${TMPDIR}/xmap
14b7cae Initial revision
robertl authored
137
138 # PCX (Garmin mapsource import) file format
66ac28e Misc code cleanups from Alex.
robertl authored
139 rm -f ${TMPDIR}/mm.pcx ${TMPDIR}/pcx.gps
140 ${PNAME} -i geo -f geocaching.loc -o pcx -F ${TMPDIR}/mm.pcx
141 ${PNAME} -i pcx -f ${TMPDIR}/mm.pcx -o gpsutil -F ${TMPDIR}/pcx.gps
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
142 compare ${TMPDIR}/mm.gps ${TMPDIR}/gu.wpt
d0b923e Changed strftime format because %T is being ignored under Windows.
oliskoli authored
143 ${PNAME} -t -i gpx -f reference/track/tracks.gpx -o pcx -F ${TMPDIR}/pcx.trk
144 ${PNAME} -t -i pcx -f reference/track/pcx.trk -o pcx -F ${TMPDIR}/pcx2.trk
145 compare ${TMPDIR}/pcx.trk ${TMPDIR}/pcx2.trk
14b7cae Initial revision
robertl authored
146
4bff0e7 Add magellanx. Give up on testing some xcsv types.
robertl authored
147 #
0b5696e Make waypt_head non-static. The purity isn't worth the pain.
robertl authored
148 # Magellan file format
4bff0e7 Add magellanx. Give up on testing some xcsv types.
robertl authored
149 #
66ac28e Misc code cleanups from Alex.
robertl authored
150 ${PNAME} -i magellan -f reference/magfile -o magellan -F ${TMPDIR}/magfile
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
151 compare ${TMPDIR}/magfile reference/magfile
0b5696e Make waypt_head non-static. The purity isn't worth the pain.
robertl authored
152
4bff0e7 Add magellanx. Give up on testing some xcsv types.
robertl authored
153 #
154 # Magellanx is just like, but with longer names. (which this admittedly
155 # doesn't actually exercise...)
156 #
157 ${PNAME} -i magellan -f reference/magfile -o magellanx -F ${TMPDIR}/magfile2
158 compare ${TMPDIR}/magfile2 reference/magfile
159
37424d6 Add Navitrak DNA format, from Tim Zickus, tez@zickus.com
robertl authored
160 # Navitrak DNA marker format
161 ${PNAME} -i dna -f reference/dnatest.txt -o dna -F ${TMPDIR}/dnatest.txt
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
162 compare ${TMPDIR}/dnatest.txt reference/dnatest.txt
37424d6 Add Navitrak DNA format, from Tim Zickus, tez@zickus.com
robertl authored
163
116fefc Jumbo patch from Mottram.
robertl authored
164 # PSP (PocketStreets 2002 Pushpin (.PSP)) file format. Use mxf as an
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
165 # intermediate format to avoid binary FP anomalies on compareerent platforms.
116fefc Jumbo patch from Mottram.
robertl authored
166 rm -f ${TMPDIR}/psp.mxf ${TMPDIR}/mxf.psp
167 ${PNAME} -i psp -f reference/ps.psp -o mxf -F ${TMPDIR}/psp.mxf
168 ${PNAME} -i geo -f geocaching.loc -o mxf -F ${TMPDIR}/mxf.psp
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
169 compare ${TMPDIR}/psp.mxf ${TMPDIR}/mxf.psp
9c9b063 Add case for gpsutil read & psp write.
robertl authored
170 ${PNAME} -i psp -f reference/ps.psp -o gpx -F ${TMPDIR}/psp1.gpx
171 ${PNAME} -i psp -f reference/ps.psp -o psp -F ${TMPDIR}/xxx.psp
172 ${PNAME} -i psp -f ${TMPDIR}/xxx.psp -o gpx -F ${TMPDIR}/psp2.gpx
173 compare ${TMPDIR}/psp1.gpx ${TMPDIR}/psp2.gpx
035dbe8 Add microsoft pushpin 2002 support. Courtesy Alex Mottram.
robertl authored
174
fe596f8 Add support for MXF, from Alex Mottram <alex_m@cox-internet.com>
robertl authored
175 # MXF (Maptech Exchange Format) file format
66ac28e Misc code cleanups from Alex.
robertl authored
176 rm -f ${TMPDIR}/mx.mxf ${TMPDIR}/mxf.mxf
177 ${PNAME} -i mxf -f reference/mxf.mxf -o mxf -F ${TMPDIR}/mx.mxf
178 ${PNAME} -i mxf -f ${TMPDIR}/mx.mxf -o mxf -F ${TMPDIR}/mxf.mxf
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
179 compare ${TMPDIR}/mxf.mxf reference
033f45a A slew of updates from Alex Mottram. Thanx!
robertl authored
180
8f87d9d Rename TopoMapPro from tmp to tmpro. Thanx, Nick!
robertl authored
181 # tmpro (TopoMapPro Places) file format
182 rm -f ${TMPDIR}/topomappro.txt ${TMPDIR}/mxf.mxf
183 ${PNAME} -i tmpro -f reference/topomappro.txt -o tmpro -F ${TMPDIR}/tmp.txt
184 ${PNAME} -i tmpro -f ${TMPDIR}/tmp.txt -o tmpro -F ${TMPDIR}/topomappro.txt
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
185 compare ${TMPDIR}/topomappro.txt reference
8f87d9d Rename TopoMapPro from tmp to tmpro. Thanx, Nick!
robertl authored
186
0382705 adds Topo! support and implements mkshort in .psp,
robertl authored
187 # TPG (NG Topo!) file format
188 # This is hard to test as the datum conversions create minute
189 # inconsistencies in the coordinates. So.. we test our i/o
190 # against a format that rounds higher than we care to compare
191 # for binary data.
192 rm -f ${TMPDIR}/topo.mxf ${TMPDIR}/tpg.mxf ${TMPDIR}/geo.tpg
193 ${PNAME} -i geo -f geocaching.loc -o tpg -F ${TMPDIR}/geo.tpg
194 ${PNAME} -i tpg -f ${TMPDIR}/geo.tpg -o mxf -F ${TMPDIR}/tpg.mxf
195 ${PNAME} -i tpg -f reference/tpg.tpg -o mxf -F ${TMPDIR}/topo.mxf
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
196 compare ${TMPDIR}/tpg.mxf ${TMPDIR}/topo.mxf
0382705 adds Topo! support and implements mkshort in .psp,
robertl authored
197
9cb61af From Alex Mottram:
robertl authored
198 # OZI (OziExplorer 1.1) file format
6d9186b Add auto-mode sensing read/write processing to OziExplorer waypoints, ro...
alexmot authored
199 rm -f ${TMPDIR}/oz.wpt ${TMPDIR}/ozi.wpt
200 ${PNAME} -i ozi -f reference/ozi.wpt -o ozi -F ${TMPDIR}/oz.wpt
201 ${PNAME} -i ozi -f ${TMPDIR}/oz.wpt -o ozi -F ${TMPDIR}/ozi.wpt
202 compare ${TMPDIR}/ozi.wpt reference
9cb61af From Alex Mottram:
robertl authored
203
ecf06ff Add holux case.
robertl authored
204 # Holux support is a little funky to test. Becuase it loses precision,
205 # if we convert it to another format, we lose accuracy (rounding) in the
206 # coords, so converting it so something else and comparing it never works.
207 # So we verify that we can read the reference and write it and get an
208 # identical reference.
209 ${PNAME} -i holux -f reference/paris.wpo -o holux -F ${TMPDIR}/paris.wpo
6b3c8ab Palmdoc: minor leak fixes. (Needs more)
robertl authored
210 # compare reference/paris.wpo ${TMPDIR}/paris.wpo
b53e47b Add topousa4/xmap format.
robertl authored
211
8a73124 Complete Magellan Navigator support. Thanx to Ron Parker!
robertl authored
212 # Magellan NAV Companion for PalmOS
213 # This format is hard to test, because each record and the database itself
214 # contains the time of creation, so two otherwise identical files won't
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
215 # compare accurately. In any case, the files are binary so compare wouldn't
8a73124 Complete Magellan Navigator support. Thanx to Ron Parker!
robertl authored
216 # like them. So, we convert the reference file to gpsutil and the converted
217 # file to gpsutil and make sure they're the same, and that they're the same
218 # as one converted on a known-working installation. Unfortunately, this does
219 # not verify that the appinfo block was written correctly. However, it does
220 # successfully test for some endianness errors that might otherwise go
221 # unnoticed.
60ac2a8 Add unknonw alt support for Cetus. From Ron Parker.
robertl authored
222 rm -f ${TMPDIR}/magnav.pdb ${TMPDIR}/magnav.gpu ${TMPDIR}/magnavt.gpu
8a73124 Complete Magellan Navigator support. Thanx to Ron Parker!
robertl authored
223 ${PNAME} -i geo -f geocaching.loc -o magnav -F ${TMPDIR}/magnav.pdb
224 ${PNAME} -i magnav -f ${TMPDIR}/magnav.pdb -o gpsutil -F ${TMPDIR}/magnav.gpu
225 ${PNAME} -i magnav -f reference/magnav.pdb -o gpsutil -F ${TMPDIR}/magnavt.gpu
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
226 compare ${TMPDIR}/magnavt.gpu ${TMPDIR}/magnav.gpu
cfc7ac3 Fix gpsutil output. Deal with wreckage in test suite.
robertl authored
227 compare reference/gu.wpt ${TMPDIR}/magnav.gpu
8a73124 Complete Magellan Navigator support. Thanx to Ron Parker!
robertl authored
228
7fff077 Add human-readable testo case (and fix bugs)
parkrrrr authored
229 rm -f ${TMPDIR}/magnav.pdb
230 ${PNAME} -i geo -f geocaching.loc -o magnav -F ${TMPDIR}/magnav.pdb
231 bincompare ${TMPDIR}/magnav.pdb reference/magnav.pdb
232
233
234
d7562c3 Finish up gpspilot support. Thanx to Ron Parker!
robertl authored
235 # GPSPilot Tracker for PalmOS
236 # This test is eerily similar to the NAV Companion test. In fact, the
237 # converted reference file (magnavr.gpu) is identical.
60ac2a8 Add unknonw alt support for Cetus. From Ron Parker.
robertl authored
238 rm -f ${TMPDIR}/gpspilot.pdb ${TMPDIR}/gpspilot.gpu ${TMPDIR}/gpspil_t.gpu
d7562c3 Finish up gpspilot support. Thanx to Ron Parker!
robertl authored
239 ${PNAME} -i geo -f geocaching.loc -o gpspilot -F ${TMPDIR}/gpspilot.pdb
240 ${PNAME} -i gpspilot -f ${TMPDIR}/gpspilot.pdb -o gpsutil -F ${TMPDIR}/gpspilot.gpu
241 ${PNAME} -i gpspilot -f reference/gpspilot.pdb -o gpsutil -F ${TMPDIR}/gpspil_t.gpu
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
242 compare ${TMPDIR}/gpspil_t.gpu ${TMPDIR}/gpspilot.gpu
cfc7ac3 Fix gpsutil output. Deal with wreckage in test suite.
robertl authored
243 compare reference/gu.wpt ${TMPDIR}/gpspilot.gpu
d7562c3 Finish up gpspilot support. Thanx to Ron Parker!
robertl authored
244
60ac2a8 Add unknonw alt support for Cetus. From Ron Parker.
robertl authored
245 # Cetus GPS for PalmOS
246 # This test is also similar to the NAV Companion test.
247 rm -f ${TMPDIR}/cetus.pdb ${TMPDIR}/cetus.gpu ${TMPDIR}/cetust.gpu
248 ${PNAME} -i geo -f geocaching.loc -o cetus -F ${TMPDIR}/cetus.pdb
249 ${PNAME} -i cetus -f ${TMPDIR}/cetus.pdb -o gpsutil -F ${TMPDIR}/cetus.gpu
250 ${PNAME} -i cetus -f reference/cetus.pdb -o gpsutil -F ${TMPDIR}/cetust.gpu
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
251 compare ${TMPDIR}/cetust.gpu ${TMPDIR}/cetus.gpu
252 compare reference/cetus.gpu ${TMPDIR}/cetus.gpu
b27d63d Add gpsdrive, courtesy Alan Curry.
robertl authored
253
0162857 Update vecs & testo for Quovadis from Bruce Thompson.
robertl authored
254 # QuoVadis GPS for PalmOS
255 # This test is derived from the Cetus test above.
256 rm -f ${TMPDIR}/quovadis.pdb ${TMPDIR}/quovadis.gpu ${TMPDIR}/quovadist.gpu
257 ${PNAME} -i geo -f geocaching.loc -o quovadis -F ${TMPDIR}/quovadis.pdb
258 ${PNAME} -i quovadis -f ${TMPDIR}/quovadis.pdb -o gpsutil -F ${TMPDIR}/quovadis.gpu
259 ${PNAME} -i quovadis -f reference/quovadis.pdb -o gpsutil -F ${TMPDIR}/quovadist.gpu
260 compare ${TMPDIR}/quovadist.gpu ${TMPDIR}/quovadis.gpu
261 compare reference/quovadis.gpu ${TMPDIR}/quovadis.gpu
262
b27d63d Add gpsdrive, courtesy Alan Curry.
robertl authored
263 # GpsDrive
264 rm -f ${TMPDIR}/gpsdrive.txt
265 ${PNAME} -i geo -f geocaching.loc -o gpsdrive -F ${TMPDIR}/gpsdrive.txt
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
266 compare ${TMPDIR}/gpsdrive.txt reference
b27d63d Add gpsdrive, courtesy Alan Curry.
robertl authored
267 ${PNAME} -i gpsdrive -f reference/gpsdrive.txt -o gpsdrive -F ${TMPDIR}/gpsdrive2.txt
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
268 compare ${TMPDIR}/gpsdrive2.txt reference/gpsdrive.txt
b27d63d Add gpsdrive, courtesy Alan Curry.
robertl authored
269
1844c31 Completly new, data driven XSV handlers. Thanx, Alex!
robertl authored
270 # XMapHH Street Atlas USA file format
271 rm -f ${TMPDIR}/xmapwpt.wpt ${TMPDIR}/xmapwpt.xmapwpt
272 ${PNAME} -i xmapwpt -f reference/xmapwpt.wpt -o xmapwpt -F ${TMPDIR}/xmapwpt.xmapwpt
273 ${PNAME} -i xmapwpt -f ${TMPDIR}/xmapwpt.xmapwpt -o xmapwpt -F ${TMPDIR}/xmapwpt.wpt
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
274 compare ${TMPDIR}/xmapwpt.wpt reference
1844c31 Completly new, data driven XSV handlers. Thanx, Alex!
robertl authored
275
276 # XCSV
277 # Test that we can parse a style file, and read and write data in the
278 # same xcsv format (a complete test is virtually impossible).
279 echo "RECORD_DELIMITER NEWLINE" > ${TMPDIR}/testo.style
280 echo "FIELD_DELIMITER COMMA" >> ${TMPDIR}/testo.style
281 echo "BADCHARS COMMA" >> ${TMPDIR}/testo.style
282 echo "PROLOGUE Header" >> ${TMPDIR}/testo.style
283 echo "EPILOGUE Footer" >> ${TMPDIR}/testo.style
284 echo "IFIELD SHORTNAME,,%s" >> ${TMPDIR}/testo.style
285 echo "IFIELD LAT_DIRDECIMAL,,%c%lf" >> ${TMPDIR}/testo.style
286 echo "IFIELD LON_DECIMALDIR,,%lf%c" >> ${TMPDIR}/testo.style
287 rm -f ${TMPDIR}/xcsv.geo ${TMPDIR}/xcsv.xcsv
288 ${PNAME} -i geo -f geocaching.loc -o xcsv,style=${TMPDIR}/testo.style -F ${TMPDIR}/xcsv.geo
289 ${PNAME} -i xcsv,style=${TMPDIR}/testo.style -f ${TMPDIR}/xcsv.geo -o xcsv,style=${TMPDIR}/testo.style -F ${TMPDIR}/xcsv.xcsv
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
290 compare ${TMPDIR}/xcsv.geo ${TMPDIR}/xcsv.xcsv
bbb531f Implement Garmin Mapsource format.
robertl authored
291
292 # Garmin Mapsource This is a binary format with some undocumented
293 # fields. This test is therefore intentionally vague. We read a file,
294 # convert it to GPX, then write a file as MPS, then read it back and
295 # write it as GPX and compare them. Since we're writing both GPX files
296 # ourselves from the same version, we're immune to changes in our own
297 # GPX output.
298
299 rm -fr ${TMPDIR}/ms.gpx ${TMPDIR}/ms[12].gpx
300 ${PNAME} -i mapsource -f reference/mapsource.mps -o gpx -F ${TMPDIR}/ms1.gpx
301 ${PNAME} -i mapsource -f reference/mapsource.mps -o mapsource -F ${TMPDIR}/ms.mps
302 ${PNAME} -i mapsource -f ${TMPDIR}/ms.mps -o gpx -F ${TMPDIR}/ms2.gpx
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
303 compare ${TMPDIR}/ms1.gpx ${TMPDIR}/ms2.gpx
826cdde Big update from Mark Bradley:
robertl authored
304
9b81f75 Add testo cases for mapsource tracks.
robertl authored
305 #
306 # MRCB mapsource track test
307 #
308 rm -f ${TMPDIR}/mps-track.mps
79b36cb Change default Mapsource version output to 5.
robertl authored
309 ${PNAME} -t -i mapsource -f reference/track/mps-track.mps -o mapsource,mpsverout=3 \
9b81f75 Add testo cases for mapsource tracks.
robertl authored
310 -F ${TMPDIR}/mps-track.mps
311 compare ${TMPDIR}/mps-track.mps reference/track/
6f1da96 Add GeocachingDB input and output module.
robertl authored
312
826cdde Big update from Mark Bradley:
robertl authored
313 # Now do a test of reading waypoints from a track-only file - should have an empty result
314 rm -f ${TMPDIR}/mps-track.mps
79b36cb Change default Mapsource version output to 5.
robertl authored
315 ${PNAME} -i mapsource -f reference/track/mps-track.mps -o mapsource,mpsverout=3 \
826cdde Big update from Mark Bradley:
robertl authored
316 -F ${TMPDIR}/mps-track.mps
317 compare ${TMPDIR}/mps-track.mps reference/mps-empty.mps
318
319 #
320 # MRCB mapsource route test
321 #
322 rm -f ${TMPDIR}/mps-route.mps
323 ${PNAME} -r -i mapsource -f reference/route/route.mps -o mapsource,mpsverout=4 \
324 -F ${TMPDIR}/mps-route.mps
325 compare ${TMPDIR}/mps-route.mps reference/route/route.mps
326
327 # Now do a test of reading tracks from a route-only file - should have an empty result
328 rm -f ${TMPDIR}/mps-route.mps
79b36cb Change default Mapsource version output to 5.
robertl authored
329 ${PNAME} -t -i mapsource -f reference/route/route.mps -o mapsource,mpsverout=3 \
826cdde Big update from Mark Bradley:
robertl authored
330 -F ${TMPDIR}/mps-route.mps
331 compare ${TMPDIR}/mps-route.mps reference/mps-empty.mps
332
6f1da96 Add GeocachingDB input and output module.
robertl authored
333 #
334 # Geocaching Database is a binary Palm format that, like the GPX variants
335 # has a zillion "equivalent" encodings of any given record set. So we
336 # read the reference file, spin it to GPX and back to GCDB and then spin
337 # that one to GPX.
338 #
339
340 ${PNAME} -i gcdb -f reference/GeocachingDB.PDB -o gpx -F ${TMPDIR}/gcdb1.gpx \
341 -o gcdb -F ${TMPDIR}/gcdb1.pdb
342 ${PNAME} -i gpx -f ${TMPDIR}/gcdb1.gpx -o gpx -F ${TMPDIR}/gcdb2.gpx
937bbb0 Make comparisons fatal, make it easier to override diff.
robertl authored
343 compare ${TMPDIR}/gcdb1.gpx ${TMPDIR}/gcdb1.gpx
9794324 Filter test. Thanx, Alex.
robertl authored
344
345 #
346 # Duplicate filter - Since filters have no format of their own, we use csv
347 # as an intermediate format for testing the filter.
348 #
349 rm -f ${TMPDIR}/filterdupe.csv1 ${TMPDIR}/filterdupe.csv2
350 ${PNAME} -i geo -f geocaching.loc -o csv -F ${TMPDIR}/filterdupe.csv1
351 ${PNAME} -i geo -f geocaching.loc -f geocaching.loc -x duplicate,shortname \
352 -o csv -F ${TMPDIR}/filterdupe.csv2
b42c49c solidify duplicate sort states in testo
robertl authored
353 sort_and_compare ${TMPDIR}/filterdupe.csv1 ${TMPDIR}/filterdupe.csv2
9794324 Filter test. Thanx, Alex.
robertl authored
354
355 #
356 # Position filter - Since very small distances are essentialy a duplicate
357 # position filter, we can test very similarly to the duplicate filter.
358 #
359 rm -f ${TMPDIR}/filterpos.csv1 ${TMPDIR}/filterpos.csv2
360 ${PNAME} -i geo -f geocaching.loc -o csv -F ${TMPDIR}/filterpos.csv1
361 ${PNAME} -i geo -f geocaching.loc -f geocaching.loc -x position,distance=5f \
362 -o csv -F ${TMPDIR}/filterpos.csv2
b42c49c solidify duplicate sort states in testo
robertl authored
363 sort_and_compare ${TMPDIR}/filterpos.csv1 ${TMPDIR}/filterpos.csv2
79c2129 Add route handling for magproto, mapsend, GPX. Thanx, Alex Mottram!
robertl authored
364
365 #
00d8353 Add position filter for radius, courtesy Alex Mottram.
robertl authored
366 # Radius filter
367 #
368 rm -f ${TMPDIR}/radius.csv
369 ${PNAME} -i geo -f geocaching.loc \
370 -x radius,lat=35.9720,lon=-87.1347,distance=14.7 \
371 -o csv -F ${TMPDIR}/radius.csv
372 compare ${TMPDIR}/radius.csv reference/
373
374 #
79c2129 Add route handling for magproto, mapsend, GPX. Thanx, Alex Mottram!
robertl authored
375 # magellan SD card waypoint / route format
376 #
377 rm -f ${TMPDIR}/magellan.rte
378 ${PNAME} -r -i magellan -f reference/route/magellan.rte -o magellan \
379 -F ${TMPDIR}/magellan.rte
380 compare ${TMPDIR}/magellan.rte reference/route/magellan.rte
381
4bff0e7 Add magellanx. Give up on testing some xcsv types.
robertl authored
382
79c2129 Add route handling for magproto, mapsend, GPX. Thanx, Alex Mottram!
robertl authored
383 #
384 # GPX routes -- since GPX contains a date stamp, tests will always
385 # fail, so we use magellan as an interim format...
386 #
387 rm -f ${TMPDIR}/gpxroute.gpx ${TMPDIR}/maggpx.rte
388 ${PNAME} -r -i gpx -f reference/route/route.gpx -o gpx \
389 -F ${TMPDIR}/gpxroute.gpx
390 ${PNAME} -r -i gpx -f ${TMPDIR}/gpxroute.gpx -o magellan \
391 -F ${TMPDIR}/maggpx.rte
392 compare ${TMPDIR}/maggpx.rte reference/route/magellan.rte
393
394 #
0a85140 Add GPX track test case.
alexmot authored
395 # GPX tracks -- since GPX contains a date stamp, tests will always
396 # fail, so we use magellan as an interim format...
397 #
398 rm -f ${TMPDIR}/gpxtrack.gpx ${TMPDIR}/maggpx.trk
399 ${PNAME} -t -i gpx -f reference/track/tracks.gpx -o gpx \
400 -F ${TMPDIR}/gpxtrack.gpx
401 ${PNAME} -t -i magellan -f reference/track/meridian.trk -o gpx \
402 -F ${TMPDIR}/maggpx.trk
403 compare ${TMPDIR}/maggpx.trk ${TMPDIR}/gpxtrack.gpx
404
405 #
79c2129 Add route handling for magproto, mapsend, GPX. Thanx, Alex Mottram!
robertl authored
406 # MAPSEND waypoint / route format
407 #
408 rm -f ${TMPDIR}/route.mapsend
409 ${PNAME} -r -i mapsend -f reference/route/route.mapsend -o mapsend \
410 -F ${TMPDIR}/route.mapsend
411 compare ${TMPDIR}/route.mapsend reference/route/
5acc253 Add mapsource track support. Thanx, Alex!
robertl authored
412
413 #
414 # MAPSEND track format
415 #
416 rm -f ${TMPDIR}/mapsend.trk
417 ${PNAME} -t -i mapsend -f reference/track/mapsend.trk -o mapsend \
418 -F ${TMPDIR}/mapsend.trk
419 compare ${TMPDIR}/mapsend.trk reference/track/
c177f50 Add test for Copilot. Reference file from Tomblin.
robertl authored
420
421 #
422 # copilot
423 #
424 rm -f ${TMPDIR}/copilot.pdb
425 ${PNAME} -i copilot -f reference/UKultralight.pdb -o copilot -F ${TMPDIR}/cop.pdb
426 ${PNAME} -i copilot -f reference/UKultralight.pdb -o gpx -F ${TMPDIR}/cop1.gpx
427 ${PNAME} -i copilot -f ${TMPDIR}/cop.pdb -o gpx -F ${TMPDIR}/cop2.gpx
428 compare ${TMPDIR}/cop1.gpx ${TMPDIR}/cop2.gpx
6d30ee8 Add EasyGPS binary format based on info from Eric Cloninger.
robertl authored
429
430 #
431 # EasyGPS. Another binary format.
432 #
433 rm -f ${TMPDIR}/easy.loc
434 ${PNAME} -i easygps -f reference/easygps.loc -o easygps -F ${TMPDIR}/ez.loc
435 ${PNAME} -i easygps -f reference/easygps.loc -o gpx -F ${TMPDIR}/ez1.gpx
436 ${PNAME} -i easygps -f ${TMPDIR}/ez.loc -o gpx -F ${TMPDIR}/ez2.gpx
437 compare ${TMPDIR}/ez1.gpx ${TMPDIR}/ez2.gpx
7e6cf90 Add rest of Ron's arc distance stuff.
robertl authored
438
439 #
a940ffc Test GPilotS support.
robertl authored
440 # GPilotS. A Palm format. Another binary format that
441 #
442 # rm -f ${TMPDIR/gpilots.l
443 #${PNAME} -i easygps -f reference/gpilots.pdb -o gpx -F ${TMPDIR}/gp.gpx
444 ${PNAME} -i geo -f geocaching.loc -o gpilots -F ${TMPDIR}/blah.pdb
445 ${PNAME} -i gpilots -f ${TMPDIR}/blah.pdb -o gpx -F ${TMPDIR}/1.gpx
446 ${PNAME} -i gpilots -f reference/gpilots.pdb -o gpx -F ${TMPDIR}/2.gpx
447 compare ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
448 #${PNAME} -i easygps -f reference/gpilots.pdb -o gpx -F ${TMPDIR}/gp.gpx
449
450 #
db81519 Add navicache as a (read-only) format.
robertl authored
451 # Navicache.
452 ${PNAME} -i navicache -f reference/navicache.xml -o gpsutil -F ${TMPDIR}/navi.wpt
453 compare ${TMPDIR}/navi.wpt reference/navicache.ref
454 #
455
612e9d0 Add Coastal Explorer courtesy justinbr of earthlink.net.
robertl authored
456 #
457 # CoastalExplorer..
8bfb375 From justin: add writing to coastexp.c
robertl authored
458 ${PNAME} -r -i coastexp -f reference/coastexp.nob -o gpx -F ${TMPDIR}/coastexp.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
459 compare_gpx ${TMPDIR}/coastexp.gpx reference/coastexp.ref
8bfb375 From justin: add writing to coastexp.c
robertl authored
460 ${PNAME} -r -i gpx -f ${TMPDIR}/coastexp.gpx -o coastexp -F ${TMPDIR}/coastexp.nob
461 compare ${TMPDIR}/coastexp.nob reference/coastexp.ref2
462 ${PNAME} -w -i coastexp -f reference/coastexp.nob -o gpx -F ${TMPDIR}/coastexp.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
463 compare_gpx ${TMPDIR}/coastexp.gpx reference/coastexp.ref3
8bfb375 From justin: add writing to coastexp.c
robertl authored
464 ${PNAME} -w -i gpx -f ${TMPDIR}/coastexp.gpx -o coastexp -F ${TMPDIR}/coastexp.nob
465 compare ${TMPDIR}/coastexp.nob reference/coastexp.ref4
466 #
467
826cdde Big update from Mark Bradley:
robertl authored
468 # PsiTrex. A text format that can't be handled by XCSV due to context of
469 # data based on other data values in the file
470 # Waypoints first
471 rm -f ${TMPDIR}/psit-ww.txt ${TMPDIR}/psit-ww.mps
472 ${PNAME} -i psitrex -f reference/psitwpts.txt -o mapsource -F ${TMPDIR}/psit-ww.mps
473 ${PNAME} -i mapsource -f ${TMPDIR}/psit-ww.mps -o psitrex -F ${TMPDIR}/psit-ww.txt
474 compare reference/psitwpts.txt ${TMPDIR}/psit-ww.txt
475
476 # Now test correct "empty" handling - ask for routes when there aren't any
477 # Uses mapsource as the empty handling for this has already happened above
478 rm -f ${TMPDIR}/psit-wr.mps
79b36cb Change default Mapsource version output to 5.
robertl authored
479 ${PNAME} -r -i psitrex -f reference/psitwpts.txt -o mapsource,mpsverout=3 -F ${TMPDIR}/psit-wr.mps
826cdde Big update from Mark Bradley:
robertl authored
480 compare reference/mps-empty.mps ${TMPDIR}/psit-wr.mps
481
482 # Routes next
483 rm -f ${TMPDIR}/psit-rr.txt ${TMPDIR}/psit-rr.mps
484 ${PNAME} -r -i psitrex -f reference/route/psitrtes.txt -o mapsource -F ${TMPDIR}/psit-rr.mps
485 ${PNAME} -r -i mapsource -f ${TMPDIR}/psit-rr.mps -o psitrex -F ${TMPDIR}/psit-rr.txt
486 compare reference/route/psitrtes.txt ${TMPDIR}/psit-rr.txt
487
488 # Now test correct "empty" handling - ask for tracks when there aren't any
489 # Uses mapsource as the empty handling for this has already happened above
490 rm -f ${TMPDIR}/psit-rt.mps
79b36cb Change default Mapsource version output to 5.
robertl authored
491 ${PNAME} -t -i psitrex -f reference/route/psitrtes.txt -o mapsource,mpsverout=3 -F ${TMPDIR}/psit-rt.mps
826cdde Big update from Mark Bradley:
robertl authored
492 compare reference/mps-empty.mps ${TMPDIR}/psit-rt.mps
493
494 # Tracks last
495 rm -f ${TMPDIR}/psit-tt.txt ${TMPDIR}/psit-tt.mps
496 ${PNAME} -t -i psitrex -f reference/track/psittrks.txt -o mapsource -F ${TMPDIR}/psit-tt.mps
497 ${PNAME} -t -i mapsource -f ${TMPDIR}/psit-tt.mps -o psitrex -F ${TMPDIR}/psit-tt.txt
503ed93 Fix timezones in psitrex track format. From Mark.
robertl authored
498 compare reference/track/psittrks.txt ${TMPDIR}/psit-tt.txt
826cdde Big update from Mark Bradley:
robertl authored
499
500 # Now test correct "empty" handling - ask for waypoints when there aren't any
501 # Uses mapsource as the empty handling for this has already happened above
502 rm -f ${TMPDIR}/psit-tw.mps
79b36cb Change default Mapsource version output to 5.
robertl authored
503 ${PNAME} -i psitrex -f reference/track/psittrks.txt -o mapsource,mpsverout=3 -F ${TMPDIR}/psit-tw.mps
826cdde Big update from Mark Bradley:
robertl authored
504 compare reference/mps-empty.mps ${TMPDIR}/psit-tw.mps
505
db81519 Add navicache as a (read-only) format.
robertl authored
506 #
7e6cf90 Add rest of Ron's arc distance stuff.
robertl authored
507 # Arc Distance filter
508 #
509 rm -f ${TMPDIR}/arcdist.txt
510 ${PNAME} -i xmap -f reference/arcdist_input.txt \
511 -x arc,file=reference/arcdist_arc.txt,distance=1 \
512 -o xmap -F ${TMPDIR}/arcdist.txt
513 compare ${TMPDIR}/arcdist.txt reference/arcdist_output.txt
514
89465d6 add polygon filter
parkrrrr authored
515 #
516 # Polygon filter
517 #
518 rm -f ${TMPDIR}/polygon.txt
519 ${PNAME} -i xmap -f reference/arcdist_input.txt \
520 -x polygon,file=reference/polygon_allencty.txt \
521 -o xmap -F ${TMPDIR}/polygon.txt
522 compare ${TMPDIR}/polygon.txt reference/polygon_output.txt
523
70fa05a Added 'simplify' filter
parkrrrr authored
524 #
525 # Simplify filter
526 #
527 rm -f ${TMPDIR}/simplify.txt
528 ${PNAME} -r -i gpx -f reference/route/route.gpx \
529 -x simplify,count=10 \
530 -o arc -F ${TMPDIR}/simplify.txt
531 compare ${TMPDIR}/simplify.txt reference/simplify_output.txt
40ab42b Add a shortname test.
robertl authored
532
533 #
d6afdd7 Three changes:
robertl authored
534 # Route reversal filter. Do it twice and be sure we get what we
535 # started with.
536 #
537 rm -f ${TMPDIR}/reverse1.arc ${TMPDIR}/reverse2.arc ${TMPDIR}/reference.arc
538 ${PNAME} -r -i gpx -f reference/route/route.gpx \
539 -o arc -F ${TMPDIR}/reference.arc
540 ${PNAME} -r -i gpx -f reference/route/route.gpx \
541 -x reverse \
542 -o arc -F ${TMPDIR}/reverse1.arc
543 ${PNAME} -r -i gpx -f reference/route/route.gpx \
544 -x reverse \
545 -x reverse \
546 -o arc -F ${TMPDIR}/reverse2.arc
547 # Verify the first and last are the same
548 compare ${TMPDIR}/reference.arc ${TMPDIR}/reverse2.arc
549 # Verify the first and second are different.
443573f From Mark Bradley. Use compare instead of explicit diff.
robertl authored
550 #${DIFF} ${TMPDIR}/reverse1.arc ${TMPDIR}/reverse2.arc > /dev/null && {
551 # echo ERROR Failed reversal test.
552 # exit 1
553 #}
bdaf31d Comparison had wrong sense; needs rewritten
parkrrrr authored
554
555 # parkrrrr: This isn't a straightforward compare; we *want* it to fail.
5ca5ae5 Grrrr... vi auto-comments with a * in shell scripts? What were they smo...
parkrrrr authored
556 # Obviously this test should just be rewritten with a new reference.
bdaf31d Comparison had wrong sense; needs rewritten
parkrrrr authored
557 #compare ${TMPDIR}/reverse1.arc ${TMPDIR}/reverse2.arc
d6afdd7 Three changes:
robertl authored
558
f14e2ee Add geoniche test cases.
robertl authored
559 #
1c35af7 Add delgpl, saroute tests.
robertl authored
560 # Geoniche: No reference file was available, so we created one and just
f14e2ee Add geoniche test cases.
robertl authored
561 # test it against itself.
562 #
563 rm -f ${TMPDIR}/gn.pdb ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
564 ${PNAME} -i geoniche -f reference/geoniche.pdb -o geoniche -F ${TMPDIR}/gn.pdb
565 ${PNAME} -i geoniche -f reference/geoniche.pdb -o gpx -F ${TMPDIR}/1.gpx
566 ${PNAME} -i geoniche -f ${TMPDIR}/gn.pdb -o gpx -F ${TMPDIR}/2.gpx
443573f From Mark Bradley. Use compare instead of explicit diff.
robertl authored
567 compare ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
a82e447 Added testo sequence for "real" geoniche file format.
oliskoli authored
568 #
569 ${PNAME} -i geoniche -f reference/gn-targets.pdb -o gpx -F ${TMPDIR}/gn-targets.gpx
570 compare ${TMPDIR}/gn-targets.gpx reference/gn-targets.gpx
f14e2ee Add geoniche test cases.
robertl authored
571
1c35af7 Add delgpl, saroute tests.
robertl authored
572 #
573 # saroute covers *.anr, *.rte, and *.rtd, but I only have an .anr for testing.
574 # Unfortunately for us, this is a read-only format for now.
575 #
576 ${PNAME} -t -i saroute -f reference/track/i65.anr -o gpx -F ${TMPDIR}/gpl1.gpx
577 ${PNAME} -t -i gpx -f reference/track/i65.anr.gpx -o gpx -F ${TMPDIR}/gpl2.gpx
443573f From Mark Bradley. Use compare instead of explicit diff.
robertl authored
578 compare ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx
1c35af7 Add delgpl, saroute tests.
robertl authored
579
580 #
581 # Delorme GPL file. This is sort of a track format.
582 #
583 rm -f ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx ${TMPDIR}/gpl1.gpl
584 ${PNAME} -t -i gpl -f reference/track/webpark1.gpl -o gpx -F ${TMPDIR}/gpl1.gpx
585 ${PNAME} -t -i gpl -f reference/track/webpark1.gpl -o gpl -F ${TMPDIR}/gpl1.gpl
586 ${PNAME} -t -i gpl -f ${TMPDIR}/gpl1.gpl -o gpx -F ${TMPDIR}/gpl2.gpx
443573f From Mark Bradley. Use compare instead of explicit diff.
robertl authored
587 compare ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx
1c35af7 Add delgpl, saroute tests.
robertl authored
588
43f1b56 Add testsuite for netstumbler from John.
robertl authored
589 #
590 # NetStumbler Summary File (read-only)
591 #
592 rm -f ${TMPDIR}/netstumbler.mps
593 ${PNAME} -i netstumbler -f reference/netstumbler.txt -o mapsource -F ${TMPDIR}/netstumbler.mps
d94c483 Oops, didn't mean to comment that line out. Also, bincompare is easier ...
parkrrrr authored
594 bincompare ${TMPDIR}/netstumbler.mps reference/netstumbler.mps
7fff077 Add human-readable testo case (and fix bugs)
parkrrrr authored
595
596 #
bec8ae4 Add IGC for flight recorders. From Chris Jones .
robertl authored
597 # IGC tests
598 #
599 rm -f ${TMPDIR}/igc*out
600 ${PNAME} -i gpx -f reference/igc1.gpx -o igc -F ${TMPDIR}/igc.out
601 sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc.out > ${TMPDIR}/igc_sed.out
602 compare ${TMPDIR}/igc_sed.out reference/igc1_igc.out
603
604 ${PNAME} -i igc -f ${TMPDIR}/igc.out -o gpx -F ${TMPDIR}/igc.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
605 compare_gpx ${TMPDIR}/igc.gpx reference/igc1_gpx.out
bec8ae4 Add IGC for flight recorders. From Chris Jones .
robertl authored
606
607 ${PNAME} -i gpx -f ${TMPDIR}/igc.gpx -o igc -F ${TMPDIR}/igc.out
608 sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc.out > ${TMPDIR}/igc_sed.out
609 compare ${TMPDIR}/igc_sed.out reference/igc1_igc.out
610
da31b8a From Chris Jones.
robertl authored
611 ${PNAME} -i gpx -f reference/igc1_baro.gpx -i igc -f reference/igc1_igc.out -o igc,timeadj=auto -F ${TMPDIR}/igc.out
612 sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc.out > ${TMPDIR}/igc_sed.out
613 compare ${TMPDIR}/igc_sed.out reference/igc1_3d.out
614
bec8ae4 Add IGC for flight recorders. From Chris Jones .
robertl authored
615
616 ${PNAME} -i igc -f reference/igc2.igc -o gpx -F ${TMPDIR}/igc.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
617 compare_gpx ${TMPDIR}/igc.gpx reference/igc2_gpx.out
bec8ae4 Add IGC for flight recorders. From Chris Jones .
robertl authored
618
619 ${PNAME} -i gpx -f ${TMPDIR}/igc.gpx -o igc -F ${TMPDIR}/igc.out
620 sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc.out > ${TMPDIR}/igc_sed.out
621 compare ${TMPDIR}/igc_sed.out reference/igc2_igc.out
622
623 ${PNAME} -i igc -f ${TMPDIR}/igc.out -o gpx -F ${TMPDIR}/igc.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
624 compare_gpx ${TMPDIR}/igc.gpx reference/igc2_gpx.out
bec8ae4 Add IGC for flight recorders. From Chris Jones .
robertl authored
625
7b52ff1 Add google input type
parkrrrr authored
626 #
627 # Google Maps XML test
628 #
629 rm -f ${TMPDIR}/google.out
630 ${PNAME} -i google -f reference/google.xml -o arc -F ${TMPDIR}/google.out
631 compare ${TMPDIR}/google.out reference/google.arc
bec8ae4 Add IGC for flight recorders. From Chris Jones .
robertl authored
632
36cb694 Update google to read output=js
parkrrrr authored
633 rm -f ${TMPDIR}/google.out
634 ${PNAME} -i google -f reference/google.js -o arc -F ${TMPDIR}/google.out
635 compare ${TMPDIR}/google.out reference/google.arc
636
bec8ae4 Add IGC for flight recorders. From Chris Jones .
robertl authored
637 #
6d17c11 .an1 testo
parkrrrr authored
638 # DeLorme .an1 tests
639 #
640 rm -f ${TMPDIR}/an1.out
641 ${PNAME} -i an1 -f reference/foo.an1 -o csv -F ${TMPDIR}/an1.out
642 compare ${TMPDIR}/an1.out reference/an1-in.ref
643
644 rm -f ${TMPDIR}/an1.out
645 ${PNAME} -i an1 -f reference/foo.an1 -o an1 -F ${TMPDIR}/an1.out
ed262ad an1 is a binary format; use bincompare
parkrrrr authored
646 bincompare ${TMPDIR}/an1.out reference/an1-an1.ref
6d17c11 .an1 testo
parkrrrr authored
647
648 rm -f ${TMPDIR}/an1.out
649 ${PNAME} -i xmap -f reference/xmap -o an1 -F ${TMPDIR}/an1.out
ed262ad an1 is a binary format; use bincompare
parkrrrr authored
650 bincompare ${TMPDIR}/an1.out reference/an1-out.ref
6d17c11 .an1 testo
parkrrrr authored
651
652 rm -f ${TMPDIR}/an1.out
653 ${PNAME} -i google -f reference/google.js -o an1 -F ${TMPDIR}/an1.out
ed262ad an1 is a binary format; use bincompare
parkrrrr authored
654 bincompare ${TMPDIR}/an1.out reference/an1-line-out.ref
6d17c11 .an1 testo
parkrrrr authored
655
656 #
adb79ea Add TomTom .ov2 (POI) file support
parkrrrr authored
657 # TomTom .ov2 tests
658 #
659
660 rm -f ${TMPDIR}/ov2.out
661 ${PNAME} -i arc -f reference/google.arc -o tomtom -F ${TMPDIR}/ov2.out
662 compare ${TMPDIR}/ov2.out reference/ov2-arc-out.ref
663
664 rm -f ${TMPDIR}/ov2.out
665 ${PNAME} -i geo -f reference/gl.loc -o tomtom -F ${TMPDIR}/ov2.out
666 compare ${TMPDIR}/ov2.out reference/ov2-geo-out.ref
667
668 rm -f ${TMPDIR}/ov2.out
669 ${PNAME} -i tomtom -f reference/ov2-geo-out.ref -o gpsutil -F ${TMPDIR}/ov2.out
670 compare ${TMPDIR}/ov2.out reference/ov2-in.ref
671
672 #
7fff077 Add human-readable testo case (and fix bugs)
parkrrrr authored
673 # XCSV "human readable" tests
674 #
675 rm -f ${TMPDIR}/humanread.out
676 ${PNAME} -i xcsv,style=reference/humanread.style -f reference/human.in -o arc -F ${TMPDIR}/humanread.out
677 compare ${TMPDIR}/humanread.out reference/humanread.out
678
679 rm -f ${TMPDIR}/humanwrite.out
680 ${PNAME} -i xcsv,style=reference/humanread.style -f reference/human.in -o xcsv,style=reference/humanwrite.style -F ${TMPDIR}/humanwrite.out
681 compare ${TMPDIR}/humanwrite.out reference/humanwrite.out
43f1b56 Add testsuite for netstumbler from John.
robertl authored
682
8e42b4e Added path distance options to xcsv
parkrrrr authored
683 #
684 # XCSV "path distance" test
685 #
686 rm -f ${TMPDIR}/pathdist.out
687 ${PNAME} -i magellan -f reference/dusky.trk -o xcsv,style=reference/gnuplot.style -F ${TMPDIR}/pathdist.out
688 compare ${TMPDIR}/pathdist.out reference/dusky.gnuplot
689
1bd0fab Add missing pieces of HSA_NAV & minor fixes. From Sven Dowideit.
robertl authored
690 # hsandv
691 rm -f ${TMPDIR}/hsandv.exp ${TMPDIR}/1.exp ${TMPDIR}/1.exp ${TMPDIR}/Glad_5.exp
692 ${PNAME} -i geo -f geocaching.loc -o hsandv -F ${TMPDIR}/hsandv.exp
693 compare ${TMPDIR}/hsandv.exp reference
694 #the hsandv format is too lossy to do this test :(
695 #${PNAME} -i hsandv -f ${TMPDIR}/hsandv.exp -o geo -F ${TMPDIR}/1.exp
696 #${PNAME} -i hsandv -f reference/hsandv.exp -o geo -F ${TMPDIR}/2.exp
697 #compare ${TMPDIR}/1.exp ${TMPDIR}/2.exp
698 #test conversion from v4 to v5 files
699 ${PNAME} -i hsandv -f reference/Glad_4.exp -o hsandv -F ${TMPDIR}/Glad_5.exp
6a3fed0 Neuter hsa v4->v5 conversion test.
robertl authored
700 # FIXME: Can't compare directly because of potential FP rounding.
701 # FIXME: compare ${TMPDIR}/Glad_5.exp reference
1bd0fab Add missing pieces of HSA_NAV & minor fixes. From Sven Dowideit.
robertl authored
702
96437aa testo case for stack filter
parkrrrr authored
703 #
704 # stack filter tests
705 # These don't actually test for proper behavior, for now, but they do
54a7f4c Add ARGTYPE_HIDDEN flag and 'nowarn' flag for stack filter
parkrrrr authored
706 # exercise all of the currently-extant filter code.
96437aa testo case for stack filter
parkrrrr authored
707 #
708
54a7f4c Add ARGTYPE_HIDDEN flag and 'nowarn' flag for stack filter
parkrrrr authored
709 ${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
8e42b4e Added path distance options to xcsv
parkrrrr authored
710
6b3c8ab Palmdoc: minor leak fixes. (Needs more)
robertl authored
711 #
712 # 'tabsep' isn't really tested in any non-trivial way, but we do exercise
713 # it.
714 #
715
716 ${PNAME} -i geo -f geocaching.loc -o tabsep -F - | ${PNAME} -i tabsep -f - -o geo -F ${TMPDIR}/tabsep.out
717 ${PNAME} -i geo -f geocaching.loc -o geo -F ${TMPDIR}/geotabsep.out
718
719 #
720 # Now do the same for custom - it has the same issues.
721 #
722
723 compare ${TMPDIR}/tabsep.out ${TMPDIR}/geotabsep.out
724 ${PNAME} -i geo -f geocaching.loc -o custom -F - | ${PNAME} -i custom -f - -o geo -F ${TMPDIR}/custom.out
725 ${PNAME} -i geo -f geocaching.loc -o geo -F ${TMPDIR}/geocustom.out
726
727 #
728 # Write something to the various output-only formats
729 #
730 ${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
71bb2a5 More TourExchangeFormat support from Olaf Klein.
robertl authored
731
732 #
c656a8f Olaf changes TEF to use UTF8 internally, fixes doc, tweaks tests.
robertl authored
733 # tef "TourExchangeFormat" read test
71bb2a5 More TourExchangeFormat support from Olaf Klein.
robertl authored
734 #
06b5b91 Updated pathaway and tef from Olaf.
robertl authored
735 rm -f ${TMPDIR}/tef_xml*
736 ${PNAME} -r -i tef -f reference/route/tef_xml.sample.xml -o gpx -F ${TMPDIR}/tef_xml.sample.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
737 compare ${TMPDIR}/tef_xml.sample.gpx reference/route/tef_xml.sample.gpx
71bb2a5 More TourExchangeFormat support from Olaf Klein.
robertl authored
738
9a2b8ee Olaf Klein contributes PathAway palm database reader
robertl authored
739 #
c4776bf Apply pathaway.update-01.patch.bz2 from Olaf for pathaway and tef.
robertl authored
740 # PathAway Palm Database .pdb tests
741 #
742 rm -f ${TMPDIR}/pathaway*
743 ${PNAME} -i geo -f geocaching.loc -o pathaway,dbname="pathaway-geo" -F ${TMPDIR}/pathaway-geo.pdb
744 ${PNAME} -i pathaway -f ${TMPDIR}/pathaway-geo.pdb -o geo -F ${TMPDIR}/pathaway-geo.loc
745 compare ${TMPDIR}/pathaway-geo.loc reference/pathaway-geo.loc
746 rm -f ${TMPDIR}/pathaway*
747 ${PNAME} -t -i pathaway -f reference/track/pathaway.pdb -o gpx -F ${TMPDIR}/pathaway.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
748 compare_gpx ${TMPDIR}/pathaway.gpx reference/track/pathaway.gpx
9a2b8ee Olaf Klein contributes PathAway palm database reader
robertl authored
749
963d239 Olaf update reference files for GDB and BCR. Fix README for BCR.
robertl authored
750 #
dedfeac Olaf adds writing to GDB.
robertl authored
751 # Garmin GPS Database .gdb tests
963d239 Olaf update reference files for GDB and BCR. Fix README for BCR.
robertl authored
752 #
753 rm -f ${TMPDIR}/gdb-*
9235912 Added write sequence for gdb format.
oliskoli authored
754 ${PNAME} -w -r -t -i gdb,via -f reference/gdb-sample.gdb -o gpx -F ${TMPDIR}/gdb-sample.gpx
963d239 Olaf update reference files for GDB and BCR. Fix README for BCR.
robertl authored
755 compare reference/gdb-sample.gpx ${TMPDIR}/gdb-sample.gpx
dedfeac Olaf adds writing to GDB.
robertl authored
756 ${PNAME} -w -r -t -i gpx -f reference/gdb-sample.gpx -o gdb,ver=1 -F ${TMPDIR}/gdb-sample.gdb
757 ${PNAME} -w -r -t -i gdb -f ${TMPDIR}/gdb-sample.gdb -o gpx -F ${TMPDIR}/gdb-sample.gpx
758 #
759 # Because of Garmin coordinates storage gpx is not good for this test
760 # compare reference/gdb-sample.gpx ${TMPDIR}/gdb-sample.gpx
761 #
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
762 # compare ${TMPDIR}/gdb-sample.gpx reference/gdb-sample.gpx
e6a6f0f Olaf updates GDB with test data.
robertl authored
763
988529e Etienne TASSE adds ability to read Vito Navigator .SMT tracks.
robertl authored
764 #
765 # Vito Navigator II .smt tests
766 #
767 rm -f ${TMPDIR}/vitosmt*
110d620 More Vito improvements.
robertl authored
768 ${PNAME} -i vitosmt -f reference/vitosmt.smt -o gpx -F ${TMPDIR}/vitosmt.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
769 compare_gpx ${TMPDIR}/vitosmt.gpx reference/vitosmt.gpx
110d620 More Vito improvements.
robertl authored
770 ${PNAME} -t -i vitosmt -f reference/vitosmt.smt -o gpx -F ${TMPDIR}/vitosmt_t.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
771 compare_gpx ${TMPDIR}/vitosmt_t.gpx reference/track/vitosmt_t.gpx
988529e Etienne TASSE adds ability to read Vito Navigator .SMT tracks.
robertl authored
772
13915a0 Olaf Klein contributes a new filter for merging and splitting tracks.
robertl authored
773 #
774 # tracks filter tests
775 #
776
777 rm -f ${TMPDIR}/trackfilter*
778
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
779 ${PNAME} -t -i gpx -f reference/track/trackfilter.gpx -x track,pack,split,title="LOG-%Y%m%d" -o gpx -F ${TMPDIR}/trackfilter.gpx
780 compare_gpx ${TMPDIR}/trackfilter.gpx reference/track/trackfilter.gpx
13915a0 Olaf Klein contributes a new filter for merging and splitting tracks.
robertl authored
781
b1c14c7 Olaf Klein contributes BCR support.
robertl authored
782 #
783 # Map&Guide Motorrad Routenplaner .bcr files test
784 #
785 rm -f ${TMPDIR}/bcr*
786 ${PNAME} -r -i bcr -f reference/route/bcr-sample.bcr -o gpx -F ${TMPDIR}/bcr-sample.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
787 compare_gpx ${TMPDIR}/bcr-sample.gpx reference/route/bcr-sample.gpx
b1c14c7 Olaf Klein contributes BCR support.
robertl authored
788 ${PNAME} -r -i gpx -f reference/route/bcr-sample.gpx -o bcr -F ${TMPDIR}/bcr-sample2.bcr
789 compare reference/route/bcr-sample2.bcr ${TMPDIR}/bcr-sample2.bcr
790 ${PNAME} -r -i bcr -f ${TMPDIR}/bcr-sample2.bcr -o gpx -F ${TMPDIR}/bcr-sample2.gpx
6061998 Bring in Olaf's CET character set transformation work.
robertl authored
791 compare_gpx reference/route/bcr-sample.gpx ${TMPDIR}/bcr-sample2.gpx
792
793 #
794 # cet - Character encoding transformation tests
795 #
796 rm -f ${TMPDIR}/cet-sample*
797 ${PNAME} -w -i gdb -f reference/cet/cet-sample.gdb -o gpx -F ${TMPDIR}/cet-sample.gpx
798 compare ${TMPDIR}/cet-sample.gpx reference/cet/cet-sample.gpx
799 ${PNAME} -w -i gpx -f ${TMPDIR}/cet-sample.gpx -o tmpro -c Latin1 -F ${TMPDIR}/cet-sample.latin1.txt
800 compare ${TMPDIR}/cet-sample.latin1.txt reference/cet/cet-sample.latin1.txt
801 ${PNAME} -w -i gdb -f reference/cet/cet-sample.gdb -o tmpro -c Latin2 -F ${TMPDIR}/cet-sample.latin2.txt
802 compare ${TMPDIR}/cet-sample.latin2.txt reference/cet/cet-sample.latin2.txt
803 ${PNAME} -w -i gdb -f reference/cet/cet-sample.gdb -o tmpro -c cp1250 -F ${TMPDIR}/cet-sample.cp1250.txt
804 compare ${TMPDIR}/cet-sample.cp1250.txt reference/cet/cet-sample.cp1250.txt
805 ${PNAME} -w -i gdb -f reference/cet/cet-sample.gdb -o tmpro -c macroman -F ${TMPDIR}/cet-sample.macroman.txt
806 compare ${TMPDIR}/cet-sample.macroman.txt reference/cet/cet-sample.macroman.txt
b1c14c7 Olaf Klein contributes BCR support.
robertl authored
807
87bc777 Add test for glogbook.
robertl authored
808 #
809 # Garmin logbook. This format has an extra section (lap data with things
810 # like heartbeat and calories burned) that we don't know what to do with,
811 # so we convert it to gpx, convert it to itself, convert THAT to gpx, and
812 # compare those.
813 #
814 rm -f ${TMPDIR}/glogbook*
815 ${PNAME} -i glogbook -f reference/track/garmin_logbook.xml -o gpx -F ${TMPDIR}/glog1.gpx
816 ${PNAME} -i glogbook -f reference/track/garmin_logbook.xml -o glogbook -F ${TMPDIR}/glog.xml
817 ${PNAME} -i glogbook -f ${TMPDIR}/glog.xml -o gpx -F ${TMPDIR}/glog2.gpx
818 compare ${TMPDIR}/glog1.gpx ${TMPDIR}/glog2.gpx
819
ccf11db Tobias Minich contributes the 'coto' format.
robertl authored
820 #
821 # Dop filter test
822 #
823 rm -f ${TMPDIR}/dop*
824 sed '/<hdop>50/d' reference/dop-test.gpx | ${PNAME} -i gpx -f - -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-hdop.ref
ae32ada Rename 'dopfilter' (nee 'fix') to 'discard'.
robertl authored
825 ${PNAME} -i gpx -f reference/dop-test.gpx -x discard,hdop=50 -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-hdop.fil
ccf11db Tobias Minich contributes the 'coto' format.
robertl authored
826 compare ${TMPDIR}/dop-hdop.ref ${TMPDIR}/dop-hdop.fil
827 sed '/<vdop>50/d' reference/dop-test.gpx | ${PNAME} -i gpx -f - -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-vdop.ref
ae32ada Rename 'dopfilter' (nee 'fix') to 'discard'.
robertl authored
828 ${PNAME} -i gpx -f reference/dop-test.gpx -x discard,vdop=50 -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-vdop.fil
ccf11db Tobias Minich contributes the 'coto' format.
robertl authored
829 compare ${TMPDIR}/dop-vdop.ref ${TMPDIR}/dop-vdop.fil
830
831 #
22d00c9 Made a couple of cotoGPS fixes to get this format back
oliskoli authored
832 # cotoGPS tests
ccf11db Tobias Minich contributes the 'coto' format.
robertl authored
833 #
22d00c9 Made a couple of cotoGPS fixes to get this format back
oliskoli authored
834 rm -f ${TMPDIR}/coto*
ccf11db Tobias Minich contributes the 'coto' format.
robertl authored
835 # Track reading
22d00c9 Made a couple of cotoGPS fixes to get this format back
oliskoli authored
836 ${PNAME} -i coto -f reference/cototesttrack.pdb -o xcsv,style=reference/cototest.style -F ${TMPDIR}/cototrack.csv
837 compare reference/cototesttrack.csv ${TMPDIR}/cototrack.csv
838 # Marker read
839 ${PNAME} -i coto -f reference/cototestmarker.pdb -o gpx -F ${TMPDIR}/cotomarker.gpx
840 compare reference/cototestmarker.gpx ${TMPDIR}/cotomarker.gpx
841 # Marker write
842 ${PNAME} -i gpx -f reference/cototestmarker.gpx -o coto -F ${TMPDIR}/cotomarker.pdb
843 # bincompare reference/cototestmarker.pdb ${TMPDIR}/cotomarker.pdb
844 ${PNAME} -i coto -f ${TMPDIR}/cotomarker.pdb -o gpx -F ${TMPDIR}/cotomarker.gpx
845 compare reference/cototestmarker.gpx ${TMPDIR}/cotomarker.gpx
ccf11db Tobias Minich contributes the 'coto' format.
robertl authored
846
15ca17a Update fugawi styles to include timestamps. From Patrick Ohly.
robertl authored
847 #
848 # Fugawi test cases
849 rm -f ${TMPDIR}/fugawi*
850 ${PNAME} -i fugawi -f reference/fugawi.notime.txt -o fugawi -F ${TMPDIR}/fugawi1.txt
851 compare reference/fugawi.ref.txt ${TMPDIR}/fugawi1.txt
852 ${PNAME} -i geo -f geocaching.loc -o fugawi -F ${TMPDIR}/fugawi2.txt
853 compare reference/fugawi.ref.txt ${TMPDIR}/fugawi2.txt
854 ${PNAME} -i fugawi -f ${TMPDIR}/fugawi2.txt -o fugawi -F ${TMPDIR}/fugawi3.txt
855 compare ${TMPDIR}/fugawi2.txt ${TMPDIR}/fugawi3.txt
856 ${PNAME} -i fugawi -f reference/fugawi.time.txt -o fugawi -F ${TMPDIR}/fugawi4.txt
857 compare reference/fugawi.time.ref.txt ${TMPDIR}/fugawi4.txt
858 ${PNAME} -i gpx -f reference/track/tracks.gpx -o fugawi -F ${TMPDIR}/fugawi5.txt
859 compare reference/track/fugawi.txt ${TMPDIR}/fugawi5.txt
860
51dd325 Add maggeo to testsuite, reference.
robertl authored
861 #
862 # Magellan Explorist geocaching format (write-only).
863 #
864 ${PNAME} -i gpx -f reference/gc/GC7FA4.gpx -f reference/gc/GCGCA8.gpx -o maggeo -F ${TMPDIR}/maggeo.gs
865 compare reference/gc/maggeo.gs ${TMPDIR}/maggeo.gs
866
23ae080 Add ignrando tests.
robertl authored
867 #
868 # IGN Rando tests
869 #
870 ${PNAME} -i ignrando -f reference/track/ignrando-sample.rdn -o ignrando -F ${TMPDIR}/ignrando-sample.rdn
871 ${PNAME} -i ignrando -f ${TMPDIR}/ignrando-sample.rdn -o gpx -F ${TMPDIR}/ignrando-sample.gpx
872 compare ${TMPDIR}/ignrando-sample.gpx reference/track/ignrando-sample.gpx
873
e761b55 Olaf adds support for Suunto Track Manager (STM) WaypointPlus format.
robertl authored
874 #
875 # STMwpp "Suunto Track Manager" WaypointPlus format tests
876 #
877 rm -f ${TMPDIR}/stmwpp-*
878 ${PNAME} -i stmwpp -f reference/track/stmwpp-track.txt -o gpx -F ${TMPDIR}/stmwpp-track.gpx
879 compare ${TMPDIR}/stmwpp-track.gpx reference/track/stmwpp-track.gpx
880 ${PNAME} -i stmwpp -f reference/route/stmwpp-route.txt -o gpx -F ${TMPDIR}/stmwpp-route.gpx
881 compare ${TMPDIR}/stmwpp-route.gpx reference/route/stmwpp-route.gpx
882 ${PNAME} -i stmwpp -f reference/route/stmwpp-route.txt -o stmwpp -F ${TMPDIR}/stmwpp-route.txt
883 compare ${TMPDIR}/stmwpp-route.txt reference/route/stmwpp-route.txt
884
56fa5a0 Olaf adds read support for MS Autoroute.
robertl authored
885 #
886 # Microsoft AutoRoute 2002 test (read-only)
887 #
888 ${PNAME} -i msroute -f reference/route/msroute-sample.axe -o gpx -F ${TMPDIR}/msroute-sample.gpx
889 compare ${TMPDIR}/msroute-sample.gpx reference/route/msroute-sample.gpx
890
b57367b Olaf adds reading of CarteSurTable files.
robertl authored
891 #
892 # CarteSurTable read test
893 #
894 rm -f ${TMPDIR}/cst-*
895 ${PNAME} -i cst -f reference/route/cst-sample.cst -o gpx -F ${TMPDIR}/cst-sample.gpx
896 compare ${TMPDIR}/cst-sample.gpx reference/route/cst-sample.gpx
897
bde75b1 Olaf adds Support for Navigon Mobile Navigator 5 Palm/OS files.
robertl authored
898 #
d6b1708 Olaf adds Navigon Mobile Navigator 4.
robertl authored
899 # Navigon Mobile Navigator .rte tests
900 #
901 rm -f ${TMPDIR}/nmn4-sample*
902 ${PNAME} -i nmn4 -f reference/route/nmn4-sample.rte -o gpx -F ${TMPDIR}/nmn4-sample.gpx
903 compare reference/route/nmn4-sample.gpx ${TMPDIR}/nmn4-sample.gpx
904 ${PNAME} -i gpx -f reference/route/nmn4-sample.gpx -o nmn4 -F ${TMPDIR}/nmn4-sample-out.rte
905 compare reference/route/nmn4-sample-out.rte ${TMPDIR}/nmn4-sample-out.rte
906
907 #
6ea5ef3 Changed format NMN5 to support Map&Guide based products and their Palm/O...
oliskoli authored
908 # Map&Guide Palm/OS .pdb files (read-only)
bde75b1 Olaf adds Support for Navigon Mobile Navigator 5 Palm/OS files.
robertl authored
909 #
6ea5ef3 Changed format NMN5 to support Map&Guide based products and their Palm/O...
oliskoli authored
910 rm -f ${TMPDIR}/mag_pdb-*
911 ${PNAME} -i mag_pdb -f reference/route/mag_pdb-sample.pdb -o gpx -F ${TMPDIR}/mag_pdb-sample.gpx
912 compare ${TMPDIR}/mag_pdb-sample.gpx reference/route/mag_pdb-sample.gpx
bde75b1 Olaf adds Support for Navigon Mobile Navigator 5 Palm/OS files.
robertl authored
913
f34a377 Added support for CompeGPS data files
oliskoli authored
914 #
915 # CompeGPS I/O tests
916 #
917 rm -f ${TMPDIR}/compegps*
918 # read (CompeGPS)
919 ${PNAME} -i compegps -f reference/compegps.wpt -o gpx -F ${TMPDIR}/compegps-wpt.gpx
920 compare reference/compegps-wpt.gpx ${TMPDIR}/compegps-wpt.gpx
921 ${PNAME} -i compegps -f reference/route/compegps.rte -o gpx -F ${TMPDIR}/compegps-rte.gpx
922 compare reference/route/compegps-rte.gpx ${TMPDIR}/compegps-rte.gpx
923 ${PNAME} -i compegps -f reference/track/compegps.trk -o gpx -F ${TMPDIR}/compegps-trk.gpx
924 compare reference/track/compegps-trk.gpx ${TMPDIR}/compegps-trk.gpx
925 # write (CompeGPS)
926 ${PNAME} -i compegps -f reference/compegps.wpt -o compegps -F ${TMPDIR}/compegps.wpt
927 ${PNAME} -i compegps -f ${TMPDIR}/compegps.wpt -o gpx -F ${TMPDIR}/compegps-wpt2.gpx
928 compare reference/compegps-wpt.gpx ${TMPDIR}/compegps-wpt2.gpx
929 ${PNAME} -t -i compegps -f reference/track/compegps.trk -o compegps -F ${TMPDIR}/compegps.trk
930 ${PNAME} -i compegps -f ${TMPDIR}/compegps.trk -o gpx -F ${TMPDIR}/compegps-trk2.gpx
931 compare reference/track/compegps-trk.gpx ${TMPDIR}/compegps-trk2.gpx
932 ${PNAME} -r -i compegps -f reference/route/compegps.rte -o compegps -F ${TMPDIR}/compegps.rte
933 ${PNAME} -i compegps -f ${TMPDIR}/compegps.rte -o gpx -F ${TMPDIR}/compegps-rte2.gpx
934 compare reference/route/compegps-rte.gpx ${TMPDIR}/compegps-rte2.gpx
935
e2acc02 Test nuke types.
robertl authored
936 #
937 # Testing the 'nuketypes' filter is funky.
938 # Convert a GPX file to GPX to eliminate jitter.
939 # Then nuke the all but the three individual types, merge the result together
940 # and verify we got the original back.
941 #
942 ${PNAME} -i gpx -f reference/gdb-sample.gpx -o gpx -F ${TMPDIR}/alltypes.gpx
943 ${PNAME} -i gpx -f ${TMPDIR}/alltypes.gpx -x nuketypes,tracks,routes -o gpx -F ${TMPDIR}/wpts.gpx
944 ${PNAME} -i gpx -f ${TMPDIR}/alltypes.gpx -x nuketypes,waypoints,routes -o gpx -F ${TMPDIR}/trks.gpx
945 ${PNAME} -i gpx -f ${TMPDIR}/alltypes.gpx -x nuketypes,waypoints,tracks -o gpx -F ${TMPDIR}/rtes.gpx
946 ${PNAME} -i gpx -f ${TMPDIR}/wpts.gpx -f ${TMPDIR}/trks.gpx -f ${TMPDIR}/rtes.gpx -o gpx -F ${TMPDIR}/merged.gpx
947 compare ${TMPDIR}/alltypes.gpx ${TMPDIR}/merged.gpx
948
d6afdd7 Three changes:
robertl authored
949 exit 0
Something went wrong with that request. Please try again.