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