Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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