summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* lib1521: fix compiler warningsDaniel Stenberg2017-06-062-54/+86
|
* test1521: make the code < 80 columns wideDaniel Stenberg2017-06-052-21/+41
|
* test1121: use stricter types to work with typcheck-gccDaniel Stenberg2017-06-052-36/+116
|
* test1521: test *all* curl_easy_setopt optionsDaniel Stenberg2017-06-055-2/+959
| | | | | | | | | | | | | 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
* test1538: added "verbose logs" keywordDan Fandrich2017-06-051-0/+1
| | | | These error messages are not displayed with --disable-verbose
* test1262: verify ftp download with -z for "if older than this"Daniel Stenberg2017-06-052-1/+41
|
* libtest: fix int-in-bool-context warningsMarcel Raad2017-06-032-2/+2
| | | | | GCC 7 complained: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
* libtest: fix implicit-fallthrough warnings with GCC 7Marcel Raad2017-06-032-0/+2
|
* dedotdot: fixed output for ".." and "." only inputDaniel Stenberg2017-06-031-1/+8
| | | | | | | Found when updating test 1395, which I did to increase test coverage of this source file... Closes #1535
* test1538: fix typoDaniel Stenberg2017-06-021-1/+1
|
* test1538: verify the libcurl strerror API callsDaniel Stenberg2017-06-024-2/+205
|
* test1537: dedicated tests of the URL (un)escape API callsDaniel Stenberg2017-06-024-2/+134
| | | | Closes #1530
* coverage: run event tests tooDaniel Stenberg2017-06-021-0/+4
| | | | ... the torture ones are commented out only because they are slooooow.
* build: provide easy code coverage measuringDaniel Stenberg2017-06-021-6/+6
| | | | Closes #1528
* lib583: fix compiler warningMarcel Raad2017-05-311-4/+4
| | | | | | | | | 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]
* libtest/lib574.c: use correct callback protoDaniel Stenberg2017-05-311-2/+4
|
* test557: fix ubsan runtime error due to int left shiftJay Satiro2017-05-291-2/+6
| | | | | | | - 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
* tests: removed some redundant empty <stdout> sectionsDan Fandrich2017-05-284-8/+0
|
* runtests.pl: removed <precommand> featureDan Fandrich2017-05-281-15/+0
| | | | | This hasn't been used in over a decade. <precheck> can still be used to run commands before the main test.
* runtests.pl: removed unused arguments to valgrindparseDan Fandrich2017-05-272-4/+2
|
* time: fix type conversions and compiler warningsMichael Kaufmann2017-05-246-58/+14
| | | | | | | | | Fix bugs and compiler warnings on systems with 32-bit long and 64-bit time_t. Reviewed-by: Daniel Stenberg Closes #1499
* redirect: store the "would redirect to" URL when max redirs is reachedDaniel Stenberg2017-05-232-1/+62
| | | | | | | | | Test 1261 added to verify. Reported-by: Lloyd Fournier Fixes #1489 Closes #1497
* tests: stabilize test 1034Michael Kaufmann2017-05-201-1/+5
| | | | | | | 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
* SecureTransport/DarwinSSL: Implement public key pinningmoparisthebest2017-05-151-0/+1
| | | | Closes #1400
* lib510: don't write past the end of the buffer if it's too smallDan Fandrich2017-05-131-0/+4
|
* tests: added missing keywords "chunked Transfer-Encoding"Dan Fandrich2017-05-1310-2/+11
|
* tests: made a couple of prechecks consistent with othersDan Fandrich2017-05-133-7/+2
| | | | | | | | | | 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).
* tests: remove superfluous test 1399Richard Hsu2017-05-102-44/+1
| | | | | | | | | | | | @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
* tests: make test file names more uniqueDan Fandrich2017-05-0913-34/+38
| | | | | | 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.
* tests: removed redundant --trace-ascii argumentsDan Fandrich2017-05-0912-12/+12
| | | | | This is already added by the test suite; it's not clear why all these tests had it, unless it's cargo-culting.
* tests: list the primary server first in the server sectionDan Fandrich2017-05-092-2/+2
|
* curl: generate the --help outputDaniel Stenberg2017-05-081-2/+2
| | | | | | | | | | ... 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
* tests: updated for modified fake randomDaniel Stenberg2017-05-0833-44/+44
|
* tests: give each stunnel.conf file a unique nameDan Fandrich2017-05-082-2/+3
| | | | | Otherwise, subsequent uses of stunnel overwrite the configuration file of previous invocations so they can no longer be inspected.
* tftpd: fix signed/unsigned mismatch warningsMarcel Raad2017-05-081-3/+3
| | | | alarm's argument is unsigned.
* libtest: fix MinGW-w64 warningsMarcel Raad2017-05-086-6/+6
| | | | | | 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.
* runtests: fix "use of undefined value" warning in -R handlingDaniel Stenberg2017-05-081-1/+5
|
* test537: use correct variable typeMarcel Raad2017-05-081-2/+2
| | | | | | | Avoids narrowing conversion warnings because rlim_t is usually unsigned long. Closes https://github.com/curl/curl/pull/1469
* runtests.pl: simplify the datacheck read sectionDan Fandrich2017-05-062-28/+17
| | | | Also, document that numbered datacheck sections are possible.
* tests: fix -Wcast-qual warningsMarcel Raad2017-05-056-10/+11
| | | | Avoid casting string literals to non-const char *.
* tests/server: run checksrc by default in debug-buildsDaniel Stenberg2017-05-051-1/+6
|
* unit1305: fix compiler warningMarcel Raad2017-05-051-5/+2
| | | | calloc and ai_addrlen expect different (usually unsigned) types.
* runtests: use -R for random orderDaniel Stenberg2017-05-052-5/+5
| | | | Suggested-by: Dan Fandrich
* runtests: add -o to run test cases in scrambled orderDaniel Stenberg2017-05-042-6/+27
| | | | | | ... instead of numerical order. Closes #1466
* 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]
* test557: set a known good numeric localeDan Fandrich2017-05-042-5/+13
| | | | | | | | 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.
* test559: verify use of minimum CURLOPT_BUFFERSIZEDaniel Stenberg2017-05-044-2/+111
|
* Telnet: Write full buffer instead of byte-by-byteRichard Hsu2017-05-022-1/+44
| | | | | | | | 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
* 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.