3 test_description='git p4 retrieve job info'
7 test_expect_success 'start p4d' '
11 test_expect_success 'add p4 jobs' '
13 p4_add_job TESTJOB-A &&
18 test_expect_success 'add p4 files' '
19 client_view "//depot/... //client/..." &&
24 p4 submit -d "Add file 1"
28 test_expect_success 'check log message of changelist with no jobs' '
29 client_view "//depot/... //client/..." &&
30 test_when_finished cleanup_git &&
34 git p4 clone --use-client-spec --destination="$git" //depot@all &&
35 cat >expect <<-\EOF &&
37 [git-p4: depot-paths = "//depot/": change = 1]
40 git log --format=%B >actual &&
41 test_cmp expect actual
45 test_expect_success 'add TESTJOB-A to change 1' '
52 test_expect_success 'check log message of changelist with one job' '
53 client_view "//depot/... //client/..." &&
54 test_when_finished cleanup_git &&
58 git p4 clone --use-client-spec --destination="$git" //depot@all &&
59 cat >expect <<-\EOF &&
62 [git-p4: depot-paths = "//depot/": change = 1]
65 git log --format=%B >actual &&
66 test_cmp expect actual
70 test_expect_success 'add TESTJOB-B to change 1' '
77 test_expect_success 'check log message of changelist with more jobs' '
78 client_view "//depot/... //client/..." &&
79 test_when_finished cleanup_git &&
83 git p4 clone --use-client-spec --destination="$git" //depot@all &&
84 cat >expect <<-\EOF &&
86 Jobs: TESTJOB-A TESTJOB-B
87 [git-p4: depot-paths = "//depot/": change = 1]
90 git log --format=%B >actual &&
91 test_cmp expect actual
95 test_expect_success 'kill p4d' '