|
Last change
on this file since 1465 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
801 bytes
|
| Line | |
|---|
| 1 | // Copyright (c) 1998, 1999 Free Software Foundation
|
|---|
| 2 |
|
|---|
| 3 | // Written by Tom Tromey <[email protected]>
|
|---|
| 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 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.