Remove corech options, redundant tests (#6989)
* Remove corech options, redundant tests * Small fix
This commit is contained in:
parent
5e6fdda16b
commit
7436835244
1
.gitignore
vendored
1
.gitignore
vendored
@ -46,7 +46,6 @@ Thumbs.db
|
|||||||
/example/build/
|
/example/build/
|
||||||
/test/data/monaco.osrm*
|
/test/data/monaco.osrm*
|
||||||
/test/data/ch
|
/test/data/ch
|
||||||
/test/data/corech
|
|
||||||
/test/data/mld
|
/test/data/mld
|
||||||
/cmake/postinst
|
/cmake/postinst
|
||||||
|
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
@prepare @options @help
|
|
||||||
Feature: osrm-contract command line options: help
|
|
||||||
|
|
||||||
Scenario: osrm-contract - Help should be shown when no options are passed
|
|
||||||
When I try to run "osrm-contract"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-contract(.exe)? <input.osrm> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--core"
|
|
||||||
And stdout should contain "--segment-speed-file"
|
|
||||||
And it should exit with an error
|
|
||||||
|
|
||||||
Scenario: osrm-contract - Help, short
|
|
||||||
When I run "osrm-contract -h"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-contract(.exe)? <input.osrm> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--core"
|
|
||||||
And stdout should contain "--segment-speed-file"
|
|
||||||
And it should exit successfully
|
|
||||||
|
|
||||||
Scenario: osrm-contract - Help, long
|
|
||||||
When I run "osrm-contract --help"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-contract(.exe)? <input.osrm> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--core"
|
|
||||||
And stdout should contain "--segment-speed-file"
|
|
||||||
And it should exit successfully
|
|
@ -1,38 +0,0 @@
|
|||||||
@contract @options @help
|
|
||||||
Feature: osrm-customize command line options: help
|
|
||||||
|
|
||||||
Scenario: osrm-customize - Help should be shown when no options are passed
|
|
||||||
When I try to run "osrm-customize"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-customize(.exe)? <input.osrm> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And it should exit with an error
|
|
||||||
|
|
||||||
Scenario: osrm-customize - Help, short
|
|
||||||
When I run "osrm-customize -h"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-customize(.exe)? <input.osrm> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And it should exit successfully
|
|
||||||
|
|
||||||
Scenario: osrm-customize - Help, long
|
|
||||||
When I run "osrm-customize --help"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-customize(.exe)? <input.osrm> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And it should exit successfully
|
|
@ -33,10 +33,6 @@ Feature: osrm-datastore command line options
|
|||||||
When I try to run "osrm-datastore {processed_file} --dataset-name cucumber/only_metric_test --only-metric"
|
When I try to run "osrm-datastore {processed_file} --dataset-name cucumber/only_metric_test --only-metric"
|
||||||
Then it should exit successfully
|
Then it should exit successfully
|
||||||
|
|
||||||
Scenario: osrm-datastore - Displaying help should work
|
|
||||||
When I try to run "osrm-datastore {processed_file} --help"
|
|
||||||
Then it should exit successfully
|
|
||||||
|
|
||||||
Scenario: osrm-datastore - Errors on invalid path
|
Scenario: osrm-datastore - Errors on invalid path
|
||||||
When I try to run "osrm-datastore invalid_path.osrm"
|
When I try to run "osrm-datastore invalid_path.osrm"
|
||||||
Then stderr should contain "[error] Config contains invalid file paths."
|
Then stderr should contain "[error] Config contains invalid file paths."
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
@extract @options @help
|
|
||||||
Feature: osrm-extract command line options: help
|
|
||||||
|
|
||||||
Background:
|
|
||||||
Given the profile "testbot"
|
|
||||||
|
|
||||||
Scenario: osrm-extract - Help should be shown when no options are passed
|
|
||||||
When I run "osrm-extract"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-extract(.exe)? <input.osm/.osm.bz2/.osm.pbf> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--profile"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--small-component-size"
|
|
||||||
And it should exit successfully
|
|
||||||
|
|
||||||
Scenario: osrm-extract - Help, short
|
|
||||||
When I run "osrm-extract -h"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-extract(.exe)? <input.osm/.osm.bz2/.osm.pbf> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--profile"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--small-component-size"
|
|
||||||
And it should exit successfully
|
|
||||||
|
|
||||||
Scenario: osrm-extract - Help, long
|
|
||||||
When I run "osrm-extract --help"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-extract(.exe)? <input.osm/.osm.bz2/.osm.pbf> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--profile"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--small-component-size"
|
|
||||||
And it should exit successfully
|
|
@ -1,53 +0,0 @@
|
|||||||
@partition @options @help
|
|
||||||
Feature: osrm-partition command line options: help
|
|
||||||
|
|
||||||
Scenario: osrm-partition - Help should be shown when no options are passed
|
|
||||||
When I try to run "osrm-partition"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-partition(.exe)? <input.osrm> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--balance"
|
|
||||||
And stdout should contain "--boundary"
|
|
||||||
And stdout should contain "--optimizing-cuts"
|
|
||||||
And stdout should contain "--small-component-size"
|
|
||||||
And stdout should contain "--max-cell-sizes"
|
|
||||||
And it should exit with an error
|
|
||||||
|
|
||||||
Scenario: osrm-partition - Help, short
|
|
||||||
When I run "osrm-partition -h"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-partition(.exe)? <input.osrm> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--balance"
|
|
||||||
And stdout should contain "--boundary"
|
|
||||||
And stdout should contain "--optimizing-cuts"
|
|
||||||
And stdout should contain "--small-component-size"
|
|
||||||
And stdout should contain "--max-cell-sizes"
|
|
||||||
And it should exit successfully
|
|
||||||
|
|
||||||
Scenario: osrm-partition - Help, long
|
|
||||||
When I run "osrm-partition --help"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-partition(.exe)? <input.osrm> \[options\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--balance"
|
|
||||||
And stdout should contain "--boundary"
|
|
||||||
And stdout should contain "--optimizing-cuts"
|
|
||||||
And stdout should contain "--small-component-size"
|
|
||||||
And stdout should contain "--max-cell-sizes"
|
|
||||||
And it should exit successfully
|
|
@ -1,71 +0,0 @@
|
|||||||
@routed @options @help
|
|
||||||
Feature: osrm-routed command line options: help
|
|
||||||
|
|
||||||
Background:
|
|
||||||
Given the profile "testbot"
|
|
||||||
|
|
||||||
Scenario: osrm-routed - Help should be shown when no options are passed
|
|
||||||
When I run "osrm-routed"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-routed(.exe)? <base.osrm> \[<options>\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "--trial"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--ip"
|
|
||||||
And stdout should contain "--port"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--shared-memory"
|
|
||||||
And stdout should contain "--max-viaroute-size"
|
|
||||||
And stdout should contain "--max-trip-size"
|
|
||||||
And stdout should contain "--max-table-size"
|
|
||||||
And stdout should contain "--max-matching-size"
|
|
||||||
And stdout should contain "--default-radius"
|
|
||||||
And stdout should contain "--keepalive-timeout"
|
|
||||||
And it should exit successfully
|
|
||||||
|
|
||||||
Scenario: osrm-routed - Help, short
|
|
||||||
When I run "osrm-routed -h"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-routed(.exe)? <base.osrm> \[<options>\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "--trial"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--ip"
|
|
||||||
And stdout should contain "--port"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--shared-memory"
|
|
||||||
And stdout should contain "--max-viaroute-size"
|
|
||||||
And stdout should contain "--max-trip-size"
|
|
||||||
And stdout should contain "--max-table-size"
|
|
||||||
And stdout should contain "--max-matching-size"
|
|
||||||
And stdout should contain "--default-radius"
|
|
||||||
And stdout should contain "--keepalive-timeout"
|
|
||||||
And it should exit successfully
|
|
||||||
|
|
||||||
Scenario: osrm-routed - Help, long
|
|
||||||
When I run "osrm-routed --help"
|
|
||||||
Then stderr should be empty
|
|
||||||
And stdout should contain /osrm-routed(.exe)? <base.osrm> \[<options>\]:/
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "--version"
|
|
||||||
And stdout should contain "--help"
|
|
||||||
And stdout should contain "--verbosity"
|
|
||||||
And stdout should contain "--trial"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
And stdout should contain "--ip"
|
|
||||||
And stdout should contain "--port"
|
|
||||||
And stdout should contain "--threads"
|
|
||||||
And stdout should contain "--shared-memory"
|
|
||||||
And stdout should contain "--max-trip-size"
|
|
||||||
And stdout should contain "--max-table-size"
|
|
||||||
And stdout should contain "--max-table-size"
|
|
||||||
And stdout should contain "--max-matching-size"
|
|
||||||
And stdout should contain "--default-radius"
|
|
||||||
And stdout should contain "--keepalive-timeout"
|
|
||||||
And it should exit successfully
|
|
@ -136,22 +136,6 @@ Feature: Basic Map Matching
|
|||||||
| trace | matchings |
|
| trace | matchings |
|
||||||
| abcbd | abbd |
|
| abcbd | abbd |
|
||||||
|
|
||||||
Scenario: Testbot - Map matching with core factor
|
|
||||||
Given the contract extra arguments "--core 0.8"
|
|
||||||
Given the node map
|
|
||||||
"""
|
|
||||||
a b c d
|
|
||||||
e
|
|
||||||
"""
|
|
||||||
|
|
||||||
And the ways
|
|
||||||
| nodes | oneway |
|
|
||||||
| abcd | no |
|
|
||||||
|
|
||||||
When I match I should get
|
|
||||||
| trace | timestamps | matchings |
|
|
||||||
| abcd | 0 1 2 3 | abcd |
|
|
||||||
|
|
||||||
Scenario: Testbot - Map matching with small distortion
|
Scenario: Testbot - Map matching with small distortion
|
||||||
Given the node map
|
Given the node map
|
||||||
"""
|
"""
|
||||||
|
@ -65,32 +65,6 @@ Feature: Via points
|
|||||||
| waypoints | route | turns |
|
| waypoints | route | turns |
|
||||||
| 1,2,3 | cd,ac,ab,bd,cd | depart,new name right,new name right,new name right,arrive |
|
| 1,2,3 | cd,ac,ab,bd,cd | depart,new name right,new name right,new name right,arrive |
|
||||||
|
|
||||||
Scenario: Simple via point with core factor
|
|
||||||
Given the contract extra arguments "--core 0.8"
|
|
||||||
Given the node map
|
|
||||||
"""
|
|
||||||
a b c d
|
|
||||||
e f g
|
|
||||||
h i
|
|
||||||
j
|
|
||||||
"""
|
|
||||||
|
|
||||||
And the ways
|
|
||||||
| nodes |
|
|
||||||
| abcd |
|
|
||||||
| efg |
|
|
||||||
| hi |
|
|
||||||
| be |
|
|
||||||
| cfh |
|
|
||||||
| dgij |
|
|
||||||
|
|
||||||
When I route I should get
|
|
||||||
| waypoints | route |
|
|
||||||
| a,b,c | abcd,abcd,abcd,abcd |
|
|
||||||
| c,b,a | abcd,abcd,abcd,abcd |
|
|
||||||
| a,d,j | abcd,abcd,dgij,dgij |
|
|
||||||
| j,d,a | dgij,dgij,abcd,abcd |
|
|
||||||
|
|
||||||
Scenario: Via point at a dead end
|
Scenario: Via point at a dead end
|
||||||
Given the node map
|
Given the node map
|
||||||
"""
|
"""
|
||||||
|
@ -59,7 +59,6 @@ IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
|||||||
|
|
||||||
SET test_region=monaco
|
SET test_region=monaco
|
||||||
SET test_region_ch=ch\monaco
|
SET test_region_ch=ch\monaco
|
||||||
SET test_region_corech=corech\monaco
|
|
||||||
SET test_region_mld=mld\monaco
|
SET test_region_mld=mld\monaco
|
||||||
SET test_osm=%test_region%.osm.pbf
|
SET test_osm=%test_region%.osm.pbf
|
||||||
COPY %PROJECT_DIR%\test\data\%test_region%.osm.pbf %test_osm%
|
COPY %PROJECT_DIR%\test\data\%test_region%.osm.pbf %test_osm%
|
||||||
@ -69,18 +68,13 @@ IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
|||||||
MKDIR ch
|
MKDIR ch
|
||||||
XCOPY %test_region%.osrm.* ch\
|
XCOPY %test_region%.osrm.* ch\
|
||||||
XCOPY %test_region%.osrm ch\
|
XCOPY %test_region%.osrm ch\
|
||||||
MKDIR corech
|
|
||||||
XCOPY %test_region%.osrm.* corech\
|
|
||||||
XCOPY %test_region%.osrm corech\
|
|
||||||
MKDIR mld
|
MKDIR mld
|
||||||
XCOPY %test_region%.osrm.* mld\
|
XCOPY %test_region%.osrm.* mld\
|
||||||
XCOPY %test_region%.osrm mld\
|
XCOPY %test_region%.osrm mld\
|
||||||
%CONFIGURATION%\osrm-contract.exe %test_region_ch%.osrm
|
%CONFIGURATION%\osrm-contract.exe %test_region_ch%.osrm
|
||||||
%CONFIGURATION%\osrm-contract.exe --core 0.8 %test_region_corech%.osrm
|
|
||||||
%CONFIGURATION%\osrm-partition.exe %test_region_mld%.osrm
|
%CONFIGURATION%\osrm-partition.exe %test_region_mld%.osrm
|
||||||
%CONFIGURATION%\osrm-customize.exe %test_region_mld%.osrm
|
%CONFIGURATION%\osrm-customize.exe %test_region_mld%.osrm
|
||||||
XCOPY /Y ch\*.* ..\test\data\ch\
|
XCOPY /Y ch\*.* ..\test\data\ch\
|
||||||
XCOPY /Y corech\*.* ..\test\data\corech\
|
|
||||||
XCOPY /Y mld\*.* ..\test\data\mld\
|
XCOPY /Y mld\*.* ..\test\data\mld\
|
||||||
unit_tests\%CONFIGURATION%\library-tests.exe
|
unit_tests\%CONFIGURATION%\library-tests.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
@ -46,25 +46,16 @@ return_code parseArguments(int argc,
|
|||||||
boost::program_options::value<unsigned int>(&contractor_config.requested_num_threads)
|
boost::program_options::value<unsigned int>(&contractor_config.requested_num_threads)
|
||||||
->default_value(std::thread::hardware_concurrency()),
|
->default_value(std::thread::hardware_concurrency()),
|
||||||
"Number of threads to use")(
|
"Number of threads to use")(
|
||||||
"core,k",
|
"segment-speed-file",
|
||||||
boost::program_options::value<double>(&contractor_config.core_factor)->default_value(1.0),
|
boost::program_options::value<std::vector<std::string>>(
|
||||||
"DEPRECATED: Will always be 1.0. Percentage of the graph (in vertices) to contract "
|
&contractor_config.updater_config.segment_speed_lookup_paths)
|
||||||
"[0..1].")("segment-speed-file",
|
->composing(),
|
||||||
boost::program_options::value<std::vector<std::string>>(
|
"Lookup files containing nodeA, nodeB, speed data to adjust edge weights")(
|
||||||
&contractor_config.updater_config.segment_speed_lookup_paths)
|
|
||||||
->composing(),
|
|
||||||
"Lookup files containing nodeA, nodeB, speed data to adjust edge weights")(
|
|
||||||
"turn-penalty-file",
|
"turn-penalty-file",
|
||||||
boost::program_options::value<std::vector<std::string>>(
|
boost::program_options::value<std::vector<std::string>>(
|
||||||
&contractor_config.updater_config.turn_penalty_lookup_paths)
|
&contractor_config.updater_config.turn_penalty_lookup_paths)
|
||||||
->composing(),
|
->composing(),
|
||||||
"Lookup files containing from_, to_, via_nodes, and turn penalties to adjust turn weights")(
|
"Lookup files containing from_, to_, via_nodes, and turn penalties to adjust turn weights")(
|
||||||
"level-cache,o",
|
|
||||||
boost::program_options::bool_switch(&contractor_config.use_cached_priority)
|
|
||||||
->default_value(false),
|
|
||||||
"DEPRECATED: Will always be false. Use .level file to retain the contraction level for "
|
|
||||||
"each "
|
|
||||||
"node from the last run.")(
|
|
||||||
"edge-weight-updates-over-factor",
|
"edge-weight-updates-over-factor",
|
||||||
boost::program_options::value<double>(
|
boost::program_options::value<double>(
|
||||||
&contractor_config.updater_config.log_edge_updates_factor)
|
&contractor_config.updater_config.log_edge_updates_factor)
|
||||||
|
Loading…
Reference in New Issue
Block a user