Skip to content

v0.2.48..v0.2.49 changeset RndCropRandomCommandTest.sh

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/test-files/cmd/glacial/RndCropRandomCommandTest.sh b/test-files/cmd/glacial/RndCropRandomCommandTest.sh
new file mode 100755
index 0000000..42475ab
--- /dev/null
+++ b/test-files/cmd/glacial/RndCropRandomCommandTest.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -e
+
+INPUT_DIR=$HOOT_HOME/test-files/cmd/glacial/CropRandomCmdTest
+OUTPUT_DIR=$HOOT_HOME/test-output/cmd/glacial/CropRandomCmdTest
+mkdir -p $OUTPUT_DIR
+
+hoot crop-random --warn -D crop.keep.only.features.inside.bounds=true "test-files/DcGisRoads.osm;test-files/DcTigerRoads.osm" $OUTPUT_DIR/out.osm 1000 0.001 1 --write-tiles
+hoot diff --warn $OUTPUT_DIR/out.osm $INPUT_DIR/out.osm || diff $OUTPUT_DIR/out.osm $INPUT_DIR/out.osm
+hoot diff --warn $OUTPUT_DIR/out-tiles.osm $INPUT_DIR/out-tiles.osm || diff $OUTPUT_DIR/out-tiles.osm $INPUT_DIR/out-tiles.osm
Clone this wiki locally