dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / dnscrypt / test / features / test-hostip / help.feature
blob0ad61b1fb457265af03fde16196f3168ea4614ae
1 Feature: Show help and version for the hostip utility
3   Display the help when the -h switch is given.
4   
5   Scenario: start with the -h switch.
6   
7     When I run `hostip -h`
8     Then the output should contain:
9     """
10     Usage:
11     """
12     And the exit status should be 0
13     
14   Scenario: start with the --help switch
16     When I run `hostip --help`
17     Then the output should contain:
18     """
19     Usage:
20     """
21     And the exit status should be 0
23   Scenario: start with a nonexistent switch
25     When I run `hostip -%`
26     Then the output should contain:
27     """
28     Usage:
29     """
30     And the exit status should be 1
32   Scenario: start the -V switch
34     When I run `hostip -V`
35     Then the output should contain:
36     """
37     hostip
38     """
39     And the output should not contain:
40     """
41     Usage
42     """
43     And the exit status should be 0