curl-curl/tests
Viktor Szakats f477f3efc3
tests/data: support using native newlines on disk, drop .gitattributes
Data files no longer depend on mixed newline styles. Before this
patch the harness still assumed data files to use LF newlines,
ensured by `.gitattribute` and distributing sources with LF newlines.

To allow using platform native newlines (CRLF on Windows typically),
update the test harness to support data files with any newline style
on disk. And delete `.gitattributes`.

Fix to:
- load original data files (from test/data) so that their newline-style
  doesn't matter on the checked out source repo, meaning it works
  when its CRLF on Windows, just like any other file.
  (if a BOM slips in, it's caught by `spacecheck.pl` as binary content.)
- do the same in `util.py` used by `smbserver.py` (for test 1451).
- also fix `util.py` to use us-ascii encoding for data files, replacing utf-8.

Also:
- runtests: rework the stray CR checker to allow full CRLF data files,
  and keep warning for mixed newlines.

Follow-up to 904e7ecb66 #19347

Closes #19398
2025-11-10 14:21:34 +01:00
..
certs
cmake lib: stop overriding system printf symbols 2025-10-06 20:57:59 +02:00
data tests/data: support using native newlines on disk, drop .gitattributes 2025-11-10 14:21:34 +01:00
http pytest: skip H2 tests if feature missing from curl 2025-11-08 22:40:24 +01:00
libtest checksrc.pl: detect assign followed by more than one space 2025-11-05 15:18:28 +01:00
server tests/server: do not fall back to original data file in test2fopen() 2025-11-09 21:14:41 +01:00
tunit lib: stop overriding system printf symbols 2025-10-06 20:57:59 +02:00
unit checksrc.pl: detect assign followed by more than one space 2025-11-05 15:18:28 +01:00
.gitignore
allversions.pm
appveyor.pm
azure.pm
CMakeLists.txt tests: replace remaining CR bytes with the new macro %CR 2025-11-06 20:45:45 +01:00
config.in
configurehelp.pm.in
devtest.pl tests/data: support using native newlines on disk, drop .gitattributes 2025-11-10 14:21:34 +01:00
dictserver.py
directories.pm
ech_combos.py
ech_tests.sh tidy-up: formatting 2025-08-23 01:12:27 +02:00
ftpserver.pl tests: remove trailing spaces in server responses 2025-11-05 15:17:29 +01:00
getpart.pm tests/data: support using native newlines on disk, drop .gitattributes 2025-11-10 14:21:34 +01:00
globalconfig.pm tests: replace remaining CR bytes with the new macro %CR 2025-11-06 20:45:45 +01:00
http2-server.pl
http3-server.pl
http-server.pl
Makefile.am tests: replace remaining CR bytes with the new macro %CR 2025-11-06 20:45:45 +01:00
memanalyze.pl
negtelnetserver.py
nghttpx.conf
pathhelp.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
processhelp.pm processhelp.pm: log taskkill pid info, add debug envs, enable in CI 2025-11-10 02:00:17 +01:00
requirements.txt GHA: bump the pip-dependencies group across 2 directories with 3 updates 2025-11-02 17:10:39 +01:00
rtspserver.pl
runner.pm tests/data: support using native newlines on disk, drop .gitattributes 2025-11-10 14:21:34 +01:00
runtests.pl tests/data: support using native newlines on disk, drop .gitattributes 2025-11-10 14:21:34 +01:00
secureserver.pl
serverhelp.pm
servers.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
smbserver.py
sshhelp.pm
sshserver.pl
test745.pl perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
test971.pl
test1119.pl
test1132.pl
test1135.pl
test1139.pl curl_easy_setopt.md: add missing CURLOPT_POSTFIELDS 2025-10-20 08:50:02 +02:00
test1140.pl
test1165.pl
test1167.pl
test1173.pl
test1175.pl
test1177.pl
test1222.pl
test1275.pl
test1276.pl
test1477.pl
test1486.pl
test1488.pl
test1544.pl
test1707.pl
testcurl.pl perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
testutil.pm tests: replace remaining CR bytes with the new macro %CR 2025-11-06 20:45:45 +01:00
tftpserver.pl
util.py tests/data: support using native newlines on disk, drop .gitattributes 2025-11-10 14:21:34 +01:00
valgrind.pm
valgrind.supp