This is the mail archive of the mauve-discuss@sources.redhat.com mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Test of primitive types




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
test.

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.

Artur


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]