Skip to content

v0.2.48..v0.2.49 changeset ScoreMatchesCmdTest.sh

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/test-files/cmd/glacial/ScoreMatchesCmdTest.sh b/test-files/cmd/glacial/ScoreMatchesCmdTest.sh
new file mode 100755
index 0000000..7c8c4d9
--- /dev/null
+++ b/test-files/cmd/glacial/ScoreMatchesCmdTest.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+set -e
+
+mkdir -p $HOOT_HOME/test-output/cmd/glacial/ScoreMatchesCmdTest
+
+# These files are kind of lame. Maybe make better test files in the future. 
+map1=$HOOT_HOME/test-files/ScoreMatchRef1.osm
+map2=$HOOT_HOME/test-files/ScoreMatchRef2.osm
+outputfile=$HOOT_HOME/test-output/cmd/glacial/ScoreMatchesCmdTest/output.osm
+
+# Run the command. Note that we sanitize output to remove timestamps
+hoot score-matches -C Testing.conf --confusion --optimize $map1 $map2 $outputfile 
+
+
Clone this wiki locally