initial commit
[chaz/docker-connect] / t / 03-options.sh
1 #!/bin/sh
2
3 . ./unittest.sh
4 . ./tap.sh
5
6 plan 3
7
8 ./docker-connect -h |grep 'OPTIONS' >/dev/null 2>&1
9 is "$?" 0 'the -h flag works'
10
11 ./docker-connect -v |grep '^docker-connect [[:digit:]]' >/dev/null 2>&1
12 is "$?" 0 'the -v flag works'
13
14 ./docker-connect -Z foo 2>/dev/null
15 is "$?" 1 'invalid option correctly fails'
16
This page took 0.037186 seconds and 4 git commands to generate.