Merge branch 'js/commit-graph-warning'
[git] / t / t9602-cvsimport-branches-tags.sh
1 #!/bin/sh
2
3 # A description of the repository used for this test can be found in
4 # t9602/README.
5
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
9
10 . ./lib-cvs.sh
11
12 setup_cvs_test_repository t9602
13
14 test_expect_success PERL 'import module' '
15
16         git cvsimport -C module-git module
17
18 '
19
20 test_expect_success PERL 'test branch main' '
21
22         test_cmp_branch_tree main
23
24 '
25
26 test_expect_success PERL 'test branch vendorbranch' '
27
28         test_cmp_branch_tree vendorbranch
29
30 '
31
32 test_expect_failure PERL 'test branch B_FROM_INITIALS' '
33
34         test_cmp_branch_tree B_FROM_INITIALS
35
36 '
37
38 test_expect_failure PERL 'test branch B_FROM_INITIALS_BUT_ONE' '
39
40         test_cmp_branch_tree B_FROM_INITIALS_BUT_ONE
41
42 '
43
44 test_expect_failure PERL 'test branch B_MIXED' '
45
46         test_cmp_branch_tree B_MIXED
47
48 '
49
50 test_expect_success PERL 'test branch B_SPLIT' '
51
52         test_cmp_branch_tree B_SPLIT
53
54 '
55
56 test_expect_failure PERL 'test tag vendortag' '
57
58         test_cmp_branch_tree vendortag
59
60 '
61
62 test_expect_success PERL 'test tag T_ALL_INITIAL_FILES' '
63
64         test_cmp_branch_tree T_ALL_INITIAL_FILES
65
66 '
67
68 test_expect_failure PERL 'test tag T_ALL_INITIAL_FILES_BUT_ONE' '
69
70         test_cmp_branch_tree T_ALL_INITIAL_FILES_BUT_ONE
71
72 '
73
74 test_expect_failure PERL 'test tag T_MIXED' '
75
76         test_cmp_branch_tree T_MIXED
77
78 '
79
80
81 test_done