From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22861 invoked by alias); 26 Dec 2009 05:45:20 -0000 Received: (qmail 22852 invoked by uid 22791); 26 Dec 2009 05:45:19 -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:45:12 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 3B6152BABAD for ; Sat, 26 Dec 2009 00:45:11 -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 TuzT+JCt5NxO for ; Sat, 26 Dec 2009 00:45:11 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id C20292BAB2F for ; Sat, 26 Dec 2009 00:45:10 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id EBF2BF5937; Sat, 26 Dec 2009 06:44:48 +0100 (CET) Date: Sat, 26 Dec 2009 05:45:00 -0000 From: Joel Brobecker To: gdb@sourceware.org Subject: Wiki: Started a page on how to write testcases for GDB Message-ID: <20091226054448.GW24363@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/msg00154.txt.bz2 Hello, 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 It's only a start, so please feel free to correct and complete. For instance, I just remembered that I forgot to mention gdb_test and gdb_test_multiple vs send_gdb/gdb_expect. Will do immediately. -- Joel