Code

Merge branch 'gf/maint-sh-setup-nongit-ok' into maint
[git.git] / t / t9602-cvsimport-branches-tags.sh
1 #!/bin/sh
3 # A description of the repository used for this test can be found in
4 # t9602/README.
6 test_description='git cvsimport handling of branches and tags'
7 . ./lib-cvs.sh
9 CVSROOT="$TEST_DIRECTORY"/t9602/cvsroot
10 export CVSROOT
12 test_expect_success 'import module' '
14         git cvsimport -C module-git module
16 '
18 test_expect_success 'test branch master' '
20         test_cmp_branch_tree master
22 '
24 test_expect_success 'test branch vendorbranch' '
26         test_cmp_branch_tree vendorbranch
28 '
30 test_expect_failure 'test branch B_FROM_INITIALS' '
32         test_cmp_branch_tree B_FROM_INITIALS
34 '
36 test_expect_failure 'test branch B_FROM_INITIALS_BUT_ONE' '
38         test_cmp_branch_tree B_FROM_INITIALS_BUT_ONE
40 '
42 test_expect_failure 'test branch B_MIXED' '
44         test_cmp_branch_tree B_MIXED
46 '
48 test_expect_success 'test branch B_SPLIT' '
50         test_cmp_branch_tree B_SPLIT
52 '
54 test_expect_failure 'test tag vendortag' '
56         test_cmp_branch_tree vendortag
58 '
60 test_expect_success 'test tag T_ALL_INITIAL_FILES' '
62         test_cmp_branch_tree T_ALL_INITIAL_FILES
64 '
66 test_expect_failure 'test tag T_ALL_INITIAL_FILES_BUT_ONE' '
68         test_cmp_branch_tree T_ALL_INITIAL_FILES_BUT_ONE
70 '
72 test_expect_failure 'test tag T_MIXED' '
74         test_cmp_branch_tree T_MIXED
76 '
79 test_done