diff options
author | Richard Leitner <richard.leitner@skidata.com> | 2018-08-13 23:33:51 +0200 |
---|---|---|
committer | Richard Leitner <richard.leitner@skidata.com> | 2018-08-14 14:12:17 +0200 |
commit | cd17a0f9389594d931d859472c18d166d4996df1 (patch) | |
tree | 6663e19e7f6baa5000731916cb4438ef035a3f9f | |
parent | 2a60a5ca8ba99ec62f58c8b37f63c2a507681d18 (diff) | |
download | meta-java-cd17a0f9389594d931d859472c18d166d4996df1.tar.gz meta-java-cd17a0f9389594d931d859472c18d166d4996df1.tar.bz2 meta-java-cd17a0f9389594d931d859472c18d166d4996df1.zip |
oeqa: runtime: java: skip not supported version/arch combinations
The following OpenJDK Version/Target architecture combinations are
currently not supported with "compiled mode" aka JIT:
OpenJRE-8 on arm
OpenJDK-7 on aarch64
OpenJDK-7 on x86
OpenJDK-7 on x86-64
Therefore we skip the correspoding oeqa runtime tests for now.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
-rw-r--r-- | lib/oeqa/runtime/cases/java.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/oeqa/runtime/cases/java.py b/lib/oeqa/runtime/cases/java.py index feb572b..f2375a4 100644 --- a/lib/oeqa/runtime/cases/java.py +++ b/lib/oeqa/runtime/cases/java.py @@ -3,6 +3,7 @@ import os from oeqa.runtime.case import OERuntimeTestCase from oeqa.core.decorator.depends import OETestDepends from oeqa.core.decorator.oeid import OETestID +from oeqa.core.decorator.data import skipIfDataVar from oeqa.runtime.decorator.package import OEHasPackage class JavaTest(OERuntimeTestCase): @@ -50,8 +51,27 @@ class JavaTest(OERuntimeTestCase): msg = 'Incorrect mode: %s' % output self.assertIn(', interpreted mode)', output, msg=msg) + # As OpenJDK-7 doesn't support compiled mode (JIT) for all architectures yet + # we skip these tests for now. + @OEHasPackage(["openjdk-7-jre", "openjdk-7"]) @OETestDepends(['java.JavaTest.test_java_exists']) - def test_java_jar_comp_mode(self): + @skipIfDataVar('ARCH', 'arm64', 'OpenJDK 7 compiled mode not yet supported for aarch64') + @skipIfDataVar('ARCH', 'x86', 'OpenJDK 7 compiled mode not yet supported for x86') + @skipIfDataVar('ARCH', 'x86-64', 'OpenJDK 7 compiled mode not yet supported for x86-64') + def test_java7_jar_comp_mode(self): + status, output = self.target.run('java -showversion -Xcomp -jar /tmp/test.jar') + msg = 'Exit status was not 0. Output: %s' % output + self.assertEqual(status, 0, msg=msg) + + msg = 'Incorrect mode: %s' % output + self.assertIn(', compiled mode)', output, msg=msg) + + # As OpenJDK-8 doesn't support compiled mode (JIT) for arm yet we skip this + # test for now. + @OEHasPackage(["openjre-8", "openjdk-8"]) + @OETestDepends(['java.JavaTest.test_java_exists']) + @skipIfDataVar('ARCH', 'arm', 'OpenJDK 8 compiled mode not yet supported for arm') + def test_java8_jar_comp_mode(self): status, output = self.target.run('java -showversion -Xcomp -jar /tmp/test.jar') msg = 'Exit status was not 0. Output: %s' % output self.assertEqual(status, 0, msg=msg) |