Another option for a testsuite tool you might want to consider
is the Tcl/Java integration tools. They were originally written
at Sun (SunScript unit) and are now going to be managed by
Scriptics. The Tcl/Java stuff is an API with two implementations.
The first is called TclBlend which is a native lib that uses JNI
and Java Reflection to create and call methods on Java objects
at runtime. The second implementation, called Jacl, is a Tcl
interpreter written in Java. Both of these tools are Open Source
(I know because I have been working on the new 1.1a1 version that
will be released next week). Using these tools to create test
cases for java would be really easy. Here is a quick example
of a little test you could write for the String class.


set str [java::new String "hello there"]
set char [$str charAt 4]
if {$char != "o"} {
  puts stderr "error in String.charAt"
  exit -1
}

Note, you do not have to compile this, it is interpreted!
Both of these tools are known to work in Sun JDKs 1.1 and 1.2
and the "almost" work in japhar (japhar seems to have problems
loading language resource files). If any of this sounds cool
drop me a note and I can provide more info or help out.

> > checking for Guile... ./configure: guile-config: not found
> > configure: cannot find guile-config; is Guile installed?
> 
> I'm responsible for sticking in that Guile bit.  Paul's testsuite
> stuff requires you have the most recent release of Guile installed.  A
> proper install of this Guile will give you the necessary
> autoconf/automake macros.  You can pick up Guile from prep.ai.mit.edu
> of course.  It looks like the testsuite is still not nailed down since
> we're going to be developing a testsuite similar to the JCK (my guess)
> with Transvirtual and Cygnus (this info is from the web pages).

This is not "official" or anything, but I have been able to get japhar
to run "simple" java programs on my Solaris 2.6 box. You must compile
with gcc (the c libs for acc on solaris will crash with the japhar code)
and work around a couple of little problems (like the zlib code not
working for uncompressed jar files), but the code in the japhar CVS
works on solaris.

> > As soon as we get 1.0b1 of JServ out the door I plan on investigating
> > using classpath/japhar instead of Sun's JDK.  This along with a
> > Solaris port should hopefully make up for picking your brains and
> > copying your build environment now.  This will have to wait until I
> > graduate in December though.

Reply via email to