Some tests make a hard-coded call to the libtest binary in the precheck
step. With bundle builds the binary changed name and calling convention.
Before this patch these tests failed the pre-check and did not run for
the 5 affected tests: 518, 537, 678, 1517, 1960
Fixing, e.g.:
```
test 1517 SKIPPED: precheck command error
```
https://github.com/curl/curl/actions/runs/
16611990422/job/
46996698437?pr=18039#step:13:4832
It also fixes builds with a custom `CURL_DIRSUFFIX` set.
Follow-up to
2c27a67daa1b76859c18d63e4e1f528db05b5e13 #17590
Follow-up to
71cf0d1fca9e1f53524e1545ef0c08d174458d80 #14772
Closes #18099
# precheck is a command line to run before the test, to see if we can execute
# the test or not
<precheck>
-./libtest/lib%TESTNUMBER check
+%LIBTESTS lib%TESTNUMBER check
</precheck>
<name>
# Client-side
<client>
<precheck>
-./libtest/lib%TESTNUMBER check
+%LIBTESTS lib%TESTNUMBER check
</precheck>
<server>
http
# precheck is a command line to run before the test, to see if we can execute
# the test or not
<precheck>
-./libtest/lib%TESTNUMBER check
+%LIBTESTS lib%TESTNUMBER check
</precheck>
<name>
# precheck is a command line to run before the test, to see if we can execute
# the test or not
<precheck>
-./libtest/lib%TESTNUMBER check
+%LIBTESTS lib%TESTNUMBER check
</precheck>
<name>
</command>
# Ensure that we're running on localhost because we're checking the host name
<precheck>
-./libtest/lib%TESTNUMBER check
+%LIBTESTS lib%TESTNUMBER check
</precheck>
</client>
$$thing =~ s/${prefix}CERTDIR/./g;
$$thing =~ s/${prefix}USER/$USER/g;
$$thing =~ s/${prefix}DEV_NULL/$dev_null/g;
+ my $libtests = $LIBDIR . 'libtests' . exe_ext('TOOL');
+ $$thing =~ s/${prefix}LIBTESTS/$libtests/g;
$$thing =~ s/${prefix}SSHSRVMD5/$SSHSRVMD5/g;
$$thing =~ s/${prefix}SSHSRVSHA256/$SSHSRVSHA256/g;