OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / libjava / testsuite / libjava.mauve / DejaGNUTestHarness.java
1 // Copyright (c) 1998, 1999  Free Software Foundation
2
3 // Written by Tom Tromey <tromey@cygnus.com>
4
5 import gnu.testlet.*;
6
7 public class DejaGNUTestHarness extends SimpleTestHarness
8 {
9   static String dejasrcdir;
10
11   public String getSourceDirectory ()
12   {
13     return dejasrcdir;
14   }
15
16   private DejaGNUTestHarness ()
17   {
18     super (/* verbose */ true, /* debug */ false);
19   }
20
21   public static void main (String[] args)
22   {
23     dejasrcdir = args.length > 0 ? args[0] : "";
24     DejaGNUTestHarness harness = new DejaGNUTestHarness ();
25     // This might seem weird, given that we check args.length above.
26     // However, in some cases the expect code rewrites this runtest
27     // invocation to have an explicit name for the test to run.
28     harness.runtest (args[1]);
29     System.exit(harness.done());
30   }
31 }