From bc47fcaf0e422950990f413d061299a1e29a5722 Mon Sep 17 00:00:00 2001 From: Ben Marchant Date: Tue, 19 Dec 2017 10:37:23 -0600 Subject: [PATCH] CentOS 6.7 o2sTranslationTest failure (#2022) * Updated ordering in o2sTranslationTest to work on CentOS 6.7 and enabled GGDM and TDS 4.0 test comparisons * Updated expected OSM files for GGDM and TDS 4.0 tests * Script clean up --- test-files/cmd/slow/o2sTranslationTest.sh | 30 +++++++--- test-files/o2s_ggdm.osm | 71 +++++++++++++++++++++++ test-files/o2s_tds40.osm | 71 +++++++++++++++++++++++ 3 files changed, 163 insertions(+), 9 deletions(-) create mode 100644 test-files/o2s_ggdm.osm create mode 100644 test-files/o2s_tds40.osm diff --git a/test-files/cmd/slow/o2sTranslationTest.sh b/test-files/cmd/slow/o2sTranslationTest.sh index 466711475e..ae14d44c82 100755 --- a/test-files/cmd/slow/o2sTranslationTest.sh +++ b/test-files/cmd/slow/o2sTranslationTest.sh @@ -8,6 +8,8 @@ TRANS_MGCP=$HOOT_HOME/translations/MGCP_TRD4.js TRANS_GGDM=$HOOT_HOME/translations/GGDMv30.js inputFile=test-files/o2s_test.osm +tds40File=test-files/o2s_tds40.osm +ggdmFile=test-files/o2s_ggdm.osm outputDir=test-output/o2s mkdir -p $outputDir @@ -25,22 +27,29 @@ HOOT_OPT="--info" # Export files echo "### TDSv40 ###" hoot osm2ogr $HOOT_OPT -D ogr.thematic.structure=false $TRANS_TDS40 $inputFile $outputDir/tds40.shp -hoot ogr2osm $HOOT_OPT $TRANS_TDS40 $outputDir/tds40.osm $outputDir/tds40/*.shp +hoot ogr2osm $HOOT_OPT $TRANS_TDS40 $outputDir/tds40.osm \ + $outputDir/tds40/HUT_P.shp \ + $outputDir/tds40/o2s_*.shp \ + $outputDir/tds40/ORCHARD_S.shp \ + $outputDir/tds40/RIVER_C.shp -# TDSv40 complains about the "source" tag. It maps to an attibute but it is not on each element -#hoot is-match $outputDir/tds40.osm $inputFile || diff $outputDir/tds40.osm $inputFile +hoot is-match $outputDir/tds40.osm $tds40File || diff $outputDir/tds40.osm $tds40File echo echo "### TDSv61 ###" hoot osm2ogr $HOOT_OPT -D ogr.thematic.structure=false $TRANS_TDS61 $inputFile $outputDir/tds61.shp -hoot ogr2osm $HOOT_OPT $TRANS_TDS61 $outputDir/tds61.osm $outputDir/tds61/*.shp +hoot ogr2osm $HOOT_OPT $TRANS_TDS61 $outputDir/tds61.osm \ + $outputDir/tds61/HUT_P.shp \ + $outputDir/tds61/o2s_*.shp \ + $outputDir/tds61/ORCHARD_S.shp \ + $outputDir/tds61/RIVER_C.shp + hoot is-match $outputDir/tds61.osm $inputFile || diff $outputDir/tds61.osm $inputFile echo echo "### MGCP ###" hoot osm2ogr $HOOT_OPT $TRANS_MGCP $inputFile $outputDir/mgcp.shp -# hoot ogr2osm $HOOT_OPT $TRANS_MGCP $outputDir/mgcp.osm $outputDir/mgcp/*.shp -hoot ogr2osm $HOOT_OPT $TRANS_MGCP $outputDir/mgcp.osm \ +hoot ogr2osm $HOOT_OPT $TRANS_MGCP $outputDir/mgcp.osm \ $outputDir/mgcp/PAL099.shp \ $outputDir/mgcp/o2s_*.shp \ $outputDir/mgcp/AEA040.shp \ @@ -51,7 +60,10 @@ hoot is-match $outputDir/mgcp.osm $inputFile || diff $outputDir/mgcp.osm $inputF echo echo "### GGDM ###" hoot osm2ogr $HOOT_OPT -D ogr.thematic.structure=false $TRANS_GGDM $inputFile $outputDir/ggdm.shp -hoot ogr2osm $HOOT_OPT $TRANS_GGDM $outputDir/ggdm.osm $outputDir/ggdm/*.shp +hoot ogr2osm $HOOT_OPT $TRANS_GGDM $outputDir/ggdm.osm \ + $outputDir/ggdm/HUT_P.shp \ + $outputDir/ggdm/o2s_*.shp \ + $outputDir/ggdm/ORCHARD_S.shp \ + $outputDir/ggdm/RIVER_C.shp -# GGDMv30 complains about the "source" tag. It maps to an attibute but it is not on each element -#hoot is-match $outputDir/ggdm.osm $inputFile || diff $outputDir/ggdm.osm $inputFile +hoot is-match $outputDir/ggdm.osm $ggdmFile || diff $outputDir/ggdm.osm $ggdmFile diff --git a/test-files/o2s_ggdm.osm b/test-files/o2s_ggdm.osm new file mode 100644 index 0000000000..b43e697ca2 --- /dev/null +++ b/test-files/o2s_ggdm.osm @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test-files/o2s_tds40.osm b/test-files/o2s_tds40.osm new file mode 100644 index 0000000000..1b62ab07de --- /dev/null +++ b/test-files/o2s_tds40.osm @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +