Skip to content

Commit 1092f6b

Browse files
kusmagitster
authored andcommitted
test-suite: adding a test for fast-export with tag variants
Signed-off-by: Erik Faye-Lund <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3bd1bb3 commit 1092f6b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

t/t9301-fast-export.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,20 @@ test_expect_success 'cope with tagger-less tags' '
259259
260260
'
261261

262+
test_expect_success 'set-up a few more tags for tag export tests' '
263+
git checkout -f master &&
264+
HEAD_TREE=`git show -s --pretty=raw HEAD | grep tree | sed "s/tree //"` &&
265+
git tag tree_tag -m "tagging a tree" $HEAD_TREE &&
266+
git tag -a tree_tag-obj -m "tagging a tree" $HEAD_TREE &&
267+
git tag tag-obj_tag -m "tagging a tag" tree_tag-obj &&
268+
git tag -a tag-obj_tag-obj -m "tagging a tag" tree_tag-obj
269+
'
270+
271+
# NEEDSWORK: not just check return status, but validate the output
272+
# two tests commented out due to crash and thus unreliable return code
273+
test_expect_failure 'tree_tag' 'git fast-export tree_tag'
274+
test_expect_failure 'tree_tag-obj' 'git fast-export tree_tag-obj'
275+
test_expect_failure 'tag-obj_tag' 'git fast-export tag-obj_tag'
276+
test_expect_failure 'tag-obj_tag-obj' 'git fast-export tag-obj_tag-obj'
277+
262278
test_done

0 commit comments

Comments
 (0)