]>
Commit | Line | Data |
---|---|---|
0dc06212 MH |
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' | |
334afbc7 JS |
7 | GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master |
8 | export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME | |
9 | ||
0dc06212 MH |
10 | . ./lib-cvs.sh |
11 | ||
9b777a16 | 12 | setup_cvs_test_repository t9602 |
0dc06212 | 13 | |
06eaaa78 | 14 | test_expect_success PERL 'import module' ' |
0dc06212 MH |
15 | |
16 | git cvsimport -C module-git module | |
17 | ||
18 | ' | |
19 | ||
06eaaa78 | 20 | test_expect_success PERL 'test branch master' ' |
0dc06212 MH |
21 | |
22 | test_cmp_branch_tree master | |
23 | ||
24 | ' | |
25 | ||
06eaaa78 | 26 | test_expect_success PERL 'test branch vendorbranch' ' |
0dc06212 MH |
27 | |
28 | test_cmp_branch_tree vendorbranch | |
29 | ||
30 | ' | |
31 | ||
06eaaa78 | 32 | test_expect_failure PERL 'test branch B_FROM_INITIALS' ' |
0dc06212 MH |
33 | |
34 | test_cmp_branch_tree B_FROM_INITIALS | |
35 | ||
36 | ' | |
37 | ||
06eaaa78 | 38 | test_expect_failure PERL 'test branch B_FROM_INITIALS_BUT_ONE' ' |
0dc06212 MH |
39 | |
40 | test_cmp_branch_tree B_FROM_INITIALS_BUT_ONE | |
41 | ||
42 | ' | |
43 | ||
06eaaa78 | 44 | test_expect_failure PERL 'test branch B_MIXED' ' |
0dc06212 MH |
45 | |
46 | test_cmp_branch_tree B_MIXED | |
47 | ||
48 | ' | |
49 | ||
06eaaa78 | 50 | test_expect_success PERL 'test branch B_SPLIT' ' |
0dc06212 MH |
51 | |
52 | test_cmp_branch_tree B_SPLIT | |
53 | ||
54 | ' | |
55 | ||
06eaaa78 | 56 | test_expect_failure PERL 'test tag vendortag' ' |
0dc06212 MH |
57 | |
58 | test_cmp_branch_tree vendortag | |
59 | ||
60 | ' | |
61 | ||
06eaaa78 | 62 | test_expect_success PERL 'test tag T_ALL_INITIAL_FILES' ' |
0dc06212 MH |
63 | |
64 | test_cmp_branch_tree T_ALL_INITIAL_FILES | |
65 | ||
66 | ' | |
67 | ||
06eaaa78 | 68 | test_expect_failure PERL 'test tag T_ALL_INITIAL_FILES_BUT_ONE' ' |
0dc06212 MH |
69 | |
70 | test_cmp_branch_tree T_ALL_INITIAL_FILES_BUT_ONE | |
71 | ||
72 | ' | |
73 | ||
06eaaa78 | 74 | test_expect_failure PERL 'test tag T_MIXED' ' |
0dc06212 MH |
75 | |
76 | test_cmp_branch_tree T_MIXED | |
77 | ||
78 | ' | |
79 | ||
80 | ||
81 | test_done |