micropython/tests/jni
David Lechner 3dc324d3f1 tests: Format all Python code with black, except tests in basics subdir.
This adds the Python files in the tests/ directory to be formatted with
./tools/codeformat.py.  The basics/ subdirectory is excluded for now so we
aren't changing too much at once.

In a few places `# fmt: off`/`# fmt: on` was used where the code had
special formatting for readability or where the test was actually testing
the specific formatting.
2020-03-30 13:21:58 +11:00
..
README tests/jni: Start adding modjni tests. 2015-10-14 00:56:01 +03:00
list.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
list.py.exp tests/jni: Add test for working with container of List interface. 2015-11-13 01:33:09 +02:00
object.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
object.py.exp tests/jni: Test for basic object operations. 2015-10-24 01:20:34 +03:00
system_out.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
system_out.py.exp tests/jni: Start adding modjni tests. 2015-10-14 00:56:01 +03:00

README

Running "jni" module tests (as well as just using this module) requires
being able to load libjvm.so, which requires path to it set via
LD_LIBRARY_PATH environment variable. This path is not set automatically
and there is no easy way to guess it, because there can be installed
different implementations of JVM, for one implementation, there can be
different versions, and single version may include different variants
of JVM.

For example, for OpenJDK 7 on x86_64, following may work:

LD_LIBRARY_PATH=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server ./run-tests jni/*.py