junit test question

Thomas Wuerthinger thomas.wuerthinger at oracle.com
Fri May 3 15:23:08 PDT 2013

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