Skip to content

v0.2.53..v0.2.54 changeset Ogr2OsmTranslation.sh

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/test-files/cmd/slow/Ogr2OsmTranslation.sh b/test-files/cmd/slow/Ogr2OsmTranslation.sh
index d7d3ced..0b031cd 100755
--- a/test-files/cmd/slow/Ogr2OsmTranslation.sh
+++ b/test-files/cmd/slow/Ogr2OsmTranslation.sh
@@ -4,11 +4,11 @@ set -e
 export OUT=test-output/cmd/slow/Ogr2OsmTranslation
 rm -rf $OUT
 mkdir -p $OUT
-HOOT_OPTS="-D duplicate.node.remover.distance.threshold=1.0"
+HOOT_OPTS="-C Testing.conf -D duplicate.node.remover.distance.threshold=1.0"
 
 hoot convert $HOOT_OPTS -D shape.file.writer.cols="name;poi" test-files/OnePoint.osm $OUT/OnePoint.shp
 hoot convert --warn $HOOT_OPTS -D schema.translation.script=translations/Identity.js $OUT/OnePointPoints.shp $OUT/OnePointTranslated.osm
-hoot diff test-output/cmd/slow/Ogr2OsmTranslation/OnePointTranslated.osm test-files/OnePoint.osm
+hoot diff $HOOT_OPTS test-output/cmd/slow/Ogr2OsmTranslation/OnePointTranslated.osm test-files/OnePoint.osm
 
 # Make sure we can read all layers from a shapefile
 rm -rf test-output/AllDataTypesA.shp test-output/AllDataTypesA.zip
@@ -18,7 +18,7 @@ zip -q ../AllDataTypesA.zip *
 
 cd $HOOT_HOME
 hoot convert --warn $HOOT_OPTS -D schema.translation.script=translations/Identity.js /vsizip/./test-output/AllDataTypesA.zip test-output/AllDataTypesA.osm
-hoot stats --brief test-output/AllDataTypesA.osm | grep -w 'Nodes\|Ways\|Relations'
+hoot stats $HOOT_OPTS --brief test-output/AllDataTypesA.osm | grep -w 'Nodes\|Ways\|Relations'
 
 hoot convert --warn $HOOT_OPTS -D schema.translation.script=translations/Identity.js -D convert.bounding.box=-104.931,38.823,-104.869,38.877 /vsizip/./test-output/AllDataTypesA.zip test-output/AllDataTypesABBox.osm
-hoot stats --brief test-output/AllDataTypesABBox.osm | grep -w 'Nodes\|Ways\|Relations'
+hoot stats $HOOT_OPTS --brief test-output/AllDataTypesABBox.osm | grep -w 'Nodes\|Ways\|Relations'
Clone this wiki locally