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

2616 Commits

Author SHA1 Message Date
bel
6194402179 Remove some unused functions in NO_FILES build 2015-08-06 22:59:20 +02:00
bel
2c5025f52d Adapt unit test for NO_FILES build
A PUT request without login will return 401 (Not Authorized) if there is a file system,
and 405 (Method Not Allowed) if there is no file system (= NO_FILES defined).
2015-08-06 22:49:22 +02:00
bel
516e40e607 Do not always download SSL for the windows unit test 2015-08-06 22:43:58 +02:00
bel
66b16a3918 Adapt unit tests for NO_FILES build 2015-08-06 22:37:49 +02:00
bel
1ce17d34da Adapt unit tests for NO_FILES build 2015-08-06 22:34:46 +02:00
bel
132f9ddd18 Autoformat source of unit test file 2015-08-06 22:20:40 +02:00
bel
e0ab54210f Remove some unused functions in NO_FILES build 2015-08-06 22:19:46 +02:00
bel
3730522af5 Remove some unused functions in NO_FILES build 2015-08-06 22:17:35 +02:00
bel
7820068584 Remove some unused functions in NO_FILES build 2015-08-06 22:02:34 +02:00
bel
e544929db6 Yet another attempt to handle the different directory structures in the different CI test environments 2015-08-06 21:53:42 +02:00
bel
8ccbe6b830 Remove some unused variables in NO_FILES build 2015-08-06 21:46:33 +02:00
bel
358c7dca50 Fix the unit test environment check 2015-08-06 00:30:04 +02:00
bel
f8a7aa9d3c Try another path to the SSL cert in the CI test environment 2015-08-06 00:17:15 +02:00
bel
d6fd94f2c9 Split public unit test into server tests and function tests (Step 4) 2015-08-04 22:53:18 +02:00
bel
cc69fa5e73 Split public unit test into server tests and function tests (Step 3) 2015-08-04 22:50:08 +02:00
bel
57e0bcb743 Split public unit test into server tests and function tests (Step 2) 2015-08-04 22:45:19 +02:00
bel
f08f7ec8bd Fix copy/paste error 2015-08-04 22:31:48 +02:00
bel
29e2d1a6e9 Split public unit tests into function tests and server tests 2015-08-04 22:17:29 +02:00
bel
894187da09 Duplicate public unit test in order to split it into server and function tests 2015-08-04 22:04:21 +02:00
bel
bd494bb807 Additional check for SSL_get_error
See https://www.openssl.org/docs/ssl/SSL_get_error.html and #184
2015-08-04 19:22:57 +02:00
bel2125
7c7313f36e Merge pull request #186 from vcatechnology/travis-serve-no-files
Travis build to test NO_FILES compilation
2015-08-03 20:41:33 +02:00
bel2125
77993e2f6f Merge pull request #185 from vcatechnology/test-directory
Test directory
2015-08-03 20:40:14 +02:00
Matt Clarkson
9fb4fa992f Travis build to test NO_FILES compilation
This adds a build variant for testing the NO_FILES preprocessor build flag
2015-08-03 10:51:40 +01:00
Matt Clarkson
0708d4c42c Method to get the current testing directory
This is useful to find the testing directory of the project during the
check tests so that fixtures and expected results can be read
2015-08-03 10:41:49 +01: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
66fa33f45a Add a test for the test environment 2015-08-02 23:52:49 +02:00
bel
bf80e25592 unit test: Split request tests from HTTP test suite 2015-08-02 22:27:08 +02:00
bel
b1924ecd99 Système D for checking why HTTPS does not run on travis and appveyor 2015-08-02 22:09:53 +02:00
bel2125
36bc9c48a5 HTTPS has to work in CI test environment 2015-08-02 13:20:04 +02:00
bel
76c226324b Appveyor: install openssl 2015-08-02 00:32:25 +02:00
bel
37e6e186e3 Unit test: Need int cast for clang 2015-08-02 00:03:13 +02:00
bel
3b12b43da4 Add unit tests for SSL redirects 2015-08-01 23:52:00 +02:00
bel
86842f88f3 Check build environment in build scripts 2015-08-01 23:16:31 +02:00
bel
b02732e098 Unit test for SSL 2015-08-01 22:57:26 +02:00
bel
336d579911 Set err for debug error message 2015-08-01 22:10:11 +02:00
bel
693b3ebcc7 SSL_write error handling (like SSL_read) 2015-08-01 22:07:18 +02:00
bel
a6aceeb7ed SSL_read: errno must only be used if SSL_get_error returned SSL_ERROR_SYSCALL
see https://www.openssl.org/docs/ssl/SSL_get_error.html amd #184
2015-08-01 21:52:26 +02:00
bel
01aeee05b3 Ports are already assigned 2015-07-31 23:07:37 +02:00
bel
d41560744e Use IPv6 only optional 2015-07-31 23:00:07 +02:00
bel
224c0ebb88 Use IPv4 and IPv6 in the unit test 2015-07-31 22:53:13 +02:00
bel
01a890f9bb Some IPv6 fixes for the client 2015-07-31 22:52:29 +02:00
bel
71150f6f71 Rewrite conn2 2015-07-31 22:33:46 +02:00
bel
578284e07d IPv6 is not always enabled 2015-07-31 21:43:17 +02:00
bel
b904a49127 Try CI tests for IPv6 2015-07-31 21:38:13 +02:00
bel
a2906702ca Add NO_FILES build to the CI test environment 2015-07-31 18:49:18 +02:00
bel
ddbeff24c3 Build option CIVETWEB_SERVE_NO_FILES to disable serving static files
See #182
2015-07-31 18:33:06 +02:00
bel
5bc867833a Merge branch 'vcatechnology-no-files' 2015-07-31 18:23:26 +02:00
Matt Clarkson
b60e5ab55c Adds the NO_FILES definition to the CMake build
The flag is controlled with the CIVETWEB_ENABLE_SERVE_FILES and should be
set to NO to disable static file serving.
2015-07-31 10:54:12 +01:00
bel
6e292051de Add unauthorized PUT unit test 2015-07-30 22:25:17 +02:00
bel
a536cb035c Create file for unit tests instead of relying on certain working directories in the unit test environment
It seems to be impossible to find out what the actual working
directory of the CI test environment is. Before breaking another
dozen of builds by trying blindly with different paths, just
create the file here.
2015-07-30 22:18:50 +02:00