diff options
author | Brian Jones <cbj@gnu.org> | 1998-06-20 22:38:10 +0000 |
---|---|---|
committer | Brian Jones <cbj@gnu.org> | 1998-06-20 22:38:10 +0000 |
commit | 6a189385beb466e65cc1c0afd8704bfd41787fe1 (patch) | |
tree | 675857410e563c45660d7940b5b0b41a07df6c93 /testsuite/java.sun.tools | |
parent | ee1d638612de37a12e0484b0f4de4c8ad2e94c38 (diff) | |
download | classpath-6a189385beb466e65cc1c0afd8704bfd41787fe1.tar.gz |
initial checkin
Diffstat (limited to 'testsuite/java.sun.tools')
-rw-r--r-- | testsuite/java.sun.tools/ClassPathTest.java | 14 | ||||
-rw-r--r-- | testsuite/java.sun.tools/JavacTest.java | 22 | ||||
-rw-r--r-- | testsuite/java.sun.tools/execute.exp | 7 |
3 files changed, 43 insertions, 0 deletions
diff --git a/testsuite/java.sun.tools/ClassPathTest.java b/testsuite/java.sun.tools/ClassPathTest.java new file mode 100644 index 000000000..9e17cc30f --- /dev/null +++ b/testsuite/java.sun.tools/ClassPathTest.java @@ -0,0 +1,14 @@ +import sun.tools.java.*; + +public class ClassPathTest { + public static void main(String args[]) { + ClassPath cp = + new ClassPath((String)System.getProperties().get("java.class.path")); + ClassFile cf = cp.getFile("ClassPathTest.class"); + try { + System.out.println("PASSED: "+cp.toString() +" "+ cf.toString()); + } catch (Exception e) { + System.out.println("FAILED: " + e.toString()); + } + } +} diff --git a/testsuite/java.sun.tools/JavacTest.java b/testsuite/java.sun.tools/JavacTest.java new file mode 100644 index 000000000..b7ac5243f --- /dev/null +++ b/testsuite/java.sun.tools/JavacTest.java @@ -0,0 +1,22 @@ +import java.lang.*; + +public class JavacTest { + + public static void main (String args[]) { + try { + + + sun.tools.javac.Main javac = new sun.tools.javac.Main(System.err, "javac"); + + String[] strarr = new String[1]; + strarr[0] = "java.sun.tools/JavacTest.java"; + + javac.compile(strarr); + + System.out.println("PASSED: javac worked"); + System.exit(0); + } catch (Exception e) { + System.out.println("FAILED: "+e); + } + } +} diff --git a/testsuite/java.sun.tools/execute.exp b/testsuite/java.sun.tools/execute.exp new file mode 100644 index 000000000..1092485c0 --- /dev/null +++ b/testsuite/java.sun.tools/execute.exp @@ -0,0 +1,7 @@ +# +# Author: Petter Reinholdtsen <pere@td.org.uit.no> + +# Load support procs +load_lib java.exp + +test-java-source |