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
bel
8ce2caa2aa
Update test description
2015-07-02 21:34:51 +02:00
bel
bd1b4b8e27
Measure timing in 100 image load test
2015-07-02 21:20:55 +02:00
bel2125
7a366c45b2
CORS test should work with default port 8080
2015-06-29 23:32:00 +02:00
bel2125
4872116f19
image test: File extension is case sensitive for Linux
2015-06-29 23:18:49 +02:00
bel2125
bb5bc3ff99
New CGI script for ajax test
2015-06-29 23:13:48 +02:00
bel2125
a3d71a0a0c
Show CGI variables in Linux mini-CGI shell script
2015-06-16 23:09:12 +02:00
bel
71aa4ae257
List environment variables in minimal Linux CGI script
2015-06-15 21:44:07 +02:00
bel
14c57095ba
Autoformat unit_test.c
2015-06-15 21:41:38 +02:00
bel
1286e26b43
Windows minimal CGI test: HTTP method and status code are sent by the framework and windows.cgi.cmd must be in the PATH
2015-06-15 21:37:13 +02:00
bel
86eb1ed0e5
Check and fix effects of SO_EXCLUSIVEADDRUSE on Windows unit test
2015-06-05 01:24:45 +02:00
bel
d6df859085
Modify unit test, so a breakpoint can be set into ASSERT
2015-06-02 23:08:12 +02:00
bel2125
c21748054f
Merge pull request #136 from vcatechnology/msvc-fixes
...
MSVC Compilation Fixes
2015-05-28 22:22:04 +02:00
bel
7b1a88e05e
Fix for Chrome in multipart form handling example
...
fix for lowercase boundary strings, see #137
2015-05-28 22:07:13 +02:00
Matt Clarkson
809da20100
Fix up batch script line endings
...
The new .gitattributes solve issues with Windows specific files
2015-05-28 13:20:04 +01:00
bel
a1c09b8186
Only use one command in a line in the unit test
2015-05-20 20:07:18 +02:00
bel2125
f8e0bf9dff
Merge pull request #113 from nihildeb/master
...
move travis tests to ci/ from test/ci_tests
2015-05-02 00:28:01 +02:00
Nick Hildebrant
bfba8d105d
move travis tests to ci/ from test/ci_tests
2015-05-02 00:02:42 +02:00
bel
180e45fdfc
Forward also POST data to CGI pages
2015-05-01 23:47:42 +02:00