oeqa: runtime: java: enable test_java8_jar_comp_mode for armv7
PATCH 1/1 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"
--- README | 2 +- lib/oeqa/runtime/cases/java.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-)
README +1 -1
@@ -78,7 +78,7 @@ Known Limitations/Bugs OpenJDK: The following OpenJDK version/target-architecture combinations currently only support "interpreted mode": - openjdk-8 on arm + openjdk-8 on arm except armv7 openjdk-7 on aarch64 openjdk-7 on x86 openjdk-7 on x86-64
lib/oeqa/runtime/cases/java.py +4 -2
@@ -3,7 +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.core.decorator.data import skipIfDataVar, skipIfInDataVar from oeqa.runtime.decorator.package import OEHasPackage class JavaTest(OERuntimeTestCase):
@@ -70,7 +70,9 @@ class JavaTest(OERuntimeTestCase): # 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') + @skipIfInDataVar('TUNE_FEATURES', 'armv4', 'OpenJDK 8 compiled mode not yet supported for armv4') + @skipIfInDataVar('TUNE_FEATURES', 'armv5', 'OpenJDK 8 compiled mode not yet supported for armv5') + @skipIfInDataVar('TUNE_FEATURES', 'armv6', 'OpenJDK 8 compiled mode not yet supported for armv6') 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
Signature · 1 line
2.11.0
Quoted 55 lines · Richard Leitner
As commit "openjdk-8: add aarch32 port 8u172b11" introduced support for the aarch32 port of openjdk-8 enable the
test_java8_jar_comp_modetest 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 <[email protected]>--- README | 2 +- lib/oeqa/runtime/cases/java.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-)README +1
-1@@ -78,7 +78,7 @@ Known Limitations/Bugs OpenJDK: The following OpenJDK version/target-architecture combinations currently only support "interpreted mode": - openjdk-8 on arm + openjdk-8 on arm except armv7 openjdk-7 on aarch64 openjdk-7 on x86 openjdk-7 on x86-64lib/oeqa/runtime/cases/java.py +4
-2@@ -3,7 +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.core.decorator.data import skipIfDataVar, skipIfInDataVar from oeqa.runtime.decorator.package import OEHasPackage class JavaTest(OERuntimeTestCase):@@ -70,7 +70,9 @@ class JavaTest(OERuntimeTestCase): # 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') + @skipIfInDataVar('TUNE_FEATURES', 'armv4', 'OpenJDK 8 compiled mode not yet supported for armv4') + @skipIfInDataVar('TUNE_FEATURES', 'armv5', 'OpenJDK 8 compiled mode not yet supported for armv5') + @skipIfInDataVar('TUNE_FEATURES', 'armv6', 'OpenJDK 8 compiled mode not yet supported for armv6') 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' % outputSignature · 1 line
2.11.0
Hi,
looks good to me. You can add
if you want.
Bye Henning
Hi,
this is a note to let you know that I've just added this patch to the master-next branch of the meta-java repository at
git://git.yoctoproject.org/meta-java
As soon as it has gone through some more testing it will likely be merged to the master branch.
If you have any questions, please let me know.
regards;Richard.L
Quoted 12 lines · Richard Leitner
As commit "openjdk-8: add aarch32 port 8u172b11" introduced support for the aarch32 port of openjdk-8 enable the
test_java8_jar_comp_modetest 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 <[email protected]>Acked-by Henning Heinold <[email protected]>