]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/test-wo-perl-prereq'
authorJunio C Hamano <gitster@pobox.com>
Wed, 16 Apr 2025 20:54:20 +0000 (13:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Apr 2025 20:54:20 +0000 (13:54 -0700)
"make test" used to have a hard dependency on (basic) Perl; tests
have been rewritten help environment with NO_PERL test the build as
much as possible.

* ps/test-wo-perl-prereq:
  t5703: refactor test to not depend on Perl
  t5316: refactor `max_chain()` to not depend on Perl
  t0210: refactor trace2 scrubbing to not use Perl
  t0021: refactor `generate_random_characters()` to not depend on Perl
  t/lib-httpd: refactor "one-time-perl" CGI script to not depend on Perl
  t/lib-t6000: refactor `name_from_description()` to not depend on Perl
  t/lib-gpg: refactor `sanitize_pgp()` to not depend on Perl
  t: refactor tests depending on Perl for textconv scripts
  t: refactor tests depending on Perl to print data
  t: refactor tests depending on Perl substitution operator
  t: refactor tests depending on Perl transliteration operator
  Makefile: stop requiring Perl when running tests
  meson: stop requiring Perl when tests are enabled
  t: adapt existing PERL prerequisites
  t: introduce PERL_TEST_HELPERS prerequisite
  t: adapt `test_readlink()` to not use Perl
  t: adapt `test_copy_bytes()` to not use Perl
  t: adapt character translation helpers to not use Perl
  t: refactor environment sanitization to not use Perl
  t: skip chain lint when PERL_PATH is unset

12 files changed:
1  2 
meson.build
t/helper/test-path-utils.c
t/t0610-reftable-basics.sh
t/t1006-cat-file.sh
t/t5400-send-pack.sh
t/t5510-fetch.sh
t/t5702-protocol-v2.sh
t/t5710-promisor-remote-capability.sh
t/t6300-for-each-ref.sh
t/t9350-fast-export.sh
t/test-lib-functions.sh
t/test-lib.sh

diff --cc meson.build
index 0b91a6ff9fe7a825af10d2f52342bf14821708ba,d6e27b236fa62fdbc21a22c345425487adc5db36..62fedf0da67de474ebffe320a5b8752efe2d83a6
@@@ -815,7 -772,7 +815,7 @@@ endi
  # features. It is optional if you want to neither execute tests nor use any of
  # these optional features.
  perl_required = get_option('perl')
- if get_option('tests') or get_option('gitweb').enabled() or 'netrc' in get_option('credential_helpers') or get_option('docs') != []
 -if get_option('gitweb').enabled() or 'netrc' in get_option('credential_helpers')
++if get_option('gitweb').enabled() or 'netrc' in get_option('credential_helpers') or get_option('docs') != []
    perl_required = true
  endif
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/test-lib.sh
Simple merge