aboutsummaryrefslogtreecommitdiff
path: root/support/testing/tests/package/test_openjdk.py
diff options
context:
space:
mode:
Diffstat (limited to 'support/testing/tests/package/test_openjdk.py')
-rw-r--r--support/testing/tests/package/test_openjdk.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/support/testing/tests/package/test_openjdk.py b/support/testing/tests/package/test_openjdk.py
index 5fbb500fbd..3a1d1a9b09 100644
--- a/support/testing/tests/package/test_openjdk.py
+++ b/support/testing/tests/package/test_openjdk.py
@@ -21,6 +21,7 @@ class TestOpenJdk(infra.basetest.BRTest):
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_OPENJDK=y
BR2_PACKAGE_OPENJDK_HELLO_WORLD=y
+ BR2_PACKAGE_OPENJDK_JNI_TEST=y
"""
def login(self):
@@ -40,3 +41,8 @@ class TestOpenJdk(infra.basetest.BRTest):
print(output)
self.assertEqual(exit_code, 0)
self.assertEqual(output, ["Hello, World"])
+
+ cmd = "java -cp /usr/bin JniTest"
+ output, exit_code = self.emulator.run(cmd, 120)
+ print(output)
+ self.assertEqual(exit_code, 0)