cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to test SSL for libcurl

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 10 May 2011 12:02:28 -0700

On Tue, May 10, 2011 at 11:21:57AM -0700, ³ÂÌìÖÛ wrote:
>    I want to run some test cases to trigger various SSL error codes declared in
> libcurl. But it seems like only test405 verify against CURLE_SSL_CONNECT_ERROR.
> I wonder if there are other test cases can be used? Thanks in advance!

You can take a look at the test cases yourself. Most of the ones that test
failure cases have the FAILURE keyword set, and they'll usually have an
<errorcode> section. The line:

cd tests/data; for t in test*; do E=`xmlstarlet sel -T -t -v testcase/verify/errorcode "$t"`; test -n "$E" && echo $E $t; done

will give you a list of curl error codes and the test cases that test for
them.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-10