Skip to content

v0.2.53..v0.2.54 changeset PowerLineAttributeConflateTest.sh

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/test-files/cmd/glacial/PowerLineAttributeConflateTest.sh b/test-files/cmd/glacial/PowerLineAttributeConflateTest.sh
new file mode 100755
index 0000000..900d192
--- /dev/null
+++ b/test-files/cmd/glacial/PowerLineAttributeConflateTest.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+set -e
+
+mkdir -p $HOOT_HOME/tmp/
+IN_DIR=test-files/cmd/glacial/PowerLineAttributeConflateTest
+OUT_DIR=test-output/cmd/glacial/PowerLineAttributeConflateTest
+mkdir -p $OUT_DIR
+
+CONFIG="--warn -C Testing.conf"
+
+hoot conflate $CONFIG -C UnifyingAlgorithm.conf -C AttributeConflation.conf -D uuid.helper.repeatable=true -D match.creators="hoot::ScriptMatchCreator,PowerLine.js" -D merger.creators="hoot::ScriptMergerCreator" test-files/cmd/glacial/PowerLineConflateTest/power-line-1.osm test-files/cmd/glacial/PowerLineConflateTest/power-line-2.osm $OUT_DIR/output.osm
+hoot diff $CONFIG $IN_DIR/output.osm $OUT_DIR/output.osm || diff $IN_DIR/output.osm $OUT_DIR/output.osm
Clone this wiki locally