mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-26 19:30:08 +08:00
2ba5f77454
* All files: Updated copyright information. * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. From-SVN: r32387
32 lines
801 B
Java
32 lines
801 B
Java
// Copyright (c) 1998, 1999 Free Software Foundation
|
|
|
|
// Written by Tom Tromey <tromey@cygnus.com>
|
|
|
|
import gnu.testlet.*;
|
|
|
|
public class DejaGNUTestHarness extends SimpleTestHarness
|
|
{
|
|
static String dejasrcdir;
|
|
|
|
public String getSourceDirectory ()
|
|
{
|
|
return dejasrcdir;
|
|
}
|
|
|
|
private DejaGNUTestHarness ()
|
|
{
|
|
super (/* verbose */ true, /* debug */ false);
|
|
}
|
|
|
|
public static void main (String[] args)
|
|
{
|
|
dejasrcdir = args.length > 0 ? args[0] : "";
|
|
DejaGNUTestHarness harness = new DejaGNUTestHarness ();
|
|
// This might seem weird, given that we check args.length above.
|
|
// However, in some cases the expect code rewrites this runtest
|
|
// invocation to have an explicit name for the test to run.
|
|
harness.runtest (args[1]);
|
|
System.exit(harness.done());
|
|
}
|
|
}
|