diff options
| author | Richard Leitner <richard.leitner@skidata.com> | 2018-08-21 15:03:44 +0200 |
|---|---|---|
| committer | Richard Leitner <richard.leitner@skidata.com> | 2018-10-02 07:59:06 +0200 |
| commit | ba6c8b1d94f55ef1a9e4f564590a45e2bf29e279 (patch) | |
| tree | 8e3fd3e16635d13c351766fbe2f867e1bcb21ec9 | |
| parent | f83992acbe737a1d8cc87e73c8983b7fa2f64a1b (diff) | |
| download | meta-java-ba6c8b1d94f55ef1a9e4f564590a45e2bf29e279.tar.gz | |
oeqa: runtime: java: enable test_java8_jar_comp_mode for armv7
As commit "openjdk-8: add aarch32 port 8u172b11" introduced support for
the aarch32 port of openjdk-8 enable the test_java8_jar_comp_mode test
for ARMv7 machines. This is done by skipping the test only for machines
which have armv{4-6} in their tunes.
Furthermore update the "Known Limitations" section in the README.
This patch depends on OE-Core rev 10b935c713748346aea6c36c2f41e0ae6c320821,
named "oeqa/core/decorator: add skipIfInDataVar"
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Acked-by: Henning Heinold <henning@itconsulting-heinold.de>
| -rw-r--r-- | README | 2 | ||||
| -rw-r--r-- | lib/oeqa/runtime/cases/java.py | 6 |
2 files changed, 5 insertions, 3 deletions
| @@ -78,7 +78,7 @@ Known Limitations/Bugs | |||
| 78 | OpenJDK: | 78 | OpenJDK: |
| 79 | The following OpenJDK version/target-architecture combinations currently | 79 | The following OpenJDK version/target-architecture combinations currently |
| 80 | only support "interpreted mode": | 80 | only support "interpreted mode": |
| 81 | openjdk-8 on arm | 81 | openjdk-8 on arm except armv7 |
| 82 | openjdk-7 on aarch64 | 82 | openjdk-7 on aarch64 |
| 83 | openjdk-7 on x86 | 83 | openjdk-7 on x86 |
| 84 | openjdk-7 on x86-64 | 84 | openjdk-7 on x86-64 |
diff --git a/lib/oeqa/runtime/cases/java.py b/lib/oeqa/runtime/cases/java.py index f2375a4..661b208 100644 --- a/lib/oeqa/runtime/cases/java.py +++ b/lib/oeqa/runtime/cases/java.py | |||
| @@ -3,7 +3,7 @@ import os | |||
| 3 | from oeqa.runtime.case import OERuntimeTestCase | 3 | from oeqa.runtime.case import OERuntimeTestCase |
| 4 | from oeqa.core.decorator.depends import OETestDepends | 4 | from oeqa.core.decorator.depends import OETestDepends |
| 5 | from oeqa.core.decorator.oeid import OETestID | 5 | from oeqa.core.decorator.oeid import OETestID |
| 6 | from oeqa.core.decorator.data import skipIfDataVar | 6 | from oeqa.core.decorator.data import skipIfDataVar, skipIfInDataVar |
| 7 | from oeqa.runtime.decorator.package import OEHasPackage | 7 | from oeqa.runtime.decorator.package import OEHasPackage |
| 8 | 8 | ||
| 9 | class JavaTest(OERuntimeTestCase): | 9 | class JavaTest(OERuntimeTestCase): |
| @@ -70,7 +70,9 @@ class JavaTest(OERuntimeTestCase): | |||
| 70 | # test for now. | 70 | # test for now. |
| 71 | @OEHasPackage(["openjre-8", "openjdk-8"]) | 71 | @OEHasPackage(["openjre-8", "openjdk-8"]) |
| 72 | @OETestDepends(['java.JavaTest.test_java_exists']) | 72 | @OETestDepends(['java.JavaTest.test_java_exists']) |
| 73 | @skipIfDataVar('ARCH', 'arm', 'OpenJDK 8 compiled mode not yet supported for arm') | 73 | @skipIfInDataVar('TUNE_FEATURES', 'armv4', 'OpenJDK 8 compiled mode not yet supported for armv4') |
| 74 | @skipIfInDataVar('TUNE_FEATURES', 'armv5', 'OpenJDK 8 compiled mode not yet supported for armv5') | ||
| 75 | @skipIfInDataVar('TUNE_FEATURES', 'armv6', 'OpenJDK 8 compiled mode not yet supported for armv6') | ||
| 74 | def test_java8_jar_comp_mode(self): | 76 | def test_java8_jar_comp_mode(self): |
| 75 | status, output = self.target.run('java -showversion -Xcomp -jar /tmp/test.jar') | 77 | status, output = self.target.run('java -showversion -Xcomp -jar /tmp/test.jar') |
| 76 | msg = 'Exit status was not 0. Output: %s' % output | 78 | msg = 'Exit status was not 0. Output: %s' % output |
