@matheusbsbs / matheus-bagliano / commits / 41a5c70f2c
Fork 0

test-suite: adding a test for fast-export with tag variants

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Erik Faye-Lund committed Mar 23, 2009 at 12:53 UTC 41a5c70f2caf5c22859574f0503afbdb3728a89c
1 file changed +16
t/t9301-fast-export.sh
+16
@@ -259,4 +259,20 @@ test_expect_success 'cope with tagger-less tags' '
259
260 '
261
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 +
278 test_done