Skip to content

v0.2.49..v0.2.50 changeset eTDSTranslationAssistantTest.sh

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/test-files/cmd/slow/eTDSTranslationAssistantTest.sh b/test-files/cmd/slow/eTDSTranslationAssistantTest.sh
index 0f90ee9..cdb394a 100755
--- a/test-files/cmd/slow/eTDSTranslationAssistantTest.sh
+++ b/test-files/cmd/slow/eTDSTranslationAssistantTest.sh
@@ -6,21 +6,33 @@ export TA_IN=test-files/translation_assistant
 export TA_OUT=test-output/cmd/slow/translation_assistant_convert-ogr2osm
 mkdir -p $TA_OUT
 
-schemas=( "tdsv61" "tdsv40" )
+# Lots and lots of debug output
+# HOOT_OPT="--debug -D ogr.debug.dumptags=true -D ogr.debug.lookupcolumn=true -D ogr.debug.lookupclash=true -D ogr.debug.dumpvalidate=true"
+
+# Minimal output
+HOOT_OPT="--debug"
+
+schemas=( "tdsv61" "tdsv40" "mgcp" "tdsv70")
+
 for schema in "${schemas[@]}"
 do
     # Debug
-    #echo "Out: " $TA_OUT/$TA_FILE-$schema.osm "  In: " $TA_IN/$TA_FILE-$schema.osm
-    hoot convert --debug -D merge.nearby.nodes.distance=1.0 -D schema.translation.script=$TA_IN/cali-translation-$schema.js $TA_IN/$TA_FILE.shp $TA_OUT/$TA_FILE-$schema.osm
+    # echo "##### Start ${schema} #####"
+    # echo "Out: " $TA_OUT/$TA_FILE-$schema.osm "  In: " $TA_IN/$TA_FILE-$schema.osm
+
+    hoot convert $HOOT_OPT -D merge.nearby.nodes.distance=1.0 -D schema.translation.script=$TA_IN/cali-translation-$schema.js $TA_IN/$TA_FILE.shp $TA_OUT/$TA_FILE-$schema.osm
 
     # Uncomment this line to update the input files when there is a schema change
-    #cp $TA_OUT/$TA_FILE-$schema.osm $TA_IN/$TA_FILE-$schema.osm
+    # cp $TA_OUT/$TA_FILE-$schema.osm $TA_IN/$TA_FILE-$schema.osm
 
     hoot diff --ignore-uuid $TA_OUT/$TA_FILE-$schema.osm $TA_IN/$TA_FILE-$schema.osm
+
+    # Debug
+    # echo "##### End ${schema} #####"
 done
 
 #Test Feature Code mapping
-hoot convert --debug -D merge.nearby.nodes.distance=1.0 -D schema.translation.script=$TA_IN/cali-translation-tdsv61-fcode.js $TA_IN/$TA_FILE.shp $TA_OUT/$TA_FILE-tdsv61-fcode.osm
+hoot convert $HOOT_OPT  -D merge.nearby.nodes.distance=1.0 -D schema.translation.script=$TA_IN/cali-translation-tdsv61-fcode.js $TA_IN/$TA_FILE.shp $TA_OUT/$TA_FILE-tdsv61-fcode.osm
 
 # Uncomment this line to update the input files when there is a schema change
 #cp $TA_OUT/$TA_FILE-tdsv61-fcode.osm $TA_IN/$TA_FILE-tdsv61.osm
Clone this wiki locally