alandefreitas
0ed09e59d9
Fix zlib warnings
...
fix #2461
2022-06-22 15:06:23 -03:00
alandefreitas
925043e1e8
Update Beast zlib streams
...
fix #2439
2022-06-03 17:45:32 -03:00
JackyYin
ca824f607c
Update zlib from 1.2.11 to 1.2.12
...
fix #2439
Because there is a CVE issue impact zlib before 1.2.12,
update zlib to avoid any related problems.
Please check the link below for detailed CVE information:
https://access.redhat.com/security/cve/CVE-2018-25032
2022-06-03 17:43:42 -03:00
Vinnie Falco
6c9e9ea243
Tests are fat binaries
2022-05-21 22:12:13 -07:00
Richard Hodges
355dcfe502
Add individual tests to CMake workflow
...
close #2350
2021-12-09 14:27:18 +01:00
Richard Hodges
fae4c0e3c2
Parenthesise all uses of min() and max()
2021-03-16 10:02:47 +01:00
Vinnie Falco
9bb4adf21b
Use regular throw in test
2019-12-08 08:31:39 -08:00
AeroStun
d895906bcc
Refactor zlib tests and fix typo:
...
close #1744
* Fixed typo in enum name
* Added missing zlib error enumerator
* Marked caveat in zlib impl to avoid future confusion
* Created Compressor/Decompressor abstractions in Beast.zlib tests
* Applied abstractions on Beast.zlib tests
* Workaround Travis-CI' 10min silence timeout
* Add test for Beast.zlib's need_dict error
* Avoid breaking user-code dependant on deprecated enumerator interface
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com >
2019-11-02 08:29:30 -07:00
Vinnie Falco
9f468ec1c1
Use automatically deduced return types for all async operations:
...
C++14 or later is required to support completion tokens that use
per-operation return type deduction. For C++11, a completion
token's async_result specialisation must still provide the nested
typedef `return_type`.
2019-10-31 06:47:22 -07:00
AeroStun
37f75773ef
Added missing error handling in deflate stream test
...
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com >
2019-10-07 12:46:39 -07:00
AeroStun
dbdf49e313
Added missing header inclusions in deflate stream test
...
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com >
2019-10-07 12:46:39 -07:00
AeroStun
5984212e77
Silence integer narrowing in inflate stream tests
...
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
2ce0a10a01
Add a known string to the inflate matrix
...
This makes coverage slightly more stable coverage and covers some
additional lines.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
c76ef3bf31
Test flush after emitting a dist code
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
fd57b0a73d
Test for match length exceeding lookahead in deflate stream
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
3d9ee6acee
Add test for flush when literal buffer is full
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
85ab7a3fd0
Add test for partial flush in deflate stream
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
01c200d2ef
Add test checking for writes into a stream in finished state
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
d1ff4405aa
Add test for flush::trees with uncompressed strategy
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
0b8c285bb7
Add test for flush::trees with fixed Huffman strategy
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
3b585f660c
Add excess data inflate test
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
610a2681e4
Throw on invalid argument
...
This condition is a programmer error, so reporting it as a regular
error is confusing.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
11ee655f97
Expand deflate matrix to check for different memLevel values
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
8ee65054a6
Add success test cases from zlib test suite
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Damian Jarek
b0aa3df714
Import more failure test cases from zlib test suite
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Damian Jarek
5937c06cd0
Add test for invalid inflate stream settings
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Damian Jarek
4be185eb2b
Add test for invalid deflate stream settings
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Damian Jarek
84bf4c5362
Add failure test cases from zlib's inflate test suite
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Vinnie Falco
61fcd9ef6f
Refactor Jamfiles to work with release layout
2019-03-24 09:18:02 -07:00
Vinnie Falco
b38901887b
cmake: Use static libs to speed up builds
2019-03-23 17:50:38 -07:00
Damian Jarek
222dcf7b18
Jamfile cleanup:
...
- Don't set the global link settings (`<link>`) to avoid dependency
ordering issues in the future.
- Allow the user to decide on the link settings for dependencies
(filesystem/coroutine).
- Make dependencies in examples explicit.
- Remove dependency of examples on Boost.Filesystem (was not used there).
- Deduplicate build settings.
- Speed up test compilation by avoiding rebuilding of main test file.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-03-21 17:23:49 +01:00
Vinnie Falco
955354b9dd
Enable split Beast compilation for tests
2019-02-22 17:27:27 -08:00
Vinnie Falco
6ada618c12
Check BOOST_NO_CXX11_THREAD_LOCAL
2019-02-21 11:09:02 -08:00
Vinnie Falco
cf06a8dd6a
Adjust CI scripts for superproject changes
2018-12-19 20:59:19 -08:00
Vinnie Falco
c18f3f0ef1
Rename to _experimental directory
2018-11-12 06:52:39 -08:00
Vinnie Falco
0f3696f2ec
Unit test framework is experimental
2018-11-11 13:56:05 -08:00
luz.paz
f3212eba48
Fix some typos:
...
fix #1255
Found via `codespell -q 3 -L uint,te,tim --skip="./test/extern/zlib*,./example/http/client/crawl*"`
2018-10-07 10:35:12 -07:00
Vinnie Falco
e39e4c73bf
Rename Cmake variables for clarity
2017-10-30 12:35:56 -07:00
Vinnie Falco
42679ee0bc
Tidy up project folders in CMakeLists.txt
2017-10-30 12:35:55 -07:00
Vinnie Falco
1e412715b1
Use unit-test subtree
2017-10-15 09:00:07 -07:00
Vinnie Falco
2ac6936312
Fix zlib symbol conflicts
...
fix #808
2017-10-07 13:59:04 -07:00
Vinnie Falco
387d68f336
Reorder define test macro params
2017-08-04 19:02:12 -07:00
Vinnie Falco
2567f49fb5
Rename test macros
2017-08-04 19:02:12 -07:00
Vinnie Falco
444ef321a5
Remove unused test header
2017-08-04 19:02:07 -07:00
Vinnie Falco
7b90ff852d
Faster zlib tests
2017-07-31 19:02:48 -07:00
Vinnie Falco
b0d7bc2e86
Add bench-zlib
2017-07-31 19:02:47 -07:00
Vinnie Falco
030f5eef87
Move extras/ to test/
2017-07-31 19:02:46 -07:00
Vinnie Falco
809e822789
Refactor test build scripts
2017-07-29 00:26:05 -07:00