Skip to content

v0.2.53..v0.2.54 changeset InfoCmdTest.sh

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/test-files/cmd/slow/InfoCmdTest.sh b/test-files/cmd/slow/InfoCmdTest.sh
index 8d40cca..93c252c 100755
--- a/test-files/cmd/slow/InfoCmdTest.sh
+++ b/test-files/cmd/slow/InfoCmdTest.sh
@@ -5,57 +5,59 @@ set -e
 # use a static config file, so this is not susceptible to config file changes
 CONFIG_FILE=test-files/cmd/quick/ConfigOptionsCmdTest/ConfigOptions.asciidoc
 
+CONFIG="-C Testing.conf"
+
 echo "Listing all option names..."
 echo ""
-hoot info -D config.options.file=$CONFIG_FILE --config-options --option-names
+hoot info $CONFIG -D config.options.file=$CONFIG_FILE --config-options --option-names
 echo ""
 
 echo "Listing all option names and descriptions..."
 echo ""
-hoot info -D config.options.file=$CONFIG_FILE --config-options --option-details
+hoot info $CONFIG -D config.options.file=$CONFIG_FILE --config-options --option-details
 echo ""
 
 echo "Listing all option names containing 'poi.polygon'..."
 echo ""
-hoot info -D config.options.file=$CONFIG_FILE --config-options --option-names poi.polygon
+hoot info $CONFIG -D config.options.file=$CONFIG_FILE --config-options --option-names poi.polygon
 echo ""
 
 echo "Listing all option names containing 'poi.polygon' and their descriptions..."
 echo ""
-hoot info -D config.options.file=$CONFIG_FILE --config-options --option-details poi.polygon
+hoot info $CONFIG -D config.options.file=$CONFIG_FILE --config-options --option-details poi.polygon
 
 # Since the list of a lot of these will constantly be changing, just going to grep out ones that are unlikely to change any time soon.
 
 # FEATURE EXTRACTORS
 echo "Listing all option names..."
 echo ""
-hoot info --feature-extractors | grep "SampledAngleHistogramExtractor"
+hoot info $CONFIG --feature-extractors | grep "SampledAngleHistogramExtractor"
 echo ""
 
 # FORMATS
 echo "Listing a format that is both input and output..."
 echo ""
-hoot info --formats | grep "hootapidb://"
+hoot info $CONFIG --formats | grep "hootapidb://"
 echo ""
 echo "Listing an input format..."
 echo ""
-hoot info --formats --input | grep ".osm.bz2"
+hoot info $CONFIG --formats --input | grep ".osm.bz2"
 echo ""
 echo "Listing an input format supporting streamable reads..."
 echo ""
-hoot info --formats --input-streamable | grep ".osm"
+hoot info $CONFIG --formats --input-streamable | grep ".osm"
 echo ""
 echo "Listing an input format supporting bounded reads..."
 echo ""
-hoot info --formats --input-bounded | grep "hootapidb://"
+hoot info $CONFIG --formats --input-bounded | grep "hootapidb://"
 echo ""
 echo "Listing an output format..."
 echo ""
-hoot info --formats --output | grep ".shp"
+hoot info $CONFIG --formats --output | grep ".shp"
 echo ""
 echo "Listing an output format supporting streamable reads..."
 echo ""
-hoot info --formats --output-streamable | grep ".osm"
+hoot info $CONFIG --formats --output-streamable | grep ".osm"
 echo ""
 echo "Listing a format used with OGR..."
 echo ""
@@ -63,146 +65,146 @@ hoot info --formats --ogr | grep ".shp"
 echo ""
 echo "Listing an input format read by OGR..."
 echo ""
-hoot info --formats --input --ogr | grep ".shp"
+hoot info $CONFIG --formats --input --ogr | grep ".shp"
 echo ""
 echo "Listing an output format written by OGR..."
 echo ""
-hoot info --formats --output --ogr | grep ".shp"
+hoot info $CONFIG --formats --output --ogr | grep ".shp"
 echo ""
 echo "Listing a streamable input format read by OGR..."
 echo ""
-hoot info --formats --input-streamable --ogr | grep ".shp"
+hoot info $CONFIG --formats --input-streamable --ogr | grep ".shp"
 echo ""
 echo "Listing a streamable output format written by OGR..."
 echo ""
-hoot info --formats --input-streamable --ogr | grep ".sql"
+hoot info $CONFIG --formats --input-streamable --ogr | grep ".sql"
 echo ""
 echo "Listing input formats supported bounded reads that are read by OGR..."
 echo ""
-hoot info --formats --input-bounded --ogr # none currently exist
+hoot info $CONFIG --formats --input-bounded --ogr # none currently exist
 
 # LANGUAGES
 echo "Listing detectable languages..."
 echo ""
-hoot info -D language.info.provider=hoot::HootServicesLanguageInfoMockClient --languages --detectable
+hoot info $CONFIG -D language.info.provider=hoot::HootServicesLanguageInfoMockClient --languages --detectable
 echo ""
 echo "Listing translatable languages..."
 echo ""
-hoot info -D language.info.provider=hoot::HootServicesLanguageInfoMockClient --languages --translatable
+hoot info $CONFIG -D language.info.provider=hoot::HootServicesLanguageInfoMockClient --languages --translatable
 echo ""
 echo "Listing available language detectors..."
 echo ""
-hoot info -D language.info.provider=hoot::HootServicesLanguageInfoMockClient --languages --detectors
+hoot info $CONFIG -D language.info.provider=hoot::HootServicesLanguageInfoMockClient --languages --detectors
 echo ""
 echo "Listing available to English language translators..."
 echo ""
-hoot info -D language.info.provider=hoot::HootServicesLanguageInfoMockClient --languages --translators
+hoot info $CONFIG -D language.info.provider=hoot::HootServicesLanguageInfoMockClient --languages --translators
 echo ""
 
 # MATCH CREATORS
 echo "Listing a match creator..."
 echo ""
-hoot info --match-creators | grep "HighwayMatchCreator"
+hoot info $CONFIG --match-creators | grep "HighwayMatchCreator"
 echo ""
 echo "Listing a script match creator..."
 echo ""
-hoot info --match-creators | grep "ScriptMatchCreator,Poi.js"
+hoot info $CONFIG --match-creators | grep "ScriptMatchCreator,Poi.js"
 echo ""
 
 # MERGER CREATORS
 echo "Listing a merger creator..."
 echo ""
-hoot info --merger-creators | grep "PoiPolygonMergerCreator"
+hoot info $CONFIG --merger-creators | grep "PoiPolygonMergerCreator"
 echo ""
 echo "Listing a script merger creator..."
 echo ""
-hoot info --merger-creators | grep "ScriptMergerCreator"
+hoot info $CONFIG --merger-creators | grep "ScriptMergerCreator"
 echo ""
 
 # MATCHERS
 echo "Listing a matcher..."
 echo ""
-hoot info --matchers | grep "HighwayMatch"
+hoot info $CONFIG --matchers | grep "HighwayMatch"
 echo ""
 echo "Listing a script matcher..."
 echo ""
-hoot info --matchers | grep "ScriptMatch"
+hoot info $CONFIG --matchers | grep "ScriptMatch"
 echo ""
 
 # MERGERS
 echo "Listing a merger..."
 echo ""
-hoot info --mergers | grep "PoiPolygonMerger"
+hoot info $CONFIG --mergers | grep "PoiPolygonMerger"
 echo ""
 echo "Listing a script merger..."
 echo ""
-hoot info --mergers | grep "ScriptMerger"
+hoot info $CONFIG --mergers | grep "ScriptMerger"
 echo ""
 
 # OPERATORS
 echo "Listing an op..."
 echo ""
-hoot info --operators | grep "DuplicateNameRemover"
+hoot info $CONFIG --operators | grep "DuplicateNameRemover"
 echo ""
 echo "Listing a visitor..."
 echo ""
-hoot info --operators | grep "RemoveEmptyAreasVisitor"
+hoot info $CONFIG --operators | grep "RemoveEmptyAreasVisitor"
 echo ""
 echo "Listing a criterion..."
 echo ""
-hoot info --operators | grep "NonBuildingAreaCriterion"
+hoot info $CONFIG --operators | grep "NonBuildingAreaCriterion"
 echo ""
 
 # TAG MERGERS
 echo "Listing a tag merger..."
 echo ""
-hoot info --tag-mergers | grep "AverageTagMerger"
+hoot info $CONFIG --tag-mergers | grep "AverageTagMerger"
 echo ""
 
 # CLEANING OPS
 echo "Listing cleaning operations..."
 echo ""
-hoot info --cleaning-operations | grep "DuplicateWayRemover"
+hoot info $CONFIG --cleaning-operations | grep "DuplicateWayRemover"
 echo ""
 
 # SUBLINE MATCHERS
 echo "Listing subline matchers..."
 echo ""
-hoot info --subline-matchers | grep "FrechetSublineMatcher"
+hoot info $CONFIG --subline-matchers | grep "FrechetSublineMatcher"
 echo ""
 
 # SUBLINE STRING MATCHERS
 echo "Listing subline string matchers..."
 echo ""
-hoot info --subline-string-matchers | grep "MaximalSublineStringMatcher"
+hoot info $CONFIG --subline-string-matchers | grep "MaximalSublineStringMatcher"
 echo ""
 
 # CONFLATE PRE OPS
 echo "Listing pre-conflation operations..."
 echo ""
-hoot info --conflate-pre-operations | grep "MapCleaner"
+hoot info $CONFIG --conflate-pre-operations | grep "MapCleaner"
 echo ""
 
 # CONFLATE POST OPS
 echo "Listing post-conflation operations..."
 echo ""
-hoot info --conflate-post-operations | grep "SuperfluousNodeRemover"
+hoot info $CONFIG --conflate-post-operations | grep "SuperfluousNodeRemover"
 echo ""
 
 # WAY JOINERS
 echo "Listing way joiners..."
 echo ""
-hoot info --way-joiners | grep "WayJoinerAdvanced"
+hoot info $CONFIG --way-joiners | grep "WayJoinerAdvanced"
 echo ""
 
 # CONFLATABLE CRITERIA
 echo "Listing conflatable criteria..."
 echo ""
-hoot info --conflatable-criteria | grep "BuildingCriterion"
+hoot info $CONFIG --conflatable-criteria | grep "BuildingCriterion"
 echo ""
 
 # FILTERS (aka ElementCriterion)
 echo "Listing filters..."
 echo ""
-hoot info --filters | grep "NonBuildingAreaCriterion"
+hoot info $CONFIG --filters | grep "NonBuildingAreaCriterion"
 echo ""
Clone this wiki locally