From d40bcafb574788ed26855c5d1a072523893c1b4b Mon Sep 17 00:00:00 2001 From: Jose Perez Carranza Date: Thu, 6 Jul 2017 14:03:07 -0700 Subject: oeqa/runtime: Replace buildiptables for buildlzip on runtime tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Buildiptables test cases are conflicting with images built with “musl” as standard C library, in order to avoid those issues lzip package was selected to be used on the tests as this does not have any "musl" dependency. This patch is applicable for testimage tests [YOCTO # 11713] (From OE-Core rev: 41683e0ab316049e28b1f4ceaf39f0fe17722d92) Signed-off-by: Jose Perez Carranza Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- meta/lib/oeqa/runtime/cases/buildiptables.py | 34 ---------------------------- meta/lib/oeqa/runtime/cases/buildlzip.py | 34 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 meta/lib/oeqa/runtime/cases/buildiptables.py create mode 100644 meta/lib/oeqa/runtime/cases/buildlzip.py diff --git a/meta/lib/oeqa/runtime/cases/buildiptables.py b/meta/lib/oeqa/runtime/cases/buildiptables.py deleted file mode 100644 index 002b16c483..0000000000 --- a/meta/lib/oeqa/runtime/cases/buildiptables.py +++ /dev/null @@ -1,34 +0,0 @@ -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 skipIfNotFeature - -from oeqa.runtime.utils.targetbuildproject import TargetBuildProject - -class BuildIptablesTest(OERuntimeTestCase): - - @classmethod - def setUpClass(cls): - uri = 'http://downloads.yoctoproject.org/mirror/sources' - uri = '%s/iptables-1.4.13.tar.bz2' % uri - cls.project = TargetBuildProject(cls.tc.target, - uri, - dl_dir = cls.tc.td['DL_DIR']) - cls.project.download_archive() - - @classmethod - def tearDownClass(cls): - cls.project.clean() - - @OETestID(206) - @skipIfNotFeature('tools-sdk', - 'Test requires tools-sdk to be in IMAGE_FEATURES') - @OETestDepends(['ssh.SSHTest.test_ssh']) - def test_iptables(self): - self.project.run_configure() - self.project.run_make() - self.project.run_install() - - @classmethod - def tearDownClass(self): - self.project.clean() diff --git a/meta/lib/oeqa/runtime/cases/buildlzip.py b/meta/lib/oeqa/runtime/cases/buildlzip.py new file mode 100644 index 0000000000..ca3fead2e4 --- /dev/null +++ b/meta/lib/oeqa/runtime/cases/buildlzip.py @@ -0,0 +1,34 @@ +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 skipIfNotFeature + +from oeqa.runtime.utils.targetbuildproject import TargetBuildProject + +class BuildLzipTest(OERuntimeTestCase): + + @classmethod + def setUpClass(cls): + uri = 'http://downloads.yoctoproject.org/mirror/sources' + uri = '%s/lzip-1.19.tar.gz' % uri + cls.project = TargetBuildProject(cls.tc.target, + uri, + dl_dir = cls.tc.td['DL_DIR']) + cls.project.download_archive() + + @classmethod + def tearDownClass(cls): + cls.project.clean() + + @OETestID(206) + @skipIfNotFeature('tools-sdk', + 'Test requires tools-sdk to be in IMAGE_FEATURES') + @OETestDepends(['ssh.SSHTest.test_ssh']) + def test_lzip(self): + self.project.run_configure() + self.project.run_make() + self.project.run_install() + + @classmethod + def tearDownClass(self): + self.project.clean() -- cgit 1.2.3-korg