Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7CEFFCEC9 for ; Fri, 4 May 2012 21:35:40 +0000 (UTC) Received: (qmail 66931 invoked by uid 500); 4 May 2012 21:35:39 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 66844 invoked by uid 500); 4 May 2012 21:35:39 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 66836 invoked by uid 99); 4 May 2012 21:35:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 21:35:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of i.galic@brainsware.org designates 188.40.115.121 as permitted sender) Received: from [188.40.115.121] (HELO mail.brainsware.org) (188.40.115.121) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 21:35:33 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.brainsware.org (Postfix) with ESMTP id 7167EA8057 for ; Fri, 4 May 2012 21:35:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at brainsware.org Received: from mail.brainsware.org ([127.0.0.1]) by localhost (mail.brainsware.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TnhCXGx8ClZA for ; Fri, 4 May 2012 21:35:10 +0000 (UTC) Received: from mail.brainsware.org (mail.brainsware.org [188.40.115.121]) by mail.brainsware.org (Postfix) with ESMTP id 84EFE880A8 for ; Fri, 4 May 2012 21:35:10 +0000 (UTC) Date: Fri, 04 May 2012 21:35:10 -0000 (UTC) From: Igor =?utf-8?Q?Gali=C4=87?= To: dev@httpd.apache.org Subject: Re: Adding unit tests to httpd? Message-ID: In-Reply-To: <201205042327.25659.sf@sfritsch.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Originating-IP: [188.20.81.138] X-Mailer: Zimbra 7.0.0_GA_3077 (ZimbraWebClient - FF3.0 (Linux)/7.0.0_GA_3077) X-Virus-Checked: Checked by ClamAV on apache.org ----- Original Message ----- > Hi, > > there are some parts of httpd where unit tests would allow easier > testing or more complete test coverage than tests written for the > perl > framework. Examples include the ap_pcfg_* functions, the varbuf API, > the regex plus API, and new interfaces that are not yet used by any > module. > > Therefore, I am thinking about adding unit tests to httpd. For > maximum > usefulness, such unit tests should be able to access functions that > are not exported (including static functions). I could think of a few > ways to achive this: [snip] > Any comments? I know the Subversion project has a very complete unit test suit. How do they approach this? > Cheers, > Stefan i -- Igor Gali=C4=87 Tel: +43 (0) 664 886 22 883 Mail: i.galic@brainsware.org URL: http://brainsware.org/ GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE