From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25118 invoked by alias); 26 Dec 2009 05:56:11 -0000 Received: (qmail 25110 invoked by uid 22791); 26 Dec 2009 05:56:11 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Dec 2009 05:56:08 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 3C50E2BABC0 for ; Sat, 26 Dec 2009 00:56:07 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LuGUJF7Ct8DQ for ; Sat, 26 Dec 2009 00:56:07 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id BD11D2BABBF for ; Sat, 26 Dec 2009 00:56:06 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id DC6F0F5937; Sat, 26 Dec 2009 06:55:44 +0100 (CET) Date: Sat, 26 Dec 2009 05:56:00 -0000 From: Joel Brobecker To: gdb@sourceware.org Subject: Re: Wiki: Started a page on how to write testcases for GDB Message-ID: <20091226055544.GX24363@adacore.com> References: <20091226054448.GW24363@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091226054448.GW24363@adacore.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00155.txt.bz2 > I found that I was always asking myself the very same questions > every time I have to write a new testcase, so I had this secret > plan of writing a HOWTO, or a cookbook. I have just started a new > page in the GDB wiki, summarizing some of the things I know: > > http://sourceware.org/gdb/wiki/GDBTestcaseCookbook BTW: I should mention that the goal of this page is to help people write consistent testcases, simplify their writing by pointing out some useful convenience routines, helping avoiding common pitfals, etc. Right now, the testsuite looks like a genetic experiment: Every testcase is different from the other! To write a new testcase, you marry two existing ones, they have lots of sex, and then start producing new testcases that look like their parents, but are not quite like their parents. -- Joel