From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Przemys=C5=82aw_Wojnowski?= Newsgroups: gmane.emacs.devel Subject: Testing library for C code Date: Thu, 08 Oct 2015 13:36:30 +0200 Message-ID: <60744168ef0e5c54fe322cc55ad89f6f@mail.iq.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1444304307 23533 80.91.229.3 (8 Oct 2015 11:38:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2015 11:38:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 08 13:38:15 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from eggs.gnu.org ([208.118.235.92]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zk9WZ-0004zO-5G for ged-emacs-devel@m.gmane.org; Thu, 08 Oct 2015 13:38:15 +0200 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zk9VJ-0001nn-FI for ged-emacs-devel@m.gmane.org; Thu, 08 Oct 2015 07:38:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9VI-0001lx-Vo for ged-emacs-devel@m.gmane.org; Thu, 08 Oct 2015 07:36:57 -0400 Original-Received: from localhost ([::1]:33539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9VI-0004n0-Rg for ged-emacs-devel@m.gmane.org; Thu, 08 Oct 2015 07:36:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9V2-0004mu-3i for emacs-devel@gnu.org; Thu, 08 Oct 2015 07:36:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zk9Uw-0000js-QX for emacs-devel@gnu.org; Thu, 08 Oct 2015 07:36:40 -0400 Original-Received: from smtp14.iq.pl ([86.111.240.248]:28530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9Uw-0000f0-I5 for emacs-devel@gnu.org; Thu, 08 Oct 2015 07:36:34 -0400 Original-Received: (qmail 20590 invoked from network); 8 Oct 2015 11:36:30 -0000 Original-Received: from unknown (HELO roundcube.iq.pl) ([86.111.241.60]) (envelope-sender ) by r240-234.iq.pl with SMTP for ; 8 Oct 2015 11:36:30 -0000 Original-Received: from [89.174.214.74] by roundcube.iq.pl with HTTP (HTTP/1.1 POST); Thu, 08 Oct 2015 13:36:30 +0200 X-Sender: esperanto@cumego.com User-Agent: Roundcube Webmail X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 Xref: news.gmane.org gmane.emacs.devel:191065 Archived-At: Hello everybody, I'm looking at libraries for testing C code and I'm wondering if it's acceptable to use C++ to write the tests for Emacs' C code? Simply there are more choices when C++ can be used (for example googletest, cppunit). But if not, then there are C-only options too (for example https://cmocka.org/). The important part is breaking dependencies, which allow to run tests in isolation. Mocks are standard way do do it. Thanks, Przemysław