summaryrefslogtreecommitdiffstatshomepage
path: root/tests/jni/system_out.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-14 00:56:01 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-14 00:56:01 +0300
commit2430dfac310fb18f3079e493e8a279a2d3d98e34 (patch)
tree5c23f141babcebc2ce3efe1d08546880bc5edc78 /tests/jni/system_out.py
parentfe29cc192dd47c236afe5e6daeb25636e45c1075 (diff)
downloadmicropython-2430dfac310fb18f3079e493e8a279a2d3d98e34.tar.gz
micropython-2430dfac310fb18f3079e493e8a279a2d3d98e34.zip
tests/jni: Start adding modjni tests.
These are currently not intended to run with the rest of testsuite, as they require dependencies and special environment setup anyway (drafted in tests/jni/README).
Diffstat (limited to 'tests/jni/system_out.py')
-rw-r--r--tests/jni/system_out.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/jni/system_out.py b/tests/jni/system_out.py
new file mode 100644
index 0000000000..7a1f180306
--- /dev/null
+++ b/tests/jni/system_out.py
@@ -0,0 +1,9 @@
+import sys
+try:
+ import jni
+ System = jni.cls("java/lang/System")
+except:
+ print("SKIP")
+ sys.exit()
+
+System.out.println("Hello, Java!")