bel
b61763b836
Adapt unit test: parse_http_headers now works differently on invalid HTTP headers
...
Before parsing "GET / HTTP/1.1\r\nA: foo bar\r\nB: bar\r\nbaz\r\n\r\n"
returned a header field "baz\r\n\r" - this makes no sense.
Now it returns a header field "baz" without value.
2016-01-18 21:37:15 +01:00
bel
3082e09033
Adapt unit test for rewritten alloc_vprintf function
2015-12-30 00:36:20 +01:00
bel
bbbe470d9f
Unit tests: rename all test case instances
2015-11-26 23:39:20 +01:00
bel
dddb5cf235
Fix typing error in unit test
2015-11-26 22:34:04 +01:00
bel
4c8979c077
Some code is unreachable in the unit test - disable the clang compiler warning at these lines
2015-11-26 22:28:14 +01:00
bel
1efb65f20b
Unit test: mask_data is only available if built with websocket support
2015-11-26 22:23:20 +01:00
bel
c7d5e24f92
Fix signed/unsigned comp in unit test
2015-11-25 23:51:22 +01:00
bel
87e8f2e8c2
Remove TODO mark
2015-11-25 23:37:29 +01:00
bel
641a742128
Add helper funktion for mask_data and enhance test for websocket clients
2015-11-25 23:18:33 +01:00
bel
4de9090577
Apply revised clang-format ( #207 ) to all actively maintained source files
2015-10-05 20:58:14 +02:00
bel
e29dbdc5a0
Support absolute uri ( #197 ) - (Step 6/?)
2015-09-02 23:53:38 +02:00
bel2125
30afbf03f7
Set a minumum test timeout for all unit tests
...
See #94 (https://github.com/civetweb/civetweb/issues/94#issuecomment-131843701 )
2015-08-17 19:15:09 +02:00
bel
bcf7f23742
Unit test: Add test for websocket server and client
2015-08-08 22:50:37 +02:00
bel
19c4b48d94
Add some URIs to unit test
2015-08-06 23:12:14 +02:00
Matt Clarkson
240c6ac79a
Resolve unused variable warning/error
...
When websockets or Lua are not compiled in then the two variables are not
used in the testing. We can put them inside the preprocessor defines
2015-08-03 10:37:39 +01:00
bel
f6b254e9a7
Unit test: url encoding in not unique
2015-07-25 18:05:11 +02:00
bel
7071633382
Fix copy/paste error in unit test
2015-07-25 17:54:45 +02:00
bel
82be785f9f
Fix bugs in unit tests
2015-07-25 14:50:55 +02:00
bel
8bc9bedd58
Fix signed/unsigned mix in unit tests
2015-07-25 14:31:31 +02:00
bel
1c2cd7dbbb
Add more unit tests
2015-07-25 14:20:54 +02:00
bel
5b19040a5c
Add test_parse_port_string unit test
2015-07-25 13:50:45 +02:00
bel
f3d028713e
Encoding/decoding test should also test url encoding
2015-07-25 13:23:33 +02:00
bel
8a65123257
Add some none non alpha string to the encoding/decoding test
2015-07-25 10:52:25 +02:00
bel
27645fb306
Fix warnings in unit test
2015-07-25 00:03:14 +02:00
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
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
4683073b5c
Add some CI tests
2015-07-19 00:15:19 +02:00
bel
b461763953
Add some CI tests
2015-07-18 23:16:53 +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
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
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
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