|
| 1 | +load 'common' |
| 2 | + |
| 3 | +setup() { |
| 4 | + : # suppress common setup, no repository needed |
| 5 | +} |
| 6 | + |
| 7 | +@test 'specifying version parameter should output version and exit with 0 no matter what' { |
| 8 | + run svn2git --version --non-existing repo-a repo-b |
| 9 | + assert_success |
| 10 | + assert_output --partial 'Git version:' |
| 11 | + |
| 12 | + run svn2git --non-existing repo-a --version repo-b |
| 13 | + assert_success |
| 14 | + assert_output --partial 'Git version:' |
| 15 | + |
| 16 | + run svn2git --non-existing repo-a repo-b --version |
| 17 | + assert_success |
| 18 | + assert_output --partial 'Git version:' |
| 19 | + |
| 20 | + run svn2git -v --non-existing repo-a repo-b |
| 21 | + assert_success |
| 22 | + assert_output --partial 'Git version:' |
| 23 | + |
| 24 | + run svn2git --non-existing repo-a -v repo-b |
| 25 | + assert_success |
| 26 | + assert_output --partial 'Git version:' |
| 27 | + |
| 28 | + run svn2git --non-existing repo-a repo-b -v |
| 29 | + assert_success |
| 30 | + assert_output --partial 'Git version:' |
| 31 | +} |
| 32 | + |
| 33 | +@test 'specifying help parameter should output usage and exit with 0 no matter what' { |
| 34 | + run svn2git --help --non-existing repo-a repo-b |
| 35 | + assert_success |
| 36 | + assert_output --partial 'Usage:' |
| 37 | + |
| 38 | + run svn2git --non-existing repo-a --help repo-b |
| 39 | + assert_success |
| 40 | + assert_output --partial 'Usage:' |
| 41 | + |
| 42 | + run svn2git --non-existing repo-a repo-b --help |
| 43 | + assert_success |
| 44 | + assert_output --partial 'Usage:' |
| 45 | + |
| 46 | + run svn2git -h --non-existing repo-a repo-b |
| 47 | + assert_success |
| 48 | + assert_output --partial 'Usage:' |
| 49 | + |
| 50 | + run svn2git --non-existing repo-a -h repo-b |
| 51 | + assert_success |
| 52 | + assert_output --partial 'Usage:' |
| 53 | + |
| 54 | + run svn2git --non-existing repo-a repo-b -h |
| 55 | + assert_success |
| 56 | + assert_output --partial 'Usage:' |
| 57 | +} |
0 commit comments