@@ -15,13 +15,13 @@ test_expect_success 'test capability advertisement' '
1515 EOF
1616
1717 git serve --advertise-capabilities >out &&
18- test-pkt-line unpack <out >actual &&
18+ test-tool pkt-line unpack <out >actual &&
1919 test_cmp actual expect
2020'
2121
2222test_expect_success ' stateless-rpc flag does not list capabilities' '
2323 # Empty request
24- test-pkt-line pack >in <<-EOF &&
24+ test-tool pkt-line pack >in <<-EOF &&
2525 0000
2626 EOF
2727 git serve --stateless-rpc >out <in &&
@@ -33,7 +33,7 @@ test_expect_success 'stateless-rpc flag does not list capabilities' '
3333'
3434
3535test_expect_success ' request invalid capability' '
36- test-pkt-line pack >in <<-EOF &&
36+ test-tool pkt-line pack >in <<-EOF &&
3737 foobar
3838 0000
3939 EOF
@@ -42,7 +42,7 @@ test_expect_success 'request invalid capability' '
4242'
4343
4444test_expect_success ' request with no command' '
45- test-pkt-line pack >in <<-EOF &&
45+ test-tool pkt-line pack >in <<-EOF &&
4646 agent=git/test
4747 0000
4848 EOF
@@ -51,7 +51,7 @@ test_expect_success 'request with no command' '
5151'
5252
5353test_expect_success ' request invalid command' '
54- test-pkt-line pack >in <<-EOF &&
54+ test-tool pkt-line pack >in <<-EOF &&
5555 command=foo
5656 agent=git/test
5757 0000
@@ -71,7 +71,7 @@ test_expect_success 'setup some refs and tags' '
7171'
7272
7373test_expect_success ' basics of ls-refs' '
74- test-pkt-line pack >in <<-EOF &&
74+ test-tool pkt-line pack >in <<-EOF &&
7575 command=ls-refs
7676 0000
7777 EOF
@@ -88,12 +88,12 @@ test_expect_success 'basics of ls-refs' '
8888 EOF
8989
9090 git serve --stateless-rpc <in >out &&
91- test-pkt-line unpack <out >actual &&
91+ test-tool pkt-line unpack <out >actual &&
9292 test_cmp actual expect
9393'
9494
9595test_expect_success ' basic ref-prefixes' '
96- test-pkt-line pack >in <<-EOF &&
96+ test-tool pkt-line pack >in <<-EOF &&
9797 command=ls-refs
9898 0001
9999 ref-prefix refs/heads/master
@@ -108,12 +108,12 @@ test_expect_success 'basic ref-prefixes' '
108108 EOF
109109
110110 git serve --stateless-rpc <in >out &&
111- test-pkt-line unpack <out >actual &&
111+ test-tool pkt-line unpack <out >actual &&
112112 test_cmp actual expect
113113'
114114
115115test_expect_success ' refs/heads prefix' '
116- test-pkt-line pack >in <<-EOF &&
116+ test-tool pkt-line pack >in <<-EOF &&
117117 command=ls-refs
118118 0001
119119 ref-prefix refs/heads/
@@ -128,12 +128,12 @@ test_expect_success 'refs/heads prefix' '
128128 EOF
129129
130130 git serve --stateless-rpc <in >out &&
131- test-pkt-line unpack <out >actual &&
131+ test-tool pkt-line unpack <out >actual &&
132132 test_cmp actual expect
133133'
134134
135135test_expect_success ' peel parameter' '
136- test-pkt-line pack >in <<-EOF &&
136+ test-tool pkt-line pack >in <<-EOF &&
137137 command=ls-refs
138138 0001
139139 peel
@@ -149,12 +149,12 @@ test_expect_success 'peel parameter' '
149149 EOF
150150
151151 git serve --stateless-rpc <in >out &&
152- test-pkt-line unpack <out >actual &&
152+ test-tool pkt-line unpack <out >actual &&
153153 test_cmp actual expect
154154'
155155
156156test_expect_success ' symrefs parameter' '
157- test-pkt-line pack >in <<-EOF &&
157+ test-tool pkt-line pack >in <<-EOF &&
158158 command=ls-refs
159159 0001
160160 symrefs
@@ -170,12 +170,12 @@ test_expect_success 'symrefs parameter' '
170170 EOF
171171
172172 git serve --stateless-rpc <in >out &&
173- test-pkt-line unpack <out >actual &&
173+ test-tool pkt-line unpack <out >actual &&
174174 test_cmp actual expect
175175'
176176
177177test_expect_success ' sending server-options' '
178- test-pkt-line pack >in <<-EOF &&
178+ test-tool pkt-line pack >in <<-EOF &&
179179 command=ls-refs
180180 server-option=hello
181181 server-option=world
@@ -190,14 +190,14 @@ test_expect_success 'sending server-options' '
190190 EOF
191191
192192 git serve --stateless-rpc <in >out &&
193- test-pkt-line unpack <out >actual &&
193+ test-tool pkt-line unpack <out >actual &&
194194 test_cmp actual expect
195195'
196196
197197test_expect_success ' unexpected lines are not allowed in fetch request' '
198198 git init server &&
199199
200- test-pkt-line pack >in <<-EOF &&
200+ test-tool pkt-line pack >in <<-EOF &&
201201 command=fetch
202202 0001
203203 this-is-not-a-command
0 commit comments