git-commit-vandalism/t/t5411
Ævar Arnfjörð Bjarmason 64f0109f17 test-lib-functions: use test-tool for [de]packetize()
The shell+perl "[de]packetize()" helper functions were added in
4414a15002 (t/lib-git-daemon: add network-protocol helpers,
2018-01-24), and around the same time we added the "pkt-line" helper
in 74e7002961 (test-pkt-line: introduce a packet-line test helper,
2018-03-14).

For some reason it seems we've mostly used the shell+perl version
instead of the helper since then. There were discussions around
88124ab263 (test-lib-functions: make packetize() more efficient,
2020-03-27) and cacae4329f (test-lib-functions: simplify packetize()
stdin code, 2020-03-29) to improve them and make them more efficient.

There was one good reason to do so, we needed an equivalent of
"test-tool pkt-line pack", but that command wasn't capable of handling
input with "\n" (a feature) or "\0" (just because it happens to be
printf-based under the hood).

Let's add a "pkt-line-raw" helper for that, and expose is at a
packetize_raw() to go with the existing packetize() on the shell
level, this gives us the smallest amount of change to the tests
themselves.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2021-07-19 11:53:50 -07:00
..
common-functions.sh Merge branch 'jx/t5411-unique-filenames' 2021-02-17 17:21:42 -08:00
once-0010-report-status-v1.sh test-lib-functions: use test-tool for [de]packetize() 2021-07-19 11:53:50 -07:00
test-0000-standard-git-push.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0001-standard-git-push--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0002-pre-receive-declined.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0003-pre-receive-declined--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0010-proc-receive-settings.sh receive-pack: new config receive.procReceiveRefs 2020-08-27 12:47:47 -07:00
test-0011-no-hook-error.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0012-no-hook-error--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0013-bad-protocol.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0014-bad-protocol--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0020-report-ng.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0021-report-ng--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0022-report-unexpect-ref.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0023-report-unexpect-ref--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0024-report-unknown-ref.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0025-report-unknown-ref--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0026-push-options.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0027-push-options--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0030-report-ok.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0031-report-ok--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0032-report-with-options.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0033-report-with-options--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0034-report-ft.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0035-report-ft--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0036-report-multi-rewrite-for-one-ref.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0037-report-multi-rewrite-for-one-ref--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0038-report-mixed-refs.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0039-report-mixed-refs--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0040-process-all-refs.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0041-process-all-refs--porcelain.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00
test-0050-proc-receive-refs-with-modifiers.sh t5411: refactor check of refs using test_cmp_refs 2021-01-22 13:09:06 -08:00