#
# arc-project filter tests
#

rm -f ${TMPDIR}/arc-project*

# Test 1: rte & trk options
gpsbabel -i gpx -f ${REFERENCE}/arc-project.gpx -x arc,rte,exclude,distance=0.1K -x arc,trk,exclude,distance=0.1K -o unicsv,utc -F ${TMPDIR}/arc-project1.csv
compare ${REFERENCE}/arc-project1.csv ${TMPDIR}/arc-project1.csv

# Test 2: rte, project & points options
gpsbabel -i gpx -f ${REFERENCE}/arc-project.gpx -x arc,rte,project,points,distance=0.1K -o unicsv,utc -F ${TMPDIR}/arc-project2.csv
compare ${REFERENCE}/arc-project2.csv ${TMPDIR}/arc-project2.csv

# Test 3: trk & project options
gpsbabel -i gpx -f ${REFERENCE}/arc-project.gpx -x arc,trk,project,distance=0.1K -o unicsv,utc -F ${TMPDIR}/arc-project3.csv
compare ${REFERENCE}/arc-project3.csv ${TMPDIR}/arc-project3.csv

# Test 4: Verify that filter names aren't case sensistive.  (Actually has
# nothing specific to arc...)
gpsbabel -i gpx -f ${REFERENCE}/arc-project.gpx -x ArC,trk,project,distance=0.1K -o unicsv,utc -F ${TMPDIR}/arc-project3.csv
compare ${REFERENCE}/arc-project3.csv ${TMPDIR}/arc-project3.csv
