aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2017-07-07valgrind.supp: supress OpenSSL false positive seen on travisDaniel Stenberg
2017-07-07test1452: add telnet negotiationMax Dymond
Add a basic telnet server for negotiating some telnet options before echoing back any data that's sent to it. Closes #1645
2017-07-06test506: skip if threaded-resolverDaniel Stenberg
2017-07-06runtests: support "threaded-resolver" as a featureDaniel Stenberg
... to let tests require it or skip if present
2017-07-04dist: add SMB python deps into the tarballDaniel Stenberg
2017-07-04test1451: add SMB support to the testbedMax Dymond
Add test 1451 which does some very basic SMB testing using the impacket SMB server. Closes #1630
2017-07-04test: add impacket for SMB testingMax Dymond
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.
2017-07-03url: make the original string get used on subsequent transfersDaniel Stenberg
... 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
2017-07-03unit1399: fix integer overflowRyan Winograd
Bug: #1616 Closes #1633
2017-07-01unit1399: add logging to time comparisonDaniel Stenberg
... to enable tracking down why autobuilds fail on this Bug: #1616
2017-06-30test1450: fix up DICT server in torture modeMax Dymond
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
2017-06-30test1450: add simple testing for DICTMax Dymond
Add a new server which provides a DICT interface. This is intended to begin coverage testing for lib/dict.c Closes #1615
2017-06-30test1521: fix out-of-tree builds, broken with 467da3afDan Fandrich
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
2017-06-30progress: prevent resetting t_starttransferRyan Winograd
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
2017-06-27libtest/make: generate lib1521.cDaniel Stenberg
... instead of having the generated code checked in. This saves space in the tarball but primarily automatically adapts to newly added options. Closes #1614
2017-06-25test1537: fixed memory leak on OOMDan Fandrich
2017-06-25test1521: fix compiler warningsMarcel Raad
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
2017-06-23libtest/Makefile: remove unused lib1541 variablesDaniel Stenberg
2017-06-21--request-target: instead of --strip-path-slashDaniel Stenberg
... 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
2017-06-21lib1521: fix missing-variable-declarations clang warningsMarcel Raad
Declare TU-local variables static.
2017-06-19http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASHDaniel Stenberg
... 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
2017-06-19test1521: test getinfo's OFF_T types tooDaniel Stenberg
Closes #1588
2017-06-19lib1521: add curl_easy_getinfo calls to the test setDaniel Stenberg
Also added return value checks to make sure no unexpected return codes are used.
2017-06-19PIPELINING_SERVER_BL: cleanup the internal list useDaniel Stenberg
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
2017-06-16curl: prevent binary output spewed to terminalDaniel Stenberg
... unless "--output -" is used. Binary detection is done by simply checking for a binary zero in early data. Added test 1425 1426 to verify. Closes #1512
2017-06-16http-proxy: fix chunked-encoded CONNECT responsesDaniel Stenberg
Regression since 5113ad0424. ... and remove 'flaky' from test 1061 again Closes #1579
2017-06-16http-proxy: deal with EAGAINDaniel Stenberg
... 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.
2017-06-16libtest/libntlmconnect: fix compiler warnings from f94fcdbDaniel Stenberg
2017-06-16tests: stabilize test 2032 and 2033Daniel Stenberg
Both these tests run the same underlying test code: libntlmconnect.c - this test code made some assumptions about socket ordering when it used curl_easy_fdset() and when we changed timing or got accidental changes in libcurl the tests would fail. The tests verify that the different transfers keep using the same connections, which I now instead made sure by adding the number of bytes each transfer gets and then verifies that they always get the same amount as when these tests worked. Closes #1576
2017-06-16test1148: verify the -# progressbarDaniel Stenberg
Closes #1569
2017-06-16test1061: mark as flakyDaniel Stenberg
Fails intermittently on travis builds since a few days. Likely due to 5113ad0424.
2017-06-16dist: add the fuzz dir to the tarballDaniel Stenberg
2017-06-15fuzz/README: document how to buildDaniel Stenberg
Fixes #1476
2017-06-15fuzz: corpora file structure, initial commitFrederik B
2017-06-15fuzz: bring oss-fuzz initial code converted to C89Frederik B
2017-06-15test1147: verify -H on a fileDaniel Stenberg
2017-06-14http-proxy: do the HTTP CONNECT process entirely non-blockingDaniel Stenberg
Mentioned as a problem since 2007 (8f87c15bdac63) and of course it existed even before that. Closes #1547
2017-06-14includes: remove curl/curlbuild.h and curl/curlrules.hDaniel Stenberg
Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9e109f. Now gone. Fixes #1456
2017-06-13mk-lib1521.pl: updated to match the test changes in 916ec30aDan Fandrich
2017-06-11test1521: fixed OOM handlingDan Fandrich
2017-06-09lib1521: fix compiler warnings on the use of bad 'long' valuesDaniel Stenberg
Reported-by: Marcel Raad Bug: https://github.com/curl/curl/commit/cccac4fb2b20d6ed87da7978408c3ecacc464fe4#commitcomment-22453387
2017-06-06lib1521: fix compiler warningsDaniel Stenberg
2017-06-05test1521: make the code < 80 columns wideDaniel Stenberg
2017-06-05test1121: use stricter types to work with typcheck-gccDaniel Stenberg
2017-06-05test1521: test *all* curl_easy_setopt optionsDaniel Stenberg
mk-lib1521.pl generates a test program (lib1521.c) that calls curl_easy_setopt() for every known option with a few typical values to make sure they work (ignoring the return codes). Some small changes were necessary to avoid asserts and NULL accesses when doing this. The perl script needs to be manually rerun when we add new options. Closes #1543
2017-06-05test1538: added "verbose logs" keywordDan Fandrich
These error messages are not displayed with --disable-verbose
2017-06-05test1262: verify ftp download with -z for "if older than this"Daniel Stenberg
2017-06-03libtest: fix int-in-bool-context warningsMarcel Raad
GCC 7 complained: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
2017-06-03libtest: fix implicit-fallthrough warnings with GCC 7Marcel Raad
2017-06-03dedotdot: fixed output for ".." and "." only inputDaniel Stenberg
Found when updating test 1395, which I did to increase test coverage of this source file... Closes #1535