summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* ftp: fix CWD when doing multicwd then nocwd on same connectionbagder/ftp-multicwd-nocwdDaniel Stenberg2017-08-152-1/+65
| | | | | Fixes #1782 Reported-by: Peter Lamare
* test1449: FTP download range with an too large sizeDaniel Stenberg2017-08-142-1/+39
|
* runtests: match keywords case insensitivelyDaniel Stenberg2017-08-141-3/+3
|
* test1448: verify redirect to IDN using URLDaniel Stenberg2017-08-132-1/+93
| | | | Closes #1772
* test2032: mark as flaky (again)Daniel Stenberg2017-08-131-0/+1
|
* test1447: require a curl with http supportDan Fandrich2017-08-121-0/+3
|
* test2033: this went flaky againDaniel Stenberg2017-08-111-0/+1
| | | | Suspicion: when we enabled the threaded resolver by default.
* test1447: verifies the parse proxy fix in 6e0e152ce5cDaniel Stenberg2017-08-112-1/+36
|
* dist: Add dictserver.py/negtelnetserver.py to EXTRA_DISTAdam Sampson2017-08-091-1/+2
| | | | | | | These weren't included in the 7.55.0 release, but are required in order to run the full test suite. Closes #1744
* docs/comments: Update to secure URL versionsViktor Szakats2017-08-083-3/+3
| | | | Closes #1741
* test1427: verify command line parser integer overflow detectionDaniel Stenberg2017-08-072-1/+30
|
* glob: do not continue parsing after a strtoul() overflow rangeDaniel Stenberg2017-08-072-1/+36
| | | | | | | | | Added test 1289 to verify. CVE-2017-1000101 Bug: https://curl.haxx.se/docs/adv_20170809A.html Reported-by: Brian Carpenter
* test1010: verify that #1718 is fixedDaniel Stenberg2017-08-041-1/+3
| | | | | ... by doing two transfers in nocwd mode and check that there's no superfluous CWD command.
* test130: verify comments in .netrcDaniel Stenberg2017-08-031-0/+1
|
* 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
|
* http: fix response code parser to avoid integer overflowDaniel Stenberg2017-07-312-17/+5
| | | | | | | | test 1429 and 1433 were updated to work with the stricter HTTP status line parser. Closes #1714 Reported-by: Brian Carpenter
* test1323: verify curlx_tvdiffDaniel Stenberg2017-07-284-2/+104
|
* timeval: struct curltime is a struct timeval replacementDaniel Stenberg2017-07-285-13/+16
| | | | | | | | | ... 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.
* libtest: fix MSVC warning C4706Marcel Raad2017-07-163-9/+12
| | | | | | With warning level 4, MSVC warns about assignments within conditional expressions. Change the while loop to a do-while loop to fix this. This change is also consistent with CODE_STYLE.md.
* 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
* strerror: Preserve Windows error code in some functionsJay Satiro2017-07-115-23/+9
| | | | | | | | | | | This is a follow-up to af02162 which removed (SET_)ERRNO macros. That commit was an earlier draft that I committed by mistake, which was then remedied by a5834e5 and e909de6, and now this commit. With this commit there is now no difference between the current code and the changes that were approved in the final draft. Thanks-to: Max Dymond, Marcel Raad, Daniel Stenberg, Gisle Vanem Ref: https://github.com/curl/curl/pull/1589
* tests: Fix up issues with errno in test filesMax Dymond2017-07-107-25/+25
| | | | Closes https://github.com/curl/curl/pull/1671
* valgrind.supp: supress OpenSSL false positive seen on travisDaniel Stenberg2017-07-071-0/+21
|
* test1452: add telnet negotiationMax Dymond2017-07-076-4/+552
| | | | | | | Add a basic telnet server for negotiating some telnet options before echoing back any data that's sent to it. Closes #1645
* test506: skip if threaded-resolverDaniel Stenberg2017-07-061-0/+5
|
* runtests: support "threaded-resolver" as a featureDaniel Stenberg2017-07-062-0/+11
| | | | ... to let tests require it or skip if present
* dist: add SMB python deps into the tarballDaniel Stenberg2017-07-041-1/+8
|
* test1451: add SMB support to the testbedMax Dymond2017-07-047-511/+889
| | | | | | | Add test 1451 which does some very basic SMB testing using the impacket SMB server. Closes #1630
* test: add impacket for SMB testingMax Dymond2017-07-0412-0/+18264
| | | | | | | Import impacket 0.9.15 for use in SMB testing. This was generated by doing "pip2.7 install -t . impacket" Unnecessary files for current testing were deleted.
* url: make the original string get used on subsequent transfersDaniel Stenberg2017-07-034-2/+122
| | | | | | | | | | | ... since CURLOPT_URL should follow the same rules as other options: they remain set until changed or cleared. Added test 1551 to verify. Fixes #1631 Closes #1632 Reported-by: Pavel Rochnyak
* unit1399: fix integer overflowRyan Winograd2017-07-031-1/+1
| | | | | Bug: #1616 Closes #1633
* unit1399: add logging to time comparisonDaniel Stenberg2017-07-011-1/+5
| | | | | | ... to enable tracking down why autobuilds fail on this Bug: #1616
* test1450: fix up DICT server in torture modeMax Dymond2017-06-301-18/+21
| | | | | | | | | As per https://github.com/curl/curl/pull/1615, the DICT server is a little spammy in torture mode due to the sockets being torn down unexpectedly. Fix this by adding some error handling to the handling function. Closes #1629
* test1450: add simple testing for DICTMax Dymond2017-06-306-5/+289
| | | | | | | Add a new server which provides a DICT interface. This is intended to begin coverage testing for lib/dict.c Closes #1615
* test1521: fix out-of-tree builds, broken with 467da3afDan Fandrich2017-06-301-1/+1
| | | | | | | | The test.h file is no longer in the same directory as the source file, so that directory needs to be added to the include path. Fixes #1627 Closes #1628
* progress: prevent resetting t_starttransferRyan Winograd2017-06-304-1/+127
| | | | | | | | | | | | | Prevent `Curl_pgrsTime` from modifying `t_starttransfer` when invoked with `TIMER_STARTTRANSFER` more than once during a single request. When a redirect occurs, this is considered a new request and `t_starttransfer` can be updated to reflect the `t_starttransfer` time of the redirect request. Closes #1616 Bug: https://github.com/curl/curl/pull/1602#issuecomment-310267370
* libtest/make: generate lib1521.cDaniel Stenberg2017-06-273-2502/+17
| | | | | | | ... instead of having the generated code checked in. This saves space in the tarball but primarily automatically adapts to newly added options. Closes #1614
* test1537: fixed memory leak on OOMDan Fandrich2017-06-251-2/+13
|
* test1521: fix compiler warningsMarcel Raad2017-06-252-11/+17
| | | | | | | | | | | | The integer literal 3123123123 doesn't fit into a 32-bit signed integer, so GCC with 32-bit long warns in C90 mode: this decimal constant is unsigned only in ISO C90 [enabled by default] Fix this by using ULONG_MAX, which should fit in any curl_off_t and has the correct suffix to not issue any warnings. Also adds the missing CURLOPT_REQUEST_TARGET from commit 9b167fd090f596eac828817d48c247eeae53407f. Closes https://github.com/curl/curl/pull/1611
* libtest/Makefile: remove unused lib1541 variablesDaniel Stenberg2017-06-231-4/+0
|
* --request-target: instead of --strip-path-slashDaniel Stenberg2017-06-212-6/+6
| | | | | | | | | | | | | | ... and CURLOPT_REQUEST_TARGET instead of CURLOPT_STRIP_PATH_SLASH. This option instead provides the full "alternative" target to use in the request, instead of extracting the path from the URL. Test 1298 and 1299 updated accordingly. Idea-by: Evert Pot Suggestion: https://daniel.haxx.se/blog/2017/06/19/options-with-curl/comment-page-1/#comment-18373 Closes #1593
* lib1521: fix missing-variable-declarations clang warningsMarcel Raad2017-06-212-28/+28
| | | | Declare TU-local variables static.
* http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASHDaniel Stenberg2017-06-194-1/+120
| | | | | | | | | | | ... 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
* test1521: test getinfo's OFF_T types tooDaniel Stenberg2017-06-192-0/+23
| | | | Closes #1588
* lib1521: add curl_easy_getinfo calls to the test setDaniel Stenberg2017-06-193-750/+2454
| | | | | Also added return value checks to make sure no unexpected return codes are used.
* PIPELINING_SERVER_BL: cleanup the internal list useDaniel Stenberg2017-06-194-0/+77
| | | | | | | | | | | The list was freed incorrectly since the llist refactor of cbae73e1dd959. Added test 1550 to verify that it works and avoid future regressions. Reported-by: Pascal Terjan Fixes #1584 Closes #1585