3 # Note that this test only works on real version numbers,
4 # as it depends on matching the output to "git version".
8 test_description='sanity test interop library'
11 test_expect_success 'bare git is forbidden' '
12 test_must_fail git version
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
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