Skip to content

v0.2.55..v0.2.56 changeset GenerateAlphaShapeCmdTest.sh

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/test-files/cmd/slow/GenerateAlphaShapeCmdTest.sh b/test-files/cmd/slow/GenerateAlphaShapeCmdTest.sh
new file mode 100755
index 0000000..0219627
--- /dev/null
+++ b/test-files/cmd/slow/GenerateAlphaShapeCmdTest.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+
+mkdir -p test-output/cmd/slow/GenerateAlphaShapeCmdTest
+
+CONFIG="-C Testing.conf"
+
+hoot generate-alpha-shape $CONFIG test-files/DcGisRoads.osm 1000 0 test-output/cmd/slow/GenerateAlphaShapeCmdTest/output-1.osm
+hoot diff $CONFIG test-output/cmd/slow/GenerateAlphaShapeCmdTest/output-1.osm test-files/cmd/slow/GenerateAlphaShapeCmdTest/output-1.osm || diff test-output/cmd/slow/GenerateAlphaShapeCmdTest/output-1.osm test-files/cmd/slow/GenerateAlphaShapeCmdTest/output-1.osm
+
+hoot generate-alpha-shape $CONFIG test-files/DcGisRoads.osm 1000 1000 test-output/cmd/slow/GenerateAlphaShapeCmdTest/output-2.osm
+hoot diff $CONFIG test-output/cmd/slow/GenerateAlphaShapeCmdTest/output-2.osm test-files/cmd/slow/GenerateAlphaShapeCmdTest/output-2.osm || diff test-output/cmd/slow/GenerateAlphaShapeCmdTest/output-2.osm test-files/cmd/slow/GenerateAlphaShapeCmdTest/output-2.osm
+
+hoot generate-alpha-shape $CONFIG test-files/DcGisRoads.osm 1000 -500 test-output/cmd/slow/GenerateAlphaShapeCmdTest/output-3.osm
+hoot diff $CONFIG test-output/cmd/slow/GenerateAlphaShapeCmdTest/output-3.osm test-files/cmd/slow/GenerateAlphaShapeCmdTest/output-3.osm || diff test-output/cmd/slow/GenerateAlphaShapeCmdTest/output-3.osm test-files/cmd/slow/GenerateAlphaShapeCmdTest/output-3.osm
Clone this wiki locally