]> git.ipfire.org Git - thirdparty/git.git/commit
t/interop: allow per-version make options
authorJeff King <peff@peff.net>
Wed, 11 Sep 2024 06:10:09 +0000 (02:10 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2024 20:27:36 +0000 (13:27 -0700)
commit22ef5f02a820d3f610796ffab0b2d30a7d9d6324
treeaf17f0d8550c3603b7d59a0f12d5d6e5deaf6779
parent39bf06adf96da25b87c9aa7d35a32ef3683eb4a4
t/interop: allow per-version make options

Building older versions of Git may require tweaking some build knobs. In
particular, very old versions of Git will fail to build with recent
OpenSSL, because the bignum type switched from a struct to a pointer.

The i5500 interop test uses Git v1.0.0 by default, which triggers this
problem. You can work around it by setting NO_OPENSSL in your
GIT_TEST_MAKE_OPTS variable. But there are two downsides:

  1. You have to know to do this, and it's not at all obvious.

  2. That sets the options for _all_ versions of Git that we build. And
     it's possible for two versions to require conflicting knobs. E.g.,
     building with "make NO_OPENSSL=Nope OPENSSL_SHA1=Yes" causes
     imap-send.c to barf, because it declares a fallback typedef for SSL.
     This is something we may want to fix, but of course many historical
     versions are affected, and the interop scripts should be flexible
     enough to build everything.

So let's introduce per-version make options, along with the ability for
scripts to specify knobs that match their default versions. That should
make everything build out of the box, but also allow testers flexibility
if they are testing interoperability between non-default versions.

We'll set NO_OPENSSL by default for v1.0.0 in i5500. It doesn't have to
worry about the conflict with OPENSSL_SHA1 because imap-send did not
exist back then (but if it did, it could also just explicitly use a
different hash implementation).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/interop/README
t/interop/i5500-git-daemon.sh
t/interop/interop-lib.sh