Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git p4: add test for tag import/export enabled via config
author
Luke Diamand
<luke@diamand.org>
Fri, 11 May 2012 06:25:16 +0000
(07:25 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 11 May 2012 21:21:38 +0000
(14:21 -0700)
This adds a test for git p4 to check it can import/export tags
when enabled via a config variable rather than on the command
line.
Signed-off-by: Luke Diamand <luke@diamand.org>
Acked-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9811-git-p4-label-import.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
00855b6
)
diff --git
a/t/t9811-git-p4-label-import.sh
b/t/t9811-git-p4-label-import.sh
index fb00ffab240ddc0270ae97ac202bd397f78e2c6c..095238fffe2757a5bf1c5c2f877791117fbf09a3 100755
(executable)
--- a/
t/t9811-git-p4-label-import.sh
+++ b/
t/t9811-git-p4-label-import.sh
@@
-195,6
+195,26
@@
test_expect_success 'tag that cannot be exported' '
)
'
)
'
+test_expect_success 'use git config to enable import/export of tags' '
+ git p4 clone --verbose --dest="$git" //depot@all &&
+ (
+ cd "$git" &&
+ git config git-p4.exportLabels true &&
+ git config git-p4.importLabels true &&
+ git tag CFG_A_GIT_TAG &&
+ git p4 rebase --verbose &&
+ git p4 submit --verbose &&
+ git tag &&
+ git tag | grep TAG_F1_1
+ ) &&
+ (
+ cd "$cli" &&
+ p4 labels &&
+ p4 labels | grep CFG_A_GIT_TAG
+ )
+'
+
+
test_expect_success 'kill p4d' '
kill_p4d
'
test_expect_success 'kill p4d' '
kill_p4d
'