2014-04-21 09:24:42 -04:00
|
|
|
@extract @options @version
|
|
|
|
Feature: osrm-extract command line options: version
|
2014-03-31 09:29:00 -04:00
|
|
|
# the regex will match these two formats:
|
|
|
|
# v0.3.7.0 # this is the normal format when you build from a git clone
|
|
|
|
# -128-NOTFOUND # if you build from a shallow clone (used on Travis)
|
2014-03-21 19:32:35 -04:00
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
2014-03-22 06:36:42 -04:00
|
|
|
|
2014-04-21 09:24:42 -04:00
|
|
|
Scenario: osrm-extract - Version, short
|
2017-08-30 04:09:12 -04:00
|
|
|
When I run "osrm-extract -v"
|
2014-03-21 19:47:20 -04:00
|
|
|
Then stderr should be empty
|
2014-03-22 06:36:42 -04:00
|
|
|
And stdout should contain 1 line
|
2014-03-31 09:29:00 -04:00
|
|
|
And stdout should contain /(v\d{1,2}\.\d{1,2}\.\d{1,2}|\w*-\d+-\w+)/
|
2016-09-19 17:13:44 -04:00
|
|
|
And it should exit successfully
|
2014-03-21 19:32:35 -04:00
|
|
|
|
2014-04-21 09:24:42 -04:00
|
|
|
Scenario: osrm-extract - Version, long
|
|
|
|
When I run "osrm-extract --version"
|
2014-03-25 02:04:51 -04:00
|
|
|
Then stderr should be empty
|
|
|
|
And stdout should contain 1 line
|
2014-03-31 09:29:00 -04:00
|
|
|
And stdout should contain /(v\d{1,2}\.\d{1,2}\.\d{1,2}|\w*-\d+-\w+)/
|
2016-09-19 17:13:44 -04:00
|
|
|
And it should exit successfully
|