From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29609 invoked by alias); 5 Jan 2005 00:18:47 -0000 Mailing-List: contact mauve-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sources.redhat.com Received: (qmail 29559 invoked from network); 5 Jan 2005 00:18:36 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 5 Jan 2005 00:18:36 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j050Iae1029273 for ; Tue, 4 Jan 2005 19:18:36 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j050Iar12431 for ; Tue, 4 Jan 2005 19:18:36 -0500 Received: from tortoise.toronto.redhat.com (IDENT:U2FsdGVkX190m+6cLnZITIPNqEMiStQG0ccqX8i6OOE@tortoise.toronto.redhat.com [172.16.14.92]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j050IaoS016682 for ; Tue, 4 Jan 2005 19:18:36 -0500 Subject: [PATCH] Enable GUI tests by default From: Thomas Fitzsimmons To: mauve-discuss@sources.redhat.com Content-Type: multipart/mixed; boundary="=-c89mZk4uMrYqkf8ZZhPQ" Date: Wed, 05 Jan 2005 00:18:00 -0000 Message-Id: <1104884316.6374.168.camel@tortoise.toronto.redhat.com> Mime-Version: 1.0 X-SW-Source: 2005-q1/txt/msg00010.txt.bz2 --=-c89mZk4uMrYqkf8ZZhPQ Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 1021 Hi, I just committed this patch. It enables the GUI tests by default in both choose and choose-classes, allows setting of NATIVE on the command line and sets WM to /bin/true if metacity is not found. I also committed the gnu.testlet.java.awt.Robot tests. Tom 2005-01-04 Thomas Fitzsimmons * batch_run: Allow NATIVE to be set on the command line. Set WM to /bin/true if metacity is not found. * choose: Include GUI tests by default. * choose-classes: Likewise. * gnu/testlet/java/awt/Robot/mouseMove.java: New test. * gnu/testlet/java/awt/Robot/mousePress.java: Likewise. * gnu/testlet/java/awt/Robot/constructors.java: Likewise. * gnu/testlet/java/awt/Robot/createScreenCapture.java: Likewise. * gnu/testlet/java/awt/Robot/getPixelColor.java: Likewise. * gnu/testlet/java/awt/Robot/keyPress.java: Likewise. * gnu/testlet/java/awt/Robot/keyRelease.java: Likewise. * gnu/testlet/java/awt/Robot/mouseRelease.java: Likewise. * gnu/testlet/java/awt/Robot/mouseWheel.java: Likewise. --=-c89mZk4uMrYqkf8ZZhPQ Content-Description: Content-Disposition: inline; filename=mauve-gui-framework3.patch Content-Type: text/x-patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 2048 Index: batch_run =================================================================== RCS file: /cvs/mauve/mauve/batch_run,v retrieving revision 1.6 diff -u -r1.6 batch_run --- batch_run 4 Jan 2005 20:53:30 -0000 1.6 +++ batch_run 5 Jan 2005 00:09:39 -0000 @@ -44,8 +44,10 @@ COMPILER_FLAGS="-g" +if test "x$NATIVE" = "x"; then NATIVE= #NATIVE="true" +fi # Cleanup find gnu/testlet -name "*.class" | xargs rm -f @@ -69,6 +71,10 @@ XVFB=`which Xvfb` if test "x$WM" = "x"; then WM=`which metacity` + # check if we found metacity + if test "x$WM" = "x"; then + WM=`which true` + fi fi if test -z "$SHOW_GUI_TESTS"; then Index: choose =================================================================== RCS file: /cvs/mauve/mauve/choose,v retrieving revision 1.27 diff -u -r1.27 choose --- choose 4 Jan 2005 20:53:30 -0000 1.27 +++ choose 5 Jan 2005 00:09:39 -0000 @@ -121,7 +121,7 @@ done # By default, use JDK1.1. -test -z "$tags" && tags="JDK1.0 JDK1.1" +test -z "$tags" && tags="JDK1.0 JDK1.1 GUI" test -n "$verbose" && echo "tags = $tags" test -n "$verbose" && echo "spectags = $spectags" Index: choose-classes =================================================================== RCS file: /cvs/mauve/mauve/choose-classes,v retrieving revision 1.4 diff -u -r1.4 choose-classes --- choose-classes 26 Dec 2004 17:02:16 -0000 1.4 +++ choose-classes 5 Jan 2005 00:09:39 -0000 @@ -70,6 +70,10 @@ file="`echo $i | tr . /`" file_specs="$file_specs $file" ;; + GUI) + tags="$tags GUI $i" + test -z "$seen_dashdash" && spectags="$spectags $i" + ;; JAVA2) tags="$tags JDK1.0 JDK1.1 JDK1.2 $i" test -z "$seen_dashdash" && spectags="$spectags $i" @@ -118,7 +122,7 @@ done # By default, use JDK1.1. -test -z "$tags" && tags="JDK1.0 JDK1.1" +test -z "$tags" && tags="JDK1.0 JDK1.1 GUI" test -n "$verbose" && echo "tags = $tags" test -n "$verbose" && echo "spectags = $spectags" --=-c89mZk4uMrYqkf8ZZhPQ--