]> git.99rst.org Git - git.git/commit
t: adapt `test_copy_bytes()` to not use Perl
authorPatrick Steinhardt <redacted>
Thu, 3 Apr 2025 05:05:55 +0000 (07:05 +0200)
committerJunio C Hamano <redacted>
Mon, 7 Apr 2025 21:47:37 +0000 (14:47 -0700)
commit01486b5de886af06c5bbfb097736ec97b86bacda
treeb1f598517a9e08f52d7a5dc993f426ae6678014f
parent2df6710097cf7abe07e4e3b42955cc881ca7aa22
t: adapt `test_copy_bytes()` to not use Perl

The `test_copy_bytes()` helper function copies up to N bytes from stdin
to stdout. This is implemented using Perl, but it can be trivially
adapted to instead use dd(1).

Refactor the helper accordingly, which allows a bunch of tests to pass
when Perl is not available.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/test-lib-functions.sh
git clone https://git.99rst.org/PROJECT