Test Interface for Truffle: Good for PE tests?

Stefan Marr java at stefan-marr.de
Fri Mar 31 11:16:50 UTC 2017


Hi:

I just saw that a recent commit [1] introduced a test interface for Truffle.

What exactly is this good for? Can I use this to easily check for instance that specific operations properly constant fold?

I looked a little at the documentation. Does the warmup annotation imply that after the given number of iterations, compilation is forced for me? This isn’t quite clear to me from the javadoc.

If this can be used to build checks that code constant folds, I am also wondering how the tests can be ignored/skipped when unit tests are executed without Graal. Are there now facilities, to test explicitly that the TruffleRuntime supports compilation? There has been a long standing feature request for such an API [2].

Thanks
Stefan

[1]: https://github.com/graalvm/truffle/commit/1dce7adb2833abc2aa3f3a4bcd0e0c288a472faf
[2]: https://github.com/graalvm/truffle/issues/47

-- 
Stefan Marr
Johannes Kepler Universität Linz
http://stefan-marr.de/research/





More information about the graal-dev mailing list