mirror of
https://git.yoctoproject.org/poky
synced 2026-03-11 09:49:41 +01:00
oeqa/sdk/cases: Added validation for SDK compatibility tests with eSDK
The manifests for eSDK are generated using shared states so there is a need to validate to different "packages names" into the test cases. For example for perl: SDK provides nativesdk-perl eSDK provides perl-native [YOCTO #9090] (From OE-Core rev: 8db06dd1290dd53d626050879c9c306f95d76ac2) Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1b804d7944
commit
05697aa941
@@ -17,7 +17,8 @@ class BuildIptablesTest(OESDKTestCase):
|
||||
|
||||
machine = self.td.get("MACHINE")
|
||||
|
||||
if not self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine):
|
||||
if not (self.tc.hasTargetPackage("packagegroup-cross-canadian-%s" % machine) or
|
||||
self.tc.hasTargetPackage("gcc")):
|
||||
raise unittest.SkipTest("SDK doesn't contain a cross-canadian toolchain")
|
||||
|
||||
def test_iptables(self):
|
||||
|
||||
@@ -18,7 +18,8 @@ class GccCompileTest(OESDKTestCase):
|
||||
|
||||
def setUp(self):
|
||||
machine = self.td.get("MACHINE")
|
||||
if not self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine):
|
||||
if not (self.tc.hasTargetPackage("packagegroup-cross-canadian-%s" % machine) or
|
||||
self.tc.hasTargetPackage("gcc")):
|
||||
raise unittest.SkipTest("GccCompileTest class: SDK doesn't contain a cross-canadian toolchain")
|
||||
|
||||
def test_gcc_compile(self):
|
||||
|
||||
@@ -8,7 +8,8 @@ from oeqa.sdk.case import OESDKTestCase
|
||||
class PerlTest(OESDKTestCase):
|
||||
@classmethod
|
||||
def setUpClass(self):
|
||||
if not self.tc.hasHostPackage("nativesdk-perl"):
|
||||
if not (self.tc.hasHostPackage("nativesdk-perl") or
|
||||
self.tc.hasHostPackage("perl-native")):
|
||||
raise unittest.SkipTest("No perl package in the SDK")
|
||||
|
||||
for f in ['test.pl']:
|
||||
|
||||
@@ -8,7 +8,8 @@ from oeqa.sdk.case import OESDKTestCase
|
||||
class PythonTest(OESDKTestCase):
|
||||
@classmethod
|
||||
def setUpClass(self):
|
||||
if not self.tc.hasHostPackage("nativesdk-python"):
|
||||
if not (self.tc.hasHostPackage("nativesdk-python") or
|
||||
self.tc.hasHostPackage("python-native")):
|
||||
raise unittest.SkipTest("No python package in the SDK")
|
||||
|
||||
for f in ['test.py']:
|
||||
|
||||
Reference in New Issue
Block a user