3 test_description='git p4 with server triggers'
7 test_expect_success 'start p4d' '
11 test_expect_success 'init depot' '
16 p4 submit -d "change 1" &&
19 p4 submit -d "change 2"
23 test_expect_success 'clone with extra info lines from verbose p4 trigger' '
24 test_when_finished cleanup_git &&
27 Triggers: p4triggertest-command command pre-user-change "echo verbose trigger"
31 p4 change -o | grep -s "verbose trigger"
33 git p4 clone --dest="$git" //depot/@all &&
41 test_expect_success 'import with extra info lines from verbose p4 trigger' '
42 test_when_finished cleanup_git &&
47 p4 submit -d "change 3"
51 Triggers: p4triggertest-command command pre-user-describe "echo verbose trigger"
55 p4 describe 1 | grep -s "verbose trigger"
57 git p4 clone --dest="$git" //depot/@all &&
69 test_expect_success 'submit description with extra info lines from verbose p4 change trigger' '
70 test_when_finished cleanup_git &&
73 Triggers: p4triggertest-command command pre-user-change "echo verbose trigger"
77 p4 change -o | grep -s "verbose trigger"
79 git p4 clone --dest="$git" //depot &&
82 git config git-p4.skipSubmitEdit true &&
85 git commit -m file4 &&
95 test_path_is_file file4
99 test_expect_success 'kill p4d' '