decorate: add clear_decoration() function
[git.git] / t / t9602-cvsimport-branches-tags.sh
blobe5266c9a872f15a9649d4f0532d823b86e50aeb6
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 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
8 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 . ./lib-cvs.sh
12 setup_cvs_test_repository t9602
14 test_expect_success PERL 'import module' '
16 git cvsimport -C module-git module
20 test_expect_success PERL 'test branch main' '
22 test_cmp_branch_tree main
26 test_expect_success PERL 'test branch vendorbranch' '
28 test_cmp_branch_tree vendorbranch
32 test_expect_failure PERL 'test branch B_FROM_INITIALS' '
34 test_cmp_branch_tree B_FROM_INITIALS
38 test_expect_failure PERL 'test branch B_FROM_INITIALS_BUT_ONE' '
40 test_cmp_branch_tree B_FROM_INITIALS_BUT_ONE
44 test_expect_failure PERL 'test branch B_MIXED' '
46 test_cmp_branch_tree B_MIXED
50 test_expect_success PERL 'test branch B_SPLIT' '
52 test_cmp_branch_tree B_SPLIT
56 test_expect_failure PERL 'test tag vendortag' '
58 test_cmp_branch_tree vendortag
62 test_expect_success PERL 'test tag T_ALL_INITIAL_FILES' '
64 test_cmp_branch_tree T_ALL_INITIAL_FILES
68 test_expect_failure PERL 'test tag T_ALL_INITIAL_FILES_BUT_ONE' '
70 test_cmp_branch_tree T_ALL_INITIAL_FILES_BUT_ONE
74 test_expect_failure PERL 'test tag T_MIXED' '
76 test_cmp_branch_tree T_MIXED
81 test_done