This is the mail archive of the
mailing list for the Mauve project.
Re: Test of primitive types
- To: Daniel Bonniot <Daniel dot Bonniot at inria dot fr>
- Subject: Re: Test of primitive types
- From: Artur Biesiadowski <abies at pg dot gda dot pl>
- Date: Fri, 20 Apr 2001 00:22:43 +0200
- CC: mauve-discuss at sourceware dot cygnus dot com
- References: <3ADF58C8.46CD78DA@inria.fr>
Daniel Bonniot wrote:
> I searched in Mauve CVS for tests of primitive types and operations (integer
> arithmetic, promotion, ...), and other core java features. It seems there is none,
> but only tests of core library classes.
> Did I overlook some part? Would it make sense for Mauve to include such tests?
> Maybe not, as the FAQ says Mauve is a test for the core libraries. But these tests
> would be useful for java (and alikes) compiler writers.
There is a problem with such tests in current framework. If you want to
test such things, you cannot rely on testing framework written in java.
You cannot check if 2+2==4 in same code which later compares this answer
with correct one and adds passed/failures together :)
Same goes for many other core features - if jvm needs testing for such
things, it is probable that it might break at any moment in unexpected
way. For such kind of stuff I think you should use testing framework
from other environment - bash/expect and fork separate jvm for every
Mauve is core lib test, not jvm test and I believe it should focus and
stay on that subject. Nailing few jvm test on top of it won't help
anything. Full jvm testing is a subject for different project. And java
compiler testing is a subject for yet another one (in this case you
would need to have fully trusted jvm and fully trusted core lib).
Just my $0.02.