3 test_description
='git p4 with server triggers'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'start p4d' '
12 test_expect_success
'init depot' '
17 p4 submit -d "change 1" &&
20 p4 submit -d "change 2"
24 test_expect_success
'clone with extra info lines from verbose p4 trigger' '
25 test_when_finished cleanup_git &&
28 Triggers: p4triggertest-command command pre-user-change "echo verbose trigger"
32 p4 change -o | grep -s "verbose trigger"
34 git p4 clone --dest="$git" //depot/@all &&
42 test_expect_success
'import with extra info lines from verbose p4 trigger' '
43 test_when_finished cleanup_git &&
48 p4 submit -d "change 3"
52 Triggers: p4triggertest-command command pre-user-describe "echo verbose trigger"
56 p4 describe 1 | grep -s "verbose trigger"
58 git p4 clone --dest="$git" //depot/@all &&
70 test_expect_success
'submit description with extra info lines from verbose p4 change trigger' '
71 test_when_finished cleanup_git &&
74 Triggers: p4triggertest-command command pre-user-change "echo verbose trigger"
78 p4 change -o | grep -s "verbose trigger"
80 git p4 clone --dest="$git" //depot &&
83 git config git-p4.skipSubmitEdit true &&
86 git commit -m file4 &&
96 test_path_is_file file4