Subject: Proposal for unittests

Proposal for unittests

From: Patrick Valsecchi <pvalsecc_at_cisco.com>
Date: Fri, 26 Apr 2013 09:47:02 +0200

Hi,

In attachment, you'll find a small prototype of a unittest suite for
c-ares. I didn't integrate it with the autotools stuff, since I don't
know it (we use cmake). For the moment, it is only testing the
ares_parse_txt_reply function.

I've used the simplest C testing framework I've found (CuTest) and I've
fixed it a bit to remove a few memory leaks that were detected by valgrind.

What do you all think? Is the direction I'm taking OK with you?

Thanks and CU

Received on 2013-04-26