summaryrefslogtreecommitdiff
path: root/tests/server
Commit message (Collapse)AuthorAgeFilesLines
* spelling fixesViktor Szakats2018-02-233-6/+6
| | | | | | | | Detected using the `codespell` tool. Also contains one URL protocol upgrade. Closes https://github.com/curl/curl/pull/2334
* curl_ctype: private is*() type macros and functionsDaniel Stenberg2018-01-291-2/+4
| | | | | | | | ... since the libc provided one are locale dependent in a way we don't want. Also, the "native" isalnum() (for example) works differently on different platforms which caused test 1307 failures on macos only. Closes #2269
* scripts: allow all perl scripts to be run directlyJay Satiro2018-01-071-1/+1
| | | | | | | | - Enable execute permission (chmod +x) - Change interpreter to /usr/bin/env perl Closes https://github.com/curl/curl/pull/2222
* tests: added netinet/in6.h includes in test serversRandall S. Becker2017-12-063-0/+9
|
* timediff: return timediff_t from the time diff functionsDaniel Stenberg2017-10-253-8/+108
| | | | | | | | | | | | | | | ... to cater for systems with unsigned time_t variables. - Renamed the functions to curlx_timediff and Curl_timediff_us. - Added overflow protection for both of them in either direction for both 32 bit and 64 bit time_ts - Reprefixed the curlx_time functions to use Curl_* Reported-by: Peter Piekarski Fixes #2004 Closes #2005
* server/getpart: provide dummy function to build conversion enabledDaniel Stenberg2017-09-151-1/+29
|
* tests: add initial gssapi test using stub implementationIsaac Boukris2017-09-151-1/+14
| | | | | | | | | | | The stub implementation is pre-loaded using LD_PRELOAD and emulates common gssapi uses (only builds if curl is initially built with gssapi support). The initial tests are currently disabled for debug builds as LD_PRELOAD is not used then. Ref: https://github.com/curl/curl/pull/1687
* code style: use spaces around plusesDaniel Stenberg2017-09-115-15/+16
|
* code style: use spaces around equals signsDaniel Stenberg2017-09-117-66/+66
|
* CMake: set MSVC warning level to 4Marcel Raad2017-08-031-0/+4
| | | | | | | | | | | The MSVC warning level defaults to 3 in CMake. Change it to 4, which is consistent with the Visual Studio and NMake builds. Disable level 4 warning C4127 for the library and additionally C4306 for the test servers to get a clean CURL_WERROR build as that warning is raised in some macros in older Visual Studio versions. Ref: https://github.com/curl/curl/pull/1667#issuecomment-314082794 Closes https://github.com/curl/curl/pull/1711
* tests/server/util: fix curltime mistake from 4dee50b9c80f9Daniel Stenberg2017-08-021-1/+1
|
* timeval: struct curltime is a struct timeval replacementDaniel Stenberg2017-07-281-4/+4
| | | | | | | | | ... to make all libcurl internals able to use the same data types for the struct members. The timeval struct differs subtly on several platforms so it makes it cumbersome to use everywhere. Ref: #1652 Closes #1693
* tests/server/resolve.c: fix deprecation warningMarcel Raad2017-07-181-26/+28
| | | | | | | | MSVC warns that gethostbyname is deprecated. Always use getaddrinfo instead to fix this when IPv6 is enabled, also for IPv4 resolves. This is also consistent with what libcurl does. Closes https://github.com/curl/curl/pull/1682
* rtspd: fix GCC warning after MSVC warning fixMarcel Raad2017-07-161-1/+3
| | | | | | | | Older GCC warns: /tests/server/rtspd.c:1194:10: warning: missing braces around initializer [-Wmissing-braces] Fix this by using memset instead of an initializer.
* sockfilt: suppress conversion warning with explicit castMarcel Raad2017-07-161-1/+1
| | | | MSVC warns when implicitly casting -1 to unsigned long.
* rtspd: fix MSVC level 4 warningMarcel Raad2017-07-161-1/+1
| | | | warning C4701: potentially uninitialized local variable 'req' used
* http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASHDaniel Stenberg2017-06-191-0/+8
| | | | | | | | | | | ... to enable sending "OPTIONS *" which wasn't possible previously. This option currently only works for HTTP. Added test cases 1298 + 1299 to verify Fixes #1280 Closes #1462
* http-proxy: deal with EAGAINDaniel Stenberg2017-06-161-6/+3
| | | | | | | | ... the previous code would reset the header length wrongly (since 5113ad0424). This makes test 1060 reliable again. Also: make sws send even smaller chunks of data to increase the likeliness of this happening.
* includes: remove curl/curlbuild.h and curl/curlrules.hDaniel Stenberg2017-06-142-9/+3
| | | | | | | | Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9e109f. Now gone. Fixes #1456
* tests: make test file names more uniqueDan Fandrich2017-05-091-10/+14
| | | | | | Include the test number in the names of files written out by tests to reduce the chance of accidental duplication and to make it more clear which test is associated with which file.
* tftpd: fix signed/unsigned mismatch warningsMarcel Raad2017-05-081-3/+3
| | | | alarm's argument is unsigned.
* tests/server: run checksrc by default in debug-buildsDaniel Stenberg2017-05-051-1/+6
|
* sockfilt.c: shortened too long lineDan Fandrich2017-05-041-1/+2
|
* tests/server: make string literals constMarcel Raad2017-05-045-12/+12
| | | | | | | assign string literals to const char * instead of char * in order to avoid a lot of these warnings: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual]
* testpart: remove _MPRINTF_REPLACEMarcel Raad2017-05-021-2/+1
| | | | | Support for _MPRINTF_REPLACE in mprintf.h was removed in 55452ebdff47f98bf3cc383f1dfc3623fcaefefd, replaced with curl_printf.h.
* getpart: use correct variable typeMarcel Raad2017-05-011-2/+2
| | | | | | This fixes the following clang warning: getpart.c:201:17: warning: cast from function call of type 'CURLcode' to non-matching type 'int' [-Wbad-function-cast]
* code: fix typos and style in commentsDaniel Gustafsson2017-04-171-6/+6
| | | | | | | A few random typos, and minor whitespace cleanups, found in comments while reading code. Closes #1423
* tests/server/util: prefer <poll.h> over <sys/poll.h>Marcel Raad2017-04-121-3/+3
| | | | | | Follow-up to aa573c3c55cda72ec5ef677d87f6f46a53385f0c Ref: https://github.com/curl/curl/pull/1406
* tests/server/util: remove in6addr_any for recent MinGWMarcel Raad2017-04-031-1/+9
| | | | | | | | | | | | | | | | In ancient MinGW versions, in6addr_any was declared as extern, but not defined. Because of that, 22a0c57746ae12506b1ba0f0fafffd26c1907d6a added definitions for in6addr_any when compiling with MinGW. The bug was fixed in w32api version 3.6 from 2006, so this workaround is not needed anymore for recent versions. This fixes the following MinGW-w64 warnings because the MinGW-w64 version of IN6ADDR_ANY_INIT has the two additional braces inside the macro: util.c:59:14: warning: braces around scalar initializer util.c:59:40: warning: excess elements in scalar initializer Ref: https://sourceforge.net/p/mingw/mingw-org-wsl/ci/e4803e0da25c57ae1ad0fa75ae2b7182ff7fa339/tree/w32api/ChangeLog Closes https://github.com/curl/curl/pull/1379
* sws: use SOCKERRNO, not errnoDaniel Stenberg2017-01-191-1/+1
| | | | Reported-by: Gisle Vanem
* sws: retry send() on EWOULDBLOCKDaniel Stenberg2017-01-091-1/+8
| | | | | | | Fixes spurious test 1060 and 1061 failures on OpenBSD, Solaris and more. Bug: https://curl.haxx.se/mail/lib-2017-01/0009.html Reported-by: Christian Weisgerber
* tests: checksrc complianceJay Satiro2016-12-191-1/+1
|
* checksrc: warn for assignments within if() expressionsDaniel Stenberg2016-12-145-26/+52
| | | | | ... they're already frowned upon in our source code style guide, this now enforces the rule harder.
* checksrc: stricter no-space-before-paren enforcementDaniel Stenberg2016-12-132-3/+3
| | | | In order to make the code style more uniform everywhere
* checksrc: white space edits to comply to stricter checksrcDaniel Stenberg2016-11-241-4/+4
|
* checksrc: code style: use 'char *name' styleDaniel Stenberg2016-11-241-3/+3
|
* tests: fixed variable might be clobbered warningDan Fandrich2016-11-121-6/+4
| | | | | This stops the compiler from potentially making invalid assumptions about the immutability of sdp and sap across the longjmp boundary.
* s/cURL/curlDaniel Stenberg2016-11-072-2/+2
| | | | | | We're mostly saying just "curl" in lower case these days so here's a big cleanup to adapt to this reality. A few instances are left as the project could still formally be considered called cURL.
* tests/util: get a private strncasecompare cloneDaniel Stenberg2016-10-315-9/+93
| | | | | ... since the curlx_* code no longer provides one and we don't link libcurl to these test servers.
* strcasecompare: is the new name for strequal()Daniel Stenberg2016-10-313-8/+8
| | | | | | | ... to make it less likely that we forget that the function actually does case insentive compares. Also replaced several invokes of the function with a plain strcmp when case sensitivity is not an issue (like comparing with "-").
* internals: rename the SessionHandle struct to Curl_easyDaniel Stenberg2016-06-221-1/+1
|
* make/checksrc: use $srcdir, not $top_srcdirDaniel Stenberg2016-04-191-1/+1
|
* checksrc/makefile.am: use $top_srcdir to find source filesDaniel Stenberg2016-04-181-1/+1
| | | | ... to properly support out of source tree builds.
* tests: fix make checksrc in servers/Daniel Stenberg2016-04-031-1/+3
|
* tests/server: comply with our code styleDaniel Stenberg2016-04-039-210/+240
|
* URLs: change more http to httpsViktor Szakats2016-02-041-2/+2
|
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-0314-14/+14
|
* sockfilt.c: fix calculation of sleep timeout on WindowsMarc Hoersken2015-12-231-1/+1
| | | | Not converting to double caused small timeouts to be skipped.
* tftpd server: add Windows support by writing files in binary modeMarc Hoersken2015-12-231-0/+4
|
* sockfilt.c: added some debug output to select_wsMarc Hoersken2015-12-161-0/+11
|