This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make tests compatible for gcj's testsuite


Hi,
thanks for that introduction. Unfortunately I think there is more to do because
of the way the test works.

The test setup currently does:
- compiles Java source to bytecode
- removes a class file

- jars the .class files together
- BC-compiles the jar
- creates a GCJ DB and registers the classes
- runs the tests with gij and the correct property to let it find the gcjdb file

The test setup can also be run with the interpreter only but still I need the
first two actions for this.

cya
Robert

Bryce McKinlay wrote:
> Hi Robert,
> 
> Its easy to add tests to the libgcj test suite. All you need to do is
> place the test case (in one .java file) in
> libjava/testsuite/libjava.lang. The test class should generally be named
> after the bug number it is for, ie: PR24616.java. If the test produces
> some output, put the expected output in PR24616.out. If the test is
> expected/known to fail, similarly add a .xfail file.
> 
> Once its in there, just run "make check" and the testsuite should find
> the new test automatically. You can also run an individual test like so:
> 
> make check RUNTESTFLAGS="lang.exp=PR24616"
> 
> Bryce
> 
> Robert Schuster wrote:
> 
>> I will soon commit my patches for the linker and verifier (waiting for
>> the
>> testsuites to finish).
>>
>> For these I used a test setup which is part of this PR:
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616
>>
>> Another similar test setup is attached to this PR and should help
>> Andrew Haley
>> to resolve the issues:
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25265
>>
>> I think it might be good to convert the tests into the format which is
>> used by
>> GCJ's testsuite which I am completely new to.
>>
>> It would be fine if you could give me some pointers how I should start
>> or what I
>> should learn to make that.
>>
>> If you are able to convert the tests in no time yourself and would
>> adapt my
>> tests that would be appreciated, too. ;)
>>   
> 
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature


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