Skip to content

v0.2.53..v0.2.54 changeset MgcpTranslationTest.sh

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/test-files/cmd/slow/MgcpTranslationTest.sh b/test-files/cmd/slow/MgcpTranslationTest.sh
index f91574d..e6f42eb 100755
--- a/test-files/cmd/slow/MgcpTranslationTest.sh
+++ b/test-files/cmd/slow/MgcpTranslationTest.sh
@@ -7,8 +7,10 @@ function compareFiles {
     hoot diff -C Testing.conf $1 $2 || diff $1 $2
 }
 
-hoot convert -C Testing.conf -D shape.file.writer.cols="LTN;WTC;HCT;UID" test-files/translation/MgcpTest.osm test-output/cmd/slow/translation/MgcpTest.shp
-hoot convert -C Testing.conf --warn -D schema.translation.script=translations/MgcpTest.js test-output/cmd/slow/translation/MgcpTestLines.shp test-output/cmd/slow/translation/MgcpTranslated.osm
+CONFIG="-C Testing.conf"
+
+hoot convert $CONFIG -D shape.file.writer.cols="LTN;WTC;HCT;UID" test-files/translation/MgcpTest.osm test-output/cmd/slow/translation/MgcpTest.shp
+hoot convert --warn $CONFIG -D schema.translation.script=translations/MgcpTest.js test-output/cmd/slow/translation/MgcpTestLines.shp test-output/cmd/slow/translation/MgcpTranslated.osm
 
 # Un-comment this to update the OSM file
 #cp test-output/cmd/slow/translation/MgcpTranslated.osm test-files/translation/MgcpTranslated.osm
@@ -20,10 +22,13 @@ compareFiles test-output/cmd/slow/translation/MgcpTranslated.osm test-files/tran
 #
 # Mattj Oct 13
 
+# LOTS of debug output
+#CONFIG="-D ogr.debug.dumptags=true -D ogr.debug.lookupcolumn=true -D ogr.debug.lookupclash=true -D ogr.debug.dumpvalidate=true"
+
 function checkMgcpV3 {
     OUT=test-output/cmd/slow/translation/Mgcpv3_$1.osm
     IN=test-files/MGCPv3/$1.shp
-    hoot convert -C Testing.conf --warn -D schema.translation.script=translations/MgcpTest.js $IN $OUT
+    hoot convert --warn $CONFIG -D schema.translation.script=translations/MgcpTest.js $IN $OUT
     #echo $IN  $OUT
     compareFiles $OUT test-files/MGCPv3/$1-output.osm
     # Uncomment this to update what we compare with.
@@ -31,7 +36,7 @@ function checkMgcpV3 {
     # Export as TRDv4
     OUT4=test-output/cmd/slow/translation/$1
     rm -rf $OUT4
-    hoot convert -C Testing.conf --debug -D schema.translation.script=translations/MGCP_TRD4.js $OUT $OUT4.shp
+    hoot convert --info $CONFIG -D schema.translation.script=translations/MGCP_TRD4.js $OUT $OUT4.shp
 }
 
 # Building Areas
Clone this wiki locally