Skip to content

v0.2.49..v0.2.50 changeset RndScoreMatchesDiffCmdTest.sh

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/test-files/cmd/glacial/RndScoreMatchesDiffCmdTest.sh b/test-files/cmd/glacial/RndScoreMatchesDiffCmdTest.sh
new file mode 100755
index 0000000..4da8636
--- /dev/null
+++ b/test-files/cmd/glacial/RndScoreMatchesDiffCmdTest.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -e
+
+# derived from train-poi-poly-standalone regression test C cropped to -122.42035,37.7726,-122.41369,37.78593
+# the first input was created running poi/poly with default options; the second raises the review threshold 
+# (poi.polygon.review.evidence.threshold) to 2 to force some incorrect matches
+
+IN_DIR=test-files/cmd/glacial/RndScoreMatchesDiffCmdTest
+OUT_DIR=test-output/cmd/glacial/RndScoreMatchesDiffCmdTest
+mkdir -p $OUT_DIR
+
+hoot score-matches-diff --warn $IN_DIR/input1.osm $IN_DIR/input2.osm $OUT_DIR/output
+diff $IN_DIR/output $OUT_DIR/output
Clone this wiki locally