aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2017-06-02test1538: fix typoDaniel Stenberg
2017-06-02test1538: verify the libcurl strerror API callsDaniel Stenberg
2017-06-02test1537: dedicated tests of the URL (un)escape API callsDaniel Stenberg
Closes #1530
2017-06-02coverage: run event tests tooDaniel Stenberg
... the torture ones are commented out only because they are slooooow.
2017-06-02build: provide easy code coverage measuringDaniel Stenberg
Closes #1528
2017-05-31lib583: fix compiler warningMarcel Raad
Use CURLMcode for variable 'res' and cast to int where necessary instead of the other way around. Other tests do the same. This fixes the following clang warning: lib583.c:68:15: warning: cast from function call of type 'CURLMcode' to non-matching type 'int' [-Wbad-function-cast]
2017-05-31libtest/lib574.c: use correct callback protoDaniel Stenberg
2017-05-29test557: fix ubsan runtime error due to int left shiftJay Satiro
- Test curl_msnprintf negative int width arg using INT_MIN instead of 1 << 31 which is undefined behavior. Closes https://github.com/curl/curl/issues/1516
2017-05-28tests: removed some redundant empty <stdout> sectionsDan Fandrich
2017-05-28runtests.pl: removed <precommand> featureDan Fandrich
This hasn't been used in over a decade. <precheck> can still be used to run commands before the main test.
2017-05-27runtests.pl: removed unused arguments to valgrindparseDan Fandrich
2017-05-24time: fix type conversions and compiler warningsMichael Kaufmann
Fix bugs and compiler warnings on systems with 32-bit long and 64-bit time_t. Reviewed-by: Daniel Stenberg Closes #1499
2017-05-23redirect: store the "would redirect to" URL when max redirs is reachedDaniel Stenberg
Test 1261 added to verify. Reported-by: Lloyd Fournier Fixes #1489 Closes #1497
2017-05-20tests: stabilize test 1034Michael Kaufmann
Pass the invalid domain name on stdin. On some systems, the test framework cannot pass invalid UTF-8 sequences on the command line. Closes #1488
2017-05-15SecureTransport/DarwinSSL: Implement public key pinningmoparisthebest
Closes #1400
2017-05-13lib510: don't write past the end of the buffer if it's too smallDan Fandrich
2017-05-13tests: added missing keywords "chunked Transfer-Encoding"Dan Fandrich
2017-05-13tests: made a couple of prechecks consistent with othersDan Fandrich
Also removed a TODO suggesting caching the precheck results. Tests showed this would save about 0.1 sec on the total test run time on a relatively modern system, an unnoticeable gain at the cost of longer and more complicated code. There would also be a danger that a cached test result would be inappropriately returned, such as when other test dependencies (like environment variables) are different or when the precheck causes side effects (like filesystem changes).
2017-05-10tests: remove superfluous test 1399Richard Hsu
@MarcelRaad noted that `test1399` causes infinite loop on MinGW. Looking into this, seems like it is related to how Windows handles CRLF. See https://github.com/curl/curl/commit/9e093f by @mback2k. Removing `test1399` as it's identical to `test1326` then with such a fix. Test 1399 was broughy by commit 862b02f8947039e Closes #1478
2017-05-09tests: make test file names more uniqueDan Fandrich
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.
2017-05-09tests: removed redundant --trace-ascii argumentsDan Fandrich
This is already added by the test suite; it's not clear why all these tests had it, unless it's cargo-culting.
2017-05-09tests: list the primary server first in the server sectionDan Fandrich
2017-05-08curl: generate the --help outputDaniel Stenberg
... using the docs/cmdline-opts/gen.pl script, so that we get all the command line option documentation from the same source. The generation of the list has to be done manually and pasted into the source code. Closes #1465
2017-05-08tests: updated for modified fake randomDaniel Stenberg
2017-05-08tests: give each stunnel.conf file a unique nameDan Fandrich
Otherwise, subsequent uses of stunnel overwrite the configuration file of previous invocations so they can no longer be inspected.
2017-05-08tftpd: fix signed/unsigned mismatch warningsMarcel Raad
alarm's argument is unsigned.
2017-05-08libtest: fix MinGW-w64 warningsMarcel Raad
long is 32 bits while size_t is 64 bits on MinGW-w64, so typecheck-gcc.h complains when using size_t for a long option. Also, curl_socket_t is unsigned long long rather than int.
2017-05-08runtests: fix "use of undefined value" warning in -R handlingDaniel Stenberg
2017-05-08test537: use correct variable typeMarcel Raad
Avoids narrowing conversion warnings because rlim_t is usually unsigned long. Closes https://github.com/curl/curl/pull/1469
2017-05-06runtests.pl: simplify the datacheck read sectionDan Fandrich
Also, document that numbered datacheck sections are possible.
2017-05-05tests: fix -Wcast-qual warningsMarcel Raad
Avoid casting string literals to non-const char *.
2017-05-05tests/server: run checksrc by default in debug-buildsDaniel Stenberg
2017-05-05unit1305: fix compiler warningMarcel Raad
calloc and ai_addrlen expect different (usually unsigned) types.
2017-05-05runtests: use -R for random orderDaniel Stenberg
Suggested-by: Dan Fandrich
2017-05-04runtests: add -o to run test cases in scrambled orderDaniel Stenberg
... instead of numerical order. Closes #1466
2017-05-04sockfilt.c: shortened too long lineDan Fandrich
2017-05-04tests/server: make string literals constMarcel Raad
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]
2017-05-04test557: set a known good numeric localeDan Fandrich
Windows does not allow setting the locale with environment variables (as the test attempted to do), so the test failed when run with a user locale that has a comma as radixchar. Changed the test to call setlocale() explicitly to ensure that a known working locale is set even on Windows.
2017-05-04test559: verify use of minimum CURLOPT_BUFFERSIZEDaniel Stenberg
2017-05-02Telnet: Write full buffer instead of byte-by-byteRichard Hsu
Previous TODO wanting to write in chunks. We should support writing more at once since some TELNET servers may respond immediately upon first byte written such as WHOIS servers. Closes #1389
2017-05-02testpart: remove _MPRINTF_REPLACEMarcel Raad
Support for _MPRINTF_REPLACE in mprintf.h was removed in 55452ebdff47f98bf3cc383f1dfc3623fcaefefd, replaced with curl_printf.h.
2017-05-01unit1606: do not print/access bufferDaniel Stenberg
It was a wrong assumption that it could do that!
2017-05-01getpart: use correct variable typeMarcel Raad
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]
2017-05-01tests: declare TU-local variables staticMarcel Raad
This fixes missing-variable-declarations warnings when building with clang.
2017-04-30unit1604: fixed indentationDan Fandrich
2017-04-30unit1604: fixed compilation under Windows, broken in the previous commitDan Fandrich
2017-04-30tests: fixed OOM handling of unit tests to abort testDan Fandrich
It's dangerous to continue to run the test when a memory alloc fails.
2017-04-29tests: added --remote-time tests for remaining protocols that support itDan Fandrich
2017-04-29runtests.pl: support multiline <postcheck> commandsDan Fandrich
2017-04-27test1443: test --remote-timeDan Fandrich