2014-10-09 08:38:00 -04:00
|
|
|
@routed @options @files @todo
|
2014-04-21 09:24:42 -04:00
|
|
|
Feature: osrm-routed command line options: files
|
2014-03-27 16:46:53 -04:00
|
|
|
# Normally when launching osrm-routed, it will keep running as a server until it's shut down.
|
|
|
|
# For testing program options, the --trial option is used, which causes osrm-routed to quit
|
|
|
|
# immediately after initialization. This makes testing easier and faster.
|
|
|
|
#
|
2016-03-04 10:12:10 -05:00
|
|
|
# The {contracted_base} part of the options to osrm-routed will be expanded to the actual base path of
|
|
|
|
# the contracted input file.
|
2014-03-25 09:54:52 -04:00
|
|
|
|
2014-10-09 08:38:00 -04:00
|
|
|
# TODO
|
|
|
|
# Since we're not using osmr-datastore for all testing, osrm-routed is kept running.
|
|
|
|
# This means this test fails because osrm-routed is already running.
|
|
|
|
# It probably needs to be rewritten to first quit osrm-routed.
|
|
|
|
|
2014-03-22 06:36:42 -04:00
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
|
|
|
And the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b
|
|
|
|
"""
|
2014-03-22 06:36:42 -04:00
|
|
|
And the ways
|
|
|
|
| nodes |
|
|
|
|
| ab |
|
2016-03-04 10:12:10 -05:00
|
|
|
And the data has been contracted
|
2014-03-25 09:54:52 -04:00
|
|
|
|
2014-04-21 09:24:42 -04:00
|
|
|
Scenario: osrm-routed - Passing base file
|
2016-03-04 10:12:10 -05:00
|
|
|
When I run "osrm-routed {contracted_base}.osrm --trial"
|
2014-03-22 06:36:42 -04:00
|
|
|
Then stdout should contain /^\[info\] starting up engines/
|
|
|
|
And stdout should contain /\d{1,2}\.\d{1,2}\.\d{1,2}/
|
|
|
|
And stdout should contain /compiled at/
|
|
|
|
And stdout should contain /^\[info\] loaded plugin: viaroute/
|
2014-03-25 09:54:52 -04:00
|
|
|
And stdout should contain /^\[info\] trial run/
|
|
|
|
And stdout should contain /^\[info\] shutdown completed/
|
2016-09-19 17:13:44 -04:00
|
|
|
And it should exit successfully
|