Skip to content

Commit

Permalink
Add test coverage for ozi color setting options. (#1266)
Browse files Browse the repository at this point in the history
* Unit test ozi color commandline options.

Improves test coverage.


Co-authored-by: Robert Lipe
  • Loading branch information
GPSBabelDeveloper authored Apr 14, 2024
1 parent 7617c21 commit 62db7c8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions reference/ozi-color.wpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
OziExplorer Waypoint File Version 1.1
WGS 84
Reserved 2
Reserved 3
1,GCEBB,35.972033,-87.134700,,0,1,3,222,255,Mountain Bike Heaven by susy1313,0,0,0,0,6,0,17
2,GC1A37,36.090683,-86.679550,,0,1,3,222,255,The Troll by a182pilot & Family,0,0,0,0,6,0,17
3,GC1C2B,35.996267,-86.620117,,0,1,3,222,255,Dive Bomber by JoGPS & family,0,0,0,0,6,0,17
4,GC25A9,36.038483,-86.648617,,0,1,3,222,255,FOSTER by JoGPS & Family,0,0,0,0,6,0,17
5,GC2723,36.112183,-86.741767,,0,1,3,222,255,Logan Lighthouse by JoGps & Family,0,0,0,0,6,0,17
6,GC2B71,36.064083,-86.790517,,0,1,3,222,255,Ganier Cache by Susy1313,0,0,0,0,6,0,17
7,GC309F,36.087767,-86.809733,,0,1,3,222,255,Shy's Hill by FireFighterEng33,0,0,0,0,6,0,17
8,GC317A,36.057500,-86.892000,,0,1,3,222,255,GittyUp by JoGPS / Warner Parks,0,0,0,0,6,0,17
9,GC317D,36.082800,-86.867283,,0,1,3,222,255,Inlighting by JoGPS / Warner Parks,0,0,0,0,6,0,17
4 changes: 4 additions & 0 deletions testo.d/ozi.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ gpsbabel -i ozi -f ${REFERENCE}/ozi.wpt -o ozi -F ${TMPDIR}/oz.wpt
gpsbabel -i ozi -f ${TMPDIR}/oz.wpt -o ozi -F ${TMPDIR}/ozi.wpt
compare ${TMPDIR}/ozi.wpt ${REFERENCE}

# Same, but with colors set
gpsbabel -i geo -f ${REFERENCE}/geocaching.loc -o ozi,wptfgcolor=#de0000,wptbgcolor=red -F ${TMPDIR}/ozi-color.wpt
compare ${TMPDIR}/ozi-color.wpt ${REFERENCE}

# Test Ozi routes.
gpsbabel -i ozi -f ${REFERENCE}/route/ozi.rte -o gpx -F ${TMPDIR}/ozi~gpx.gpx
compare ${TMPDIR}/ozi~gpx.gpx ${REFERENCE}/route/
Expand Down

0 comments on commit 62db7c8

Please sign in to comment.