2009-02-23 05:08:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# A description of the repository used for this test can be found in
|
|
|
|
# t9602/README.
|
|
|
|
|
|
|
|
test_description='git cvsimport handling of branches and tags'
|
|
|
|
. ./lib-cvs.sh
|
|
|
|
|
2010-08-16 16:25:01 +00:00
|
|
|
setup_cvs_test_repository t9602
|
2009-02-23 05:08:14 +00:00
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_success PERL 'import module' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
git cvsimport -C module-git module
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_success PERL 'test branch master' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree master
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_success PERL 'test branch vendorbranch' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree vendorbranch
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_failure PERL 'test branch B_FROM_INITIALS' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree B_FROM_INITIALS
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_failure PERL 'test branch B_FROM_INITIALS_BUT_ONE' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree B_FROM_INITIALS_BUT_ONE
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_failure PERL 'test branch B_MIXED' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree B_MIXED
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_success PERL 'test branch B_SPLIT' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree B_SPLIT
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_failure PERL 'test tag vendortag' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree vendortag
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_success PERL 'test tag T_ALL_INITIAL_FILES' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree T_ALL_INITIAL_FILES
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_failure PERL 'test tag T_ALL_INITIAL_FILES_BUT_ONE' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree T_ALL_INITIAL_FILES_BUT_ONE
|
|
|
|
|
|
|
|
'
|
|
|
|
|
2010-08-13 20:40:13 +00:00
|
|
|
test_expect_failure PERL 'test tag T_MIXED' '
|
2009-02-23 05:08:14 +00:00
|
|
|
|
|
|
|
test_cmp_branch_tree T_MIXED
|
|
|
|
|
|
|
|
'
|
|
|
|
|
|
|
|
|
|
|
|
test_done
|