Skip to content

HTTPS clone URL

Subversion checkout URL

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