Skip to content

v0.2.52..v0.2.53 changeset ConflateCmdStatsToyBuildingsTest.sh

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/test-files/cmd/slow/ConflateCmdStatsToyBuildingsTest.sh b/test-files/cmd/slow/ConflateCmdStatsToyBuildingsTest.sh
index 89494d5..afb1dda 100755
--- a/test-files/cmd/slow/ConflateCmdStatsToyBuildingsTest.sh
+++ b/test-files/cmd/slow/ConflateCmdStatsToyBuildingsTest.sh
@@ -1,12 +1,16 @@
 #!/bin/bash
 set -e
 
-mkdir -p test-output/cmd/slow/ConflateCmdStatsTest
-STATS_OUT=test-output/cmd/slow/ConflateCmdStatsTest/toy-buildings-out
+IN_DIR=test-files/cmd/slow/ConflateCmdStatsTest
+OUT_DIR=test-output/cmd/slow/ConflateCmdStatsTest
+mkdir -p $OUT_DIR
+STATS_OUT=$OUT_DIR/toy-buildings-out
 SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
 
 hoot conflate -C Testing.conf -D writer.include.debug.tags=true -D match.creators="hoot::BuildingMatchCreator" -D merger.creators="hoot::BuildingMergerCreator" test-files/ToyBuildingsTestA.osm test-files/ToyBuildingsTestB.osm $STATS_OUT.osm --stats > $STATS_OUT
 
+hoot diff $STATS_OUT.osm $IN_DIR/toy-buildings-out.osm || diff $STATS_OUT.osm $IN_DIR/toy-buildings-out.osm
+
 #read in a set of stat names from a file, delete them from the hoot command stats output, and write the remaining stats to the final output
 EDIT_CMD=""
 while read line
Clone this wiki locally