-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-p4: submit test for auto-creating clientPath
Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
- Loading branch information
Pete Wyckoff
authored and
Junio C Hamano
committed
Dec 12, 2011
1 parent
0591cfa
commit c145225
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/sh | ||
|
||
test_description='git-p4 submit' | ||
|
||
. ./lib-git-p4.sh | ||
|
||
test_expect_success 'start p4d' ' | ||
start_p4d | ||
' | ||
|
||
test_expect_success 'init depot' ' | ||
( | ||
cd "$cli" && | ||
echo file1 >file1 && | ||
p4 add file1 && | ||
p4 submit -d "change 1" | ||
) | ||
' | ||
|
||
test_expect_success 'submit with no client dir' ' | ||
test_when_finished cleanup_git && | ||
"$GITP4" clone --dest="$git" //depot && | ||
( | ||
cd "$git" && | ||
echo file2 >file2 && | ||
git add file2 && | ||
git commit -m "git commit 2" && | ||
rm -rf "$cli" && | ||
git config git-p4.skipSubmitEdit true && | ||
"$GITP4" submit | ||
) | ||
' | ||
|
||
test_expect_success 'kill p4d' ' | ||
kill_p4d | ||
' | ||
|
||
test_done |