]>
Commit | Line | Data |
---|---|---|
3d893615 JK |
1 | #!/bin/sh |
2 | ||
3 | # Note that this test only works on real version numbers, | |
4 | # as it depends on matching the output to "git version". | |
5 | VERSION_A=v1.6.6.3 | |
6 | VERSION_B=v2.11.1 | |
7 | ||
8 | test_description='sanity test interop library' | |
9 | . ./interop-lib.sh | |
10 | ||
11 | test_expect_success 'bare git is forbidden' ' | |
12 | test_must_fail git version | |
13 | ' | |
14 | ||
15 | test_expect_success "git.a version ($VERSION_A)" ' | |
16 | echo git version ${VERSION_A#v} >expect && | |
17 | git.a version >actual && | |
18 | test_cmp expect actual | |
19 | ' | |
20 | ||
21 | test_expect_success "git.b version ($VERSION_B)" ' | |
22 | echo git version ${VERSION_B#v} >expect && | |
23 | git.b version >actual && | |
24 | test_cmp expect actual | |
25 | ' | |
26 | ||
27 | test_done |