From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NA91S-0005j1-M6 for mharc-grub-devel@gnu.org; Mon, 16 Nov 2009 16:22:06 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NA91Q-0005hj-0E for grub-devel@gnu.org; Mon, 16 Nov 2009 16:22:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NA91L-0005fQ-Sd for grub-devel@gnu.org; Mon, 16 Nov 2009 16:22:03 -0500 Received: from [199.232.76.173] (port=41078 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA91L-0005fN-HN for grub-devel@gnu.org; Mon, 16 Nov 2009 16:21:59 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:45106 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NA91K-0001Cn-6O for grub-devel@gnu.org; Mon, 16 Nov 2009 16:21:58 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1NA91I-00046b-QC for grub-devel@gnu.org; Mon, 16 Nov 2009 22:21:57 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1NA91I-00020E-6W for grub-devel@gnu.org; Mon, 16 Nov 2009 22:21:56 +0100 Date: Mon, 16 Nov 2009 22:21:56 +0100 From: Robert Millan To: The development of GNU GRUB Message-ID: <20091116212156.GA7599@thorin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [RFC][PATCH] Basic unit testing support for GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 21:22:04 -0000 On Fri, Nov 13, 2009 at 11:15:41PM +0530, BVK wrote: > Hi, > > > Attached is the (experimental branch) patch for unit testing that I > have in mind for GRUB. Please let me know your comments. > > It provides "make check" target which would build and execute test > programs from "tests" directory. We can write small programs to test > specific functions in GRUB. For example, attached patch has sample > program comparing grub_sprintf behavior against standard sprintf > output (from glibc). > > Note that it currently has few gotchas, like using TARGET_CC instead > of BUILD_CC, no support for XPASS, XFAIL tests, etc. Some parts don't follow our coding style; please check with indent(1) utility, it should produce the right indentation. Also, we use C-style /**/ syntax for comments. Ah, and could you include a ChangeLog entry? Thank you! -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."