From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 717 invoked by alias); 31 Jan 2007 18:30:21 -0000 Received: (qmail 696 invoked by uid 22791); 31 Jan 2007 18:30:19 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 31 Jan 2007 18:30:13 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l0VIUAim014201 for ; Wed, 31 Jan 2007 13:30:10 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l0VIU9s2031371 for ; Wed, 31 Jan 2007 13:30:10 -0500 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.12.8) with ESMTP id l0VIU9jR011226 for ; Wed, 31 Jan 2007 13:30:09 -0500 Message-ID: <45C0E033.2060808@redhat.com> Date: Wed, 31 Jan 2007 18:30:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: frysk Subject: frysk.expunit, Expect like functionality within JUnit Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00047.txt.bz2 Hello, The Expect program lets the user interact with a console based program, sending it input and checking its output. The existing testing framework dejagnu builds on expect. The package frysk.expunit provides functionality similar to Expect, but in a way that integrates into the JUnit framework. By doing this, developers: -> need only learn JUnit, and this extension, and not an entirely new language (tcl/tk) and test framework (dejagnu) -> are able to implement tests in a similar consistent manner, in particular, first problem indicates failure - frameworks such as dejagnu have a very different testing model, allowing a failing test to bumble on regardless With this in place I'll look at a few of the existing dejagnu tests, see how well they translate, and how workable the existing interfaces are. See http://sourceware.org/frysk/javadoc/public/frysk/expunit/package-summary.html for a simple example. Critic, expecially of the workability of the interfaces, most welcome. Andrew PS: This proved to be a good way of expanding the testing of frysk.sys.PseudoTerminal