summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* imap test server: fix typo in name of SELECT_imap() sub definitionYang Tse2013-01-051-1/+1
| | | | IMAP test server breaking typo introduced with commit b708a522a1
* imap test server: Added support for the CAPABILITY commandSteve Holme2013-01-041-2/+23
| | | | | Added support for the CAPABILITY command in preparation of upcoming changes.
* writeout: -w now supports remote_ip/port and local_ip/portDaniel Stenberg2013-01-032-1/+61
| | | | | | Added mention to the curl.1 man page. Test case 1223 verifies remote_ip/port.
* test 1222: 8 chars object name generation && test 1221: adjustmentsYang Tse2013-01-033-2/+48
|
* build: make use of 93 lib/*.c renamed filesYang Tse2013-01-036-29/+29
| | | | | | 93 *.c source files renamed to use our standard naming scheme. This change affects 77 files in libcurl's source tree.
* build and tests: curl_10char_object_name() shell functionYang Tse2013-01-023-1/+54
| | | | | | | | | | | | | | | | | | lib/objnames.inc provides definition of curl_10char_object_name() shell function. The intended purpose of this function is to transliterate a (*.c) source file name that may be longer than 10 characters, or not, into a string with at most 10 characters which may be used as an OS/400 object name. Test case 1221 does unit testng of this function and also verifies that it is possible to generate distinct short object names for all curl and libcurl *.c source file names. lib/objnames-test.sh is the shell script used for test case 1221. tests/runtests.pl modified to accept shell script test cases. More details inside lib/objnames.inc and lib/objnames-test.sh
* build: make use of 76 lib/*.h renamed filesYang Tse2012-12-28103-163/+164
| | | | | | 76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
* curl tool: renaming hugehelp files to tool_hugehelpYang Tse2012-12-261-1/+1
|
* sockfilt.c: commit b44da5a82a follow-up 2Yang Tse2012-12-261-4/+5
|
* sockfilt.c: commit b44da5a82a follow-upYang Tse2012-12-261-1/+1
|
* sockfilt.c: fix some compiler warningsYang Tse2012-12-261-15/+25
|
* lib556: enable VERBOSE to ease debugging on failuresDaniel Stenberg2012-12-251-0/+1
|
* socklift.c: Quick fix to re-add missing codeMarc Hoersken2012-12-251-0/+2
|
* socklift.c: Added select_ws function to support WindowsMarc Hoersken2012-12-251-12/+144
| | | | | | WinSock select() does not support standard file descriptors, it can only check SOCKETs. The following function is an attempt to create a select() function with support for other handles.
* Enable tests 1503, 1504 and 1505Yang Tse2012-12-251-3/+0
|
* test 1504 and 1505: same as 1502 but with different cleanup sequencesYang Tse2012-12-256-4/+146
|
* test 1503: same as 1502 but with a different cleanup sequenceYang Tse2012-12-235-2/+77
|
* test 1502: OOM handling fixesYang Tse2012-12-233-72/+55
|
* runtests.pl: prepend $srcdir to HTTPTLS server config files pathYang Tse2012-12-221-2/+2
|
* lib543.c: OOM handling fixesYang Tse2012-12-211-3/+6
|
* libntlmconnect.c: fix compiler warnings and OOM handlingYang Tse2012-12-191-48/+48
|
* setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>Yang Tse2012-12-1410-68/+2
| | | | Inclusion of top two most included header files now done in setup_once.h
* runtests and friends: Do not add undefined values to @INCFabian Keil2012-12-067-7/+14
| | | | | On FreeBSD this fixes the warning: Use of uninitialized value $p in string eq at /usr/local/lib/perl5/5.14.2/BSDPAN/BSDPAN.pm line 36.
* libtest: fix some compiler warningsYang Tse2012-12-056-18/+44
|
* build: explain current role of LIBS in our Makefile.am filesYang Tse2012-12-043-5/+6
| | | | | | | BLANK_AT_MAKETIME may be used in our Makefile.am files to blank LIBS variable used in generated makefile at makefile processing time. Doing this functionally prevents LIBS from being used for all link targets in given makefile.
* testcurl.pl: build example programs for several autobuildsYang Tse2012-11-301-1/+21
| | | | Affected autobuilds: IRIX, AIX, Tru64 and AIX.
* build: prevent global LIBS from influencing libtest build targetsYang Tse2012-11-302-27/+39
|
* build: prevent global LIBS from influencing test server build targetsYang Tse2012-11-291-0/+4
|
* build: fix Windows build targets damaged since commit 550e403f00Yang Tse2012-11-282-2/+2
|
* build: avoid linkage of directly unused librariesYang Tse2012-11-283-8/+34
|
* dd missing NTLM feature for tests 2025, and 2028 to 2032Yang Tse2012-11-276-0/+18
|
* avoid mixing of enumerated type with another typeYang Tse2012-11-261-20/+16
|
* Remove stray CRLF in chunk-encoded content-free request bodiesFabian Keil2012-11-262-2/+0
| | | | | | | | .. that are sent when auth-negotiating before a chunked upload or when setting the 'Transfer-Encoding: chunked' header and intentionally sending no content. Adjust test565 and test1333 accordingly.
* test: offer "automake" output and check for perl betterDaniel Stenberg2012-11-232-38/+54
| | | | | | | | | | | runtests.pl -am now uses the "PASS/FAIL: [desc]" output for each executed test. You can run 'make test-am' in the root build directory to invoke that. The reason for this output style is to better allow generic test suite parsers to also grok our test output. The test Makefile now also tests that perl was indeed found and that the PERL variable points to an executable before it tries to run the main test perl script runtests.pl,
* Test 206: Use a Content-Length header for the 407 responseFabian Keil2012-11-211-0/+2
| | | | Otherwise curl would have to guess where the body ends.
* Test 206: Don't respond to a succesful CONNECT request with a bodyFabian Keil2012-11-211-1/+0
| | | | | | It's against the spec and caused test failures when header and response were read from the network separately in which case bug #39 wasn't triggered.
* Get test 2032 working when using valgrindFabian Keil2012-11-191-1/+1
| | | | | If curl_multi_fdset() sets maxfd to -1, the socket detection loop is skipped and thus !found_new_socket is no cause for alarm.
* test2032: spurious failure caused by premature terminationKamil Dudka2012-11-191-2/+2
| | | | Bug: http://curl.haxx.se/mail/lib-2012-11/0095.html
* Fix comment typos in test 517Fabian Keil2012-11-191-2/+2
|
* Test 92 and 194: normalize spaces in the Server headersFabian Keil2012-11-192-2/+2
| | | | | | It makes no difference from curl's point of view but makes it more convenient to use the tests with a lws-normalizing proxy between curl and the test server.
* Add a HOSTIP precheck for tests 31 and 1105Fabian Keil2012-11-192-0/+6
| | | | | They currently only work for 127.0.0.1 which is hardcoded and can't be easily changed.
* Let test 8 work as long as %HOSTIP ends with ".0.0.1"Fabian Keil2012-11-191-2/+5
| | | | .. and add a precheck to skip the test otherwise.
* Add --resolve to the keywords and name of test 1318Fabian Keil2012-11-191-1/+2
| | | | | This makes it easier to skip it automatically when the test suite is used with external proxies.
* Add FTP keywords for a couple of currently keyword-less FTP testsFabian Keil2012-11-1921-0/+125
|
* Add keywords for a couple of currently keyword-less HTTP testsFabian Keil2012-11-1911-0/+70
|
* Use carriage returns in all headers in test 31Fabian Keil2012-11-191-19/+19
| | | | Trailing spaces were left unmodifed, assuming they were intentional.
* Do not mix CRLF and LF header endings in a couple of HTTP testsFabian Keil2012-11-1916-112/+112
| | | | | | | | | | | | Consistently use CRLF instead. The mixed endings weren't documented so I assume they were unintentional. This change doesn't matter for curl itself but makes using the tests with a proxy between curl and the test server more convenient. Tests that consistently use no carriage returns were left unmodified as one can easily work around this.
* fixed memory leak: CURLOPT_RESOLVE with multi interfaceDaniel Stenberg2012-11-184-2/+200
| | | | | | | | | | DNS cache entries populated with CURLOPT_RESOLVE were not properly freed again when done using the multi interface. Test case 1502 added to verify. Bug: http://curl.haxx.se/bug/view.cgi?id=3575448 Reported by: Alex Gruz
* mem-include-scan: verify memory #includesDaniel Stenberg2012-11-174-2/+122
| | | | | | | | | | | | | | | | If we use memory functions (malloc, free, strdup etc) in C sources in libcurl and we fail to include curl_memory.h or memdebug.h we either fail to properly support user-provided memory callbacks or the memory leak system of the test suite fails. After Ajit's report of a failure in the first category in http_proxy.c, I spotted a few in the second category as well. These problems are now tested for by test 1132 which runs a perl program that scans for and attempts to check that we use the correct include files if a memory related function is used in the source code. Reported by: Ajit Dhumale Bug: http://curl.haxx.se/mail/lib-2012-11/0125.html
* Fix the libauthretry changes from 7c0cbcf2f61Fabian Keil2012-11-161-3/+3
| | | | They broke the NTLM tests from 2023 to 2031.