1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00
Commit Graph

418 Commits

Author SHA1 Message Date
bel
a6bc447564 Variables could be unused in unit test 2015-07-24 23:57:13 +02:00
bel
ff5d5c3db8 Add deleted ) in unit test 2015-07-24 23:53:13 +02:00
bel
7a3782455e Add type casts to unit test 2015-07-24 23:49:04 +02:00
bel
3d62777232 Port more unit tests to the new framework 2015-07-24 23:33:27 +02:00
bel
7010b979a7 Add unit test for internal option parsing 2015-07-24 23:28:33 +02:00
bel
b88591df5a Activate encoding unit test 2015-07-24 23:12:45 +02:00
bel
a77a97ec6c Add some unit tests for encoding 2015-07-24 23:09:44 +02:00
bel
884e539a88 Mark copyright of copied/adapted functions 2015-07-24 21:44:28 +02:00
bel
d5b93c7917 Fix unit test: mg_md5 returns lowercase ascii string 2015-07-21 21:31:15 +02:00
bel
5f622d38b2 Fix copy/paste error in unit test (mg_get_cookie returns length) 2015-07-21 21:29:05 +02:00
bel
18b0e46c03 New unit test for cookies 2015-07-21 20:30:17 +02:00
bel
26748e42b9 Remove old public unit test for cookies 2015-07-21 20:15:27 +02:00
bel
e535313be9 Fix another 'Mircosoft does not like standard C' warning 2015-07-19 23:18:50 +02:00
bel
cbf97c0967 Autoformat public and private integration tests using clang-format 2015-07-19 22:58:05 +02:00
bel
129d410f99 More CI tests 2015-07-19 22:54:20 +02:00
bel
793ef45a10 More CI tests 2015-07-19 21:50:32 +02:00
bel
e4bb9530f6 Remove HTTPS CI test for the moment 2015-07-19 00:19:37 +02:00
bel
4683073b5c Add some CI tests 2015-07-19 00:15:19 +02:00
bel
ce422e16d9 Split tests between HTTP and HTTPS, so it is clear which one failed 2015-07-18 23:31:49 +02:00
bel
b461763953 Add some CI tests 2015-07-18 23:16:53 +02:00
bel
d3d94716ce Fix sleep function in public test 2015-07-18 22:53:07 +02:00
bel
9cedcf74dc Start/Stop server in public test 2015-07-18 22:42:15 +02:00
bel
8dea7de0c4 Dump file content as hex in handle_form example 2015-07-18 21:28:03 +02:00
bel2125
915c9e6fe4 Merge pull request #173 from vcatechnology/license-update
Correct licenses for newly added files (do not copy paste licenses)
2015-07-17 16:28:30 +02:00
Matt Clarkson
a1c995f2a1 Update test file license 2015-07-15 21:11:12 +01:00
Matt Clarkson
37a9200d85 Ported remove double dots and slashes test
This will increase the coverage of the CTest results
2015-07-15 11:23:50 +01:00
Matt Clarkson
cf00506cb7 Ported match prefix test
Moving the test from unit_test.c to private.c allows the test to contribute
to the CTest process
2015-07-15 11:23:22 +01:00
Matt Clarkson
89c5a1b3ee Allow specification of third party location
This allows the user to specify where to build the third party code.
2015-07-14 21:55:04 +01:00
Matt Clarkson
5b4126132f Add a check target
This allows for a user to run 'make check' and all dependencies to be built
2015-07-14 17:35:29 +01:00
Matt Clarkson
a3a0f8a02e Only update test PATH env on Windows
No need to update the path on other operating systems
2015-07-14 17:19:22 +01:00
Matt Clarkson
7334216252 Set the environment of the tests
Setting the PATH environment variable to the library output folder
solves false test positives on Windows as the test executable cannot
find the DLL.
2015-07-14 11:29:52 +01:00
Matt Clarkson
6b0ff64379 Simplify adding check tests
This adds a macro for automatically adding the check tests
2015-07-14 11:29:51 +01:00
Matt Clarkson
f59cf0a206 Make private tests symbols static
When testing the civetweb private APIs we need to make all the public
symbols static so that they do not conflict with the imported shared
library symbols.
2015-07-14 11:29:50 +01:00
Matt Clarkson
72d351d348 Disable C4127 in the unit tests
Check uses 'while(0) {}' in it's assert macros. MSVC with /W4 warns
about this.
2015-07-14 11:29:50 +01:00
bel2125
e6e9d84f97 Merge pull request #165 from vcatechnology/clang-fix
Pass a mutable string in unit test
2015-07-13 21:30:51 +02:00
bel
323c2f1c75 unit test: Add handler to reply with chunked transfer encoding 2015-07-13 21:16:28 +02:00
Matt Clarkson
1d3b987a19 Pass a mutable string in unit test
This resolves a clang diagnostics warning due to parse_http_message
accepting 'char *' as it's first argument
2015-07-13 15:25:26 +01:00
Matt Clarkson
e2efdd804b Ported parse_http_message unit test 2015-07-13 14:10:12 +01:00
Matt Clarkson
ac48a01b93 Port the mg_get_cookie test 2015-07-13 14:10:12 +01:00
Matt Clarkson
9cd98f0c4c Add civetweb.h to the public unit tests
This is needed for the function declarations that we are going to test
2015-07-13 14:10:12 +01:00
Matt Clarkson
f22a8283e7 Add stdint.h to the check unit test header
It seems that the check.h header misses some includes, specifically intmax.h
2015-07-13 14:10:12 +01:00
bel
bf2d913fd5 Additional unit test for chunked transfer encoding 2015-07-13 01:21:05 +02:00
bel
adbb3a1f3e More tolerance if content-length is not set correctly 2015-07-13 01:04:37 +02:00
bel
297caa1453 POST request without content length in unit test is a HTTP protocol violation 2015-07-13 00:19:15 +02:00
bel
bcd9f39bb7 Minor adjustments in unit_test.c 2015-07-12 21:50:01 +02:00
Matt Clarkson
548baf792c Added check unit tests
These use the excellent check unit testing framework to test the
civetweb public API
2015-07-09 21:05:37 +02:00
Matt Clarkson
e03cf46867 CMake build
This implements the CMake build for the project using the extra CMake
modules that have previously been added to the project.
2015-07-09 21:05:36 +02:00
hansipie
7fd2ea80a8 MEMORY_DEBUGGING variables
Isolate variables used for the memory debugging
2015-07-09 01:12:09 +02:00
bel
72b3d3deb2 Reduce test default from 10000 images to 1000 (number can be configured as ?cnt=1000) 2015-07-02 22:50:51 +02:00
bel
ccad24024d Test with more images that can not be cached 2015-07-02 22:40:55 +02:00