45 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
@prepare @options @help
 | 
						|
Feature: osrm-contract command line options: help
 | 
						|
 | 
						|
    Scenario: osrm-contract - Help should be shown when no options are passed
 | 
						|
        When I run "osrm-contract"
 | 
						|
        Then stderr should be empty
 | 
						|
        And stdout should contain "osrm-contract <input.osrm> [options]:"
 | 
						|
        And stdout should contain "Options:"
 | 
						|
        And stdout should contain "--version"
 | 
						|
        And stdout should contain "--help"
 | 
						|
        And stdout should contain "Configuration:"
 | 
						|
        And stdout should contain "--threads"
 | 
						|
        And stdout should contain "--core"
 | 
						|
        And stdout should contain "--level-cache"
 | 
						|
        And stdout should contain "--segment-speed-file"
 | 
						|
        And it should exit with code 1
 | 
						|
 | 
						|
    Scenario: osrm-contract - Help, short
 | 
						|
        When I run "osrm-contract -h"
 | 
						|
        Then stderr should be empty
 | 
						|
        And stdout should contain "osrm-contract <input.osrm> [options]:"
 | 
						|
        And stdout should contain "Options:"
 | 
						|
        And stdout should contain "--version"
 | 
						|
        And stdout should contain "--help"
 | 
						|
        And stdout should contain "Configuration:"
 | 
						|
        And stdout should contain "--threads"
 | 
						|
        And stdout should contain "--core"
 | 
						|
        And stdout should contain "--level-cache"
 | 
						|
        And stdout should contain "--segment-speed-file"
 | 
						|
        And it should exit with code 0
 | 
						|
 | 
						|
    Scenario: osrm-contract - Help, long
 | 
						|
        When I run "osrm-contract --help"
 | 
						|
        Then stderr should be empty
 | 
						|
        And stdout should contain "osrm-contract <input.osrm> [options]:"
 | 
						|
        And stdout should contain "Options:"
 | 
						|
        And stdout should contain "--version"
 | 
						|
        And stdout should contain "--help"
 | 
						|
        And stdout should contain "Configuration:"
 | 
						|
        And stdout should contain "--threads"
 | 
						|
        And stdout should contain "--core"
 | 
						|
        And stdout should contain "--level-cache"
 | 
						|
        And stdout should contain "--segment-speed-file"
 | 
						|
        And it should exit with code 0
 |