This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: better control of Mauve tests


I'm committing the appended patch.  It changes the test suite to give
better control over Mauve tests; now you can select which tests to run
from the `dejagnu' command line.

1999-12-31  Tom Tromey  <tromey@cygnus.com>

	* libjava.mauve/mauve.exp (mauve_compute_uses): Let user select
	specific tests to run.

Tom

Index: libjava.mauve/mauve.exp
===================================================================
RCS file: /cvs/java/libgcj/libjava/testsuite/libjava.mauve/mauve.exp,v
retrieving revision 1.6
diff -u -r1.6 mauve.exp
--- mauve.exp	1999/07/31 23:52:52	1.6
+++ mauve.exp	2000/01/03 20:10:51
@@ -10,7 +10,7 @@
 # maps source file names onto list of objects required for link.
 proc mauve_compute_uses {aName} {
   upvar $aName uses
-  global env
+  global env runtests
 
   set fd [open classes r]
   set line [read $fd]
@@ -21,6 +21,11 @@
       continue
     }
     set item [join [split $item .] /].java
+
+    # User might have specified "mauve.exp=something.java".
+    if {! [runtest_file_p $runtests $item]} {
+      continue
+    }
 
     # Look for Uses line in source file.
     set fd [open $env(MAUVEDIR)/$item r]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]