Skip to content

v0.2.53..v0.2.54 changeset RailwayAttributeConflateTest.sh

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/test-files/cmd/slow/RailwayAttributeConflateTest.sh b/test-files/cmd/slow/RailwayAttributeConflateTest.sh
new file mode 100755
index 0000000..540cd54
--- /dev/null
+++ b/test-files/cmd/slow/RailwayAttributeConflateTest.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -e
+
+IN_DIR=test-files/cmd/slow/RailwayAttributeConflateTest
+OUT_DIR=test-output/cmd/slow/RailwayAttributeConflateTest
+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,Railway.js" -D merger.creators="hoot::ScriptMergerCreator" test-files/cmd/slow/RailwayConflateTest/RR_Ref1_ManuallyMatched.osm test-files/cmd/slow/RailwayConflateTest/RR_Ref2_ManuallyMatched.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