1#!/bin/sh
2
3# A description of the repository used for this test can be found in
4# t9602/README.
5
6test_description='git cvsimport handling of branches and tags'
7. ./lib-cvs.sh
8
9CVSROOT="$TEST_DIRECTORY"/t9602/cvsroot
10export CVSROOT
11
12test_expect_success 'import module' '
13
14 git cvsimport -C module-git module
15
16'
17
18test_expect_success 'test branch master' '
19
20 test_cmp_branch_tree master
21
22'
23
24test_expect_success 'test branch vendorbranch' '
25
26 test_cmp_branch_tree vendorbranch
27
28'
29
30test_expect_failure 'test branch B_FROM_INITIALS' '
31
32 test_cmp_branch_tree B_FROM_INITIALS
33
34'
35
36test_expect_failure 'test branch B_FROM_INITIALS_BUT_ONE' '
37
38 test_cmp_branch_tree B_FROM_INITIALS_BUT_ONE
39
40'
41
42test_expect_failure 'test branch B_MIXED' '
43
44 test_cmp_branch_tree B_MIXED
45
46'
47
48test_expect_success 'test branch B_SPLIT' '
49
50 test_cmp_branch_tree B_SPLIT
51
52'
53
54test_expect_failure 'test tag vendortag' '
55
56 test_cmp_branch_tree vendortag
57
58'
59
60test_expect_success 'test tag T_ALL_INITIAL_FILES' '
61
62 test_cmp_branch_tree T_ALL_INITIAL_FILES
63
64'
65
66test_expect_failure 'test tag T_ALL_INITIAL_FILES_BUT_ONE' '
67
68 test_cmp_branch_tree T_ALL_INITIAL_FILES_BUT_ONE
69
70'
71
72test_expect_failure 'test tag T_MIXED' '
73
74 test_cmp_branch_tree T_MIXED
75
76'
77
78
79test_done