[OE-core] [PATCH] oeqa/sdk: Replace buildiptables for buildgzip tests

Khem Raj raj.khem at gmail.com
Mon Jul 3 16:59:44 UTC 2017


On Mon, Jul 3, 2017 at 9:26 AM,  <jose.perez.carranza at linux.intel.com> wrote:
> From: Jose Perez Carranza <jose.perez.carranza at linux.intel.com>
>
> Buildiptables test cases are conflicting with images built with “musl”
> as standard C library, in order to avoid those issues gzip package was
> selected to be used on the tests as this does not conflicts with “musl”.
>
> [YOCTO #11713]

I see that gzip recipes also have musl appends for do_configure, I
understand, that this test case will compile on device so it will get
hosted env and it might be working fine. I would think it will be good
to use a package which we dont patch even in OE

>
> Signed-off-by: Jose Perez Carranza <jose.perez.carranza at linux.intel.com>
> ---
>  meta/lib/oeqa/sdk/cases/{buildiptables.py => buildgzip.py} | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>  rename meta/lib/oeqa/sdk/cases/{buildiptables.py => buildgzip.py} (84%)
>
> diff --git a/meta/lib/oeqa/sdk/cases/buildiptables.py b/meta/lib/oeqa/sdk/cases/buildgzip.py
> similarity index 84%
> rename from meta/lib/oeqa/sdk/cases/buildiptables.py
> rename to meta/lib/oeqa/sdk/cases/buildgzip.py
> index 419c7ebd09b..a92df65c28b 100644
> --- a/meta/lib/oeqa/sdk/cases/buildiptables.py
> +++ b/meta/lib/oeqa/sdk/cases/buildgzip.py
> @@ -3,15 +3,15 @@ from oeqa.sdk.case import OESDKTestCase
>  from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject
>
>
> -class BuildIptablesTest(OESDKTestCase):
> +class BuildGzipTest(OESDKTestCase):
>      td_vars = ['DATETIME']
>
>      @classmethod
>      def setUpClass(self):
>          dl_dir = self.td.get('DL_DIR', None)
>
> -        self.project = SDKBuildProject(self.tc.sdk_dir + "/iptables/", self.tc.sdk_env,
> -                        "http://downloads.yoctoproject.org/mirror/sources/iptables-1.4.13.tar.bz2",
> +        self.project = SDKBuildProject(self.tc.sdk_dir + "/gzip/", self.tc.sdk_env,
> +                        "http://downloads.yoctoproject.org/mirror/sources/gzip-1.8.tar.gz",
>                          self.tc.sdk_dir, self.td['DATETIME'], dl_dir=dl_dir)
>          self.project.download_archive()
>
> @@ -21,7 +21,7 @@ class BuildIptablesTest(OESDKTestCase):
>                  self.tc.hasTargetPackage("gcc")):
>              raise unittest.SkipTest("SDK doesn't contain a cross-canadian toolchain")
>
> -    def test_iptables(self):
> +    def test_gzip(self):
>          self.assertEqual(self.project.run_configure(), 0,
>                          msg="Running configure failed")
>
> --
> 2.12.0
>



More information about the Openembedded-core mailing list