Vollstrecker
dc35cccfa7
CMake: Name tests consistently.
2026-01-12 11:10:03 -08:00
Vollstrecker
bac2e2d457
CMake: Fix typos in test/CMakeLists.txt.
2025-12-06 17:39:45 -08:00
Vollstrecker
5a82f71ed1
Use generated zconf.h in cmake build.
...
This restores the inclusion of the local zconf.h (double quoted)
in normal usage.
2025-02-18 15:00:15 -08:00
Vollstrecker
2c62f8885c
CMake: Clean up spaces in required versions.
2025-01-31 20:02:26 -08:00
Vollstrecker
5a31e529bc
CMake: Add the tested version of cmake (3.31).
...
Per @ClausKlein suggestion.
2025-01-31 20:02:26 -08:00
Vollstrecker
8b8a124eb4
CMake: Add cmake-format.yaml and reformat the cmake files.
2025-01-31 20:02:26 -08:00
Vollstrecker
7667ca5593
CMake: Re-enable Cygwin and MSYS tests.
2025-01-31 20:02:26 -08:00
Vollstrecker
c31099862f
CMake: Add one more alias for llvm-cov.
2025-01-31 20:02:26 -08:00
Vollstrecker
e843c631d6
CMake: Refine tests.
2025-01-31 20:02:26 -08:00
Vollstrecker
a5db296ace
CMake: Increase CMake version to 3.10 for tests.
...
And correct package name to ZLIB.
2025-01-31 19:59:10 -08:00
Vollstrecker
3b613563d3
CMake: Prefix coverage test name with zlib.
2025-01-31 19:59:10 -08:00
Vollstrecker
93457606bf
CMake: Add inflate coverage test.
2025-01-31 19:59:10 -08:00
Vollstrecker
27198174ca
CMake: Correct target to minizip.
2025-01-31 19:59:10 -08:00
Vollstrecker
5163cb6d3b
CMake: Move testing into test/CMakeLists.txt.
...
Use the right environment to find the libraries.
2025-01-31 19:59:10 -08:00
Vollstrecker
920385267f
CMake: Fix parallel testing.
2025-01-31 19:59:10 -08:00
Vollstrecker
d7afcaa2be
CMake: Shorten test names.
2025-01-31 19:59:10 -08:00
Vollstrecker
fd00a94838
CMake: Disable MinGW and Cygwin tests.
2025-01-31 19:59:10 -08:00
Vollstrecker
01ef679251
CMake: Pass CC and CFLAGS to the tests.
2025-01-31 19:59:10 -08:00
Vollstrecker
6084c550c3
CMake: Set the platform and configuration for the tests.
2025-01-31 19:59:10 -08:00
Vollstrecker
1fce5f2cdf
CMake: Add more tests.
2025-01-31 19:59:10 -08:00
Vollstrecker
7dc2b78206
CMake: Add test for usage with find_package.
2025-01-31 19:59:10 -08:00
Mark Adler
ceadaf28df
Fix test/infcover.c function prototype when ZLIB_CONST defined.
2024-07-11 09:22:47 -07:00
Mark Adler
fd5fe8b17e
Further address Microsoft deprecation warnings.
2024-02-09 20:11:54 -08:00
Mark Adler
1bff6f0fd5
Avoid signedness change warning in test/minigzip.c.
2024-02-09 20:11:39 -08:00
Mark Adler
985a62d118
Address Microsoft deprecation warnings.
2024-02-08 18:45:49 -08:00
Mark Adler
81e7c38608
Correct printf formats in test/infcover.c to %zu.
2024-02-07 14:38:57 -08:00
Mark Adler
915a3d5b7b
Avoid use of snprintf() in test/minigzip.c.
...
It was being used only as a safe version of strcpy(). Instead, use
a safe alternative to strcpy().
2024-02-06 18:27:31 -08:00
Paul Marquess
4b98fd39c8
Enable fileno() for POSIX system in minigzip.c.
2024-02-05 23:51:31 -08:00
Cameron Cawley
4de0b054a5
Improve portability to RISC OS.
2024-01-23 06:27:49 -08:00
Dimitri Papadopoulos
fe41d18921
Correct typos in source code.
2024-01-17 16:43:38 -08:00
Xin LI
bd9c329c10
Make internal functions static in the test code.
...
To avoid warnings when building with -Wmissing-prototypes.
2023-09-03 21:50:07 -07:00
Mark Adler
b8a8373ec1
Fix test/example.c to work with FORCE_STORED.
2023-04-18 00:08:44 -07:00
Mark Adler
3365464851
Fix warnings on test/infcover.c.
2023-04-17 20:21:58 -07:00
Mark Adler
e9d5486e66
Remove K&R function definitions from zlib.
...
C2X has removed K&R definitions from the C function syntax.
Though the standard has not yet been approved, some high-profile
compilers are now issuing warnings when such definitions are
encountered.
2023-04-15 21:17:31 -07:00
Mark Adler
2d6d59e472
Avoid conversion warning in minigzip.c.
2022-10-01 16:52:35 -07:00
Mark Adler
441a2ac602
Have build test report library version if it doesn't match zlib.h.
2022-05-26 08:47:51 -07:00
Mark Adler
0d36ec47f3
Don't bother computing check value after successful inflateSync().
...
inflateSync() is used to skip invalid deflate data, which means
that the check value that was being computed is no longer useful.
This commit turns off the check value computation, and furthermore
allows a successful return if the compressed data terminated in a
graceful manner. This commit also fixes a bug in the case that
inflateSync() is used before a header is ever processed. In that
case, there is no knowledge of a trailer, so the remainder is
treated as raw.
2019-01-02 20:40:40 -08:00
Mark Adler
2fa463bacf
zlib 1.2.9
2016-12-31 23:37:10 -08:00
Mark Adler
8f147c3d12
Avoid some random compiler warnings on various platforms.
2016-12-30 23:42:10 -08:00
Mark Adler
fb26fc427f
Allow minigzip to compile when testing with ./configure --solo.
2016-12-30 22:04:22 -08:00
Mark Adler
79b5c5acf0
Use snprintf() for later versions of Microsoft C.
2016-12-30 17:13:31 -08:00
Mark Adler
ca50ebd4df
Create z_size_t and z_ssize_t types.
...
Normally these are set to size_t and ssize_t. But if they do not
exist, then they are set to the smallest integer type that can
contain a pointer. size_t is unsigned and ssize_t is signed.
2016-12-04 07:48:48 -08:00
Mark Adler
7d6956b6a1
Make globals in examples local to compilation unit.
2016-10-14 13:10:54 -07:00
Mark Adler
0b22337126
Avoid use of reallocf() in test/infcover.c.
2015-07-28 21:55:09 -07:00
Mark Adler
283520baf7
Fix bug in test/example.c where error code not saved.
2014-07-02 16:34:22 -07:00
Mark Adler
62d6112a79
Clean up the usage of z_const and respect const usage within zlib.
...
This patch allows zlib to compile cleanly with the -Wcast-qual gcc
warning enabled, but only if ZLIB_CONST is defined, which adds
const to next_in and msg in z_stream and in the in_func prototype.
A --const option is added to ./configure which adds -DZLIB_CONST
to the compile flags, and adds -Wcast-qual to the compile flags
when ZLIBGCCWARN is set in the environment.
2012-08-13 00:02:40 -07:00
Mark Adler
f947435b30
Use _snprintf for snprintf under Microsoft C in test/minigzip.c.
2012-06-03 16:28:40 -07:00
Mark Adler
c58f7ab28d
Replace use of unsafe string functions with snprintf if available.
...
This avoids warnings in OpenBSD that apparently can't be turned
off whenever you link strcpy, strcat, or sprintf. When snprintf
isn't available, the use of the "unsafe" string functions has
always in fact been safe, since the lengths are all checked before
those functions are called.
We do not use strlcpy or strlcat, since they are not (yet) found on
all systems. snprintf on the other hand is part of the C standard
library and is very common.
2012-05-02 23:18:38 -07:00
Mark Adler
41a18e1d7e
Fix bug in test/minigzip.c for configure --solo.
2012-03-03 22:43:15 -08:00
Mark Adler
fbac04f666
Clean up infcover.c.
2011-11-30 18:19:05 -10:00