junit test question

Deneau, Tom tom.deneau at amd.com
Fri May 3 16:01:48 PDT 2013


Will look into this but this looks like it will help.

-- Tom

From: Thomas Wuerthinger [mailto:thomas.wuerthinger at oracle.com]
Sent: Friday, May 03, 2013 5:23 PM
To: Deneau, Tom
Cc: graal-dev at openjdk.java.net
Subject: Re: junit test question

Can you use the Assume functionality of JUnit [1]?

If possible, we would like to keep the "mx unittest" harness simple - but we can definitely adjust it if necessary.

- thomas

[1] http://junit.sourceforge.net/javadoc/org/junit/Assume.html

On May 3, 2013, at 11:34 PM, "Deneau, Tom" <tom.deneau at amd.com<mailto:tom.deneau at amd.com>> wrote:


As you know, some AMD folks are working on an graal HSAIL backend and
when the HSAIL spec becomes public we want to push this out to the
public graal repository.

We have some HSAIL Junit tests which dispatch thru HSA and compare to
Java results and so will only work on a target that supports HSAIL
(either in hardware or thru a simulator).

Are these kinds of tests OK to put in graal?  That is, do graal users
expect to be able to run all the junit tests in all the projects (using
the global 'mx unittest' or do they typically only run the tests from
selected projects.

Or is there a way to indicate that tests in certain projects should
not be run by default when someone enters the global "mx unittest" (similar to
the way we don't build certain projects unless say jdk8 is being
used).

-- Tom




More information about the graal-dev mailing list