All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros
  2017-04-04  4:17 [PATCH] selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros leonardo.sandoval.gonzalez
@ 2017-04-03 21:28 ` Leonardo Sandoval
  2017-04-03 22:32 ` ✗ patchtest: failure for selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros (rev2) Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Leonardo Sandoval @ 2017-04-03 21:28 UTC (permalink / raw)
  To: openembedded-core

ignore this patch (already merged on master), it was sent by mistake.

Leo

On Mon, 2017-04-03 at 21:17 -0700,
leonardo.sandoval.gonzalez@linux.intel.com wrote:
> From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
> 
> Replace the glibc recipe for zlib on unit tests, otherwise tests are restricted
> to glibc distros (poky).
> 
> [YOCTO #10890]
> 
> Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
> ---
>  meta/lib/oeqa/selftest/pkgdata.py | 28 +++++++++++++---------------
>  1 file changed, 13 insertions(+), 15 deletions(-)
> 
> diff --git a/meta/lib/oeqa/selftest/pkgdata.py b/meta/lib/oeqa/selftest/pkgdata.py
> index 36d8b34..d69c3c8 100644
> --- a/meta/lib/oeqa/selftest/pkgdata.py
> +++ b/meta/lib/oeqa/selftest/pkgdata.py
> @@ -16,21 +16,21 @@ class OePkgdataUtilTests(oeSelfTest):
>          # Ensure we have the right data in pkgdata
>          logger = logging.getLogger("selftest")
>          logger.info('Running bitbake to generate pkgdata')
> -        bitbake('glibc busybox zlib m4')
> +        bitbake('busybox zlib m4')
>  
>      @testcase(1203)
>      def test_lookup_pkg(self):
>          # Forward tests
> -        result = runCmd('oe-pkgdata-util lookup-pkg "glibc busybox"')
> -        self.assertEqual(result.output, 'libc6\nbusybox')
> +        result = runCmd('oe-pkgdata-util lookup-pkg "zlib busybox"')
> +        self.assertEqual(result.output, 'libz1\nbusybox')
>          result = runCmd('oe-pkgdata-util lookup-pkg zlib-dev')
>          self.assertEqual(result.output, 'libz-dev')
>          result = runCmd('oe-pkgdata-util lookup-pkg nonexistentpkg', ignore_status=True)
>          self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output)
>          self.assertEqual(result.output, 'ERROR: The following packages could not be found: nonexistentpkg')
>          # Reverse tests
> -        result = runCmd('oe-pkgdata-util lookup-pkg -r "libc6 busybox"')
> -        self.assertEqual(result.output, 'glibc\nbusybox')
> +        result = runCmd('oe-pkgdata-util lookup-pkg -r "libz1 busybox"')
> +        self.assertEqual(result.output, 'zlib\nbusybox')
>          result = runCmd('oe-pkgdata-util lookup-pkg -r libz-dev')
>          self.assertEqual(result.output, 'zlib-dev')
>          result = runCmd('oe-pkgdata-util lookup-pkg -r nonexistentpkg', ignore_status=True)
> @@ -49,8 +49,8 @@ class OePkgdataUtilTests(oeSelfTest):
>  
>      @testcase(1198)
>      def test_find_path(self):
> -        result = runCmd('oe-pkgdata-util find-path /lib/libc.so.6')
> -        self.assertEqual(result.output, 'glibc: /lib/libc.so.6')
> +        result = runCmd('oe-pkgdata-util find-path /lib/libz.so.1')
> +        self.assertEqual(result.output, 'zlib: /lib/libz.so.1')
>          result = runCmd('oe-pkgdata-util find-path /usr/bin/m4')
>          self.assertEqual(result.output, 'm4: /usr/bin/m4')
>          result = runCmd('oe-pkgdata-util find-path /not/exist', ignore_status=True)
> @@ -59,8 +59,8 @@ class OePkgdataUtilTests(oeSelfTest):
>  
>      @testcase(1204)
>      def test_lookup_recipe(self):
> -        result = runCmd('oe-pkgdata-util lookup-recipe "libc6-staticdev busybox"')
> -        self.assertEqual(result.output, 'glibc\nbusybox')
> +        result = runCmd('oe-pkgdata-util lookup-recipe "libz-staticdev busybox"')
> +        self.assertEqual(result.output, 'zlib\nbusybox')
>          result = runCmd('oe-pkgdata-util lookup-recipe libz-dbg')
>          self.assertEqual(result.output, 'zlib')
>          result = runCmd('oe-pkgdata-util lookup-recipe nonexistentpkg', ignore_status=True)
> @@ -72,12 +72,11 @@ class OePkgdataUtilTests(oeSelfTest):
>          # No arguments
>          result = runCmd('oe-pkgdata-util list-pkgs')
>          pkglist = result.output.split()
> -        self.assertIn('glibc-utils', pkglist, "Listed packages: %s" % result.output)
> +        self.assertIn('zlib', pkglist, "Listed packages: %s" % result.output)
>          self.assertIn('zlib-dev', pkglist, "Listed packages: %s" % result.output)
>          # No pkgspec, runtime
>          result = runCmd('oe-pkgdata-util list-pkgs -r')
>          pkglist = result.output.split()
> -        self.assertIn('libc6-utils', pkglist, "Listed packages: %s" % result.output)
>          self.assertIn('libz-dev', pkglist, "Listed packages: %s" % result.output)
>          # With recipe specified
>          result = runCmd('oe-pkgdata-util list-pkgs -p zlib')
> @@ -208,11 +207,10 @@ class OePkgdataUtilTests(oeSelfTest):
>          self.track_for_cleanup(tempdir)
>          pkglistfile = os.path.join(tempdir, 'pkglist')
>          with open(pkglistfile, 'w') as f:
> -            f.write('libc6\n')
>              f.write('libz1\n')
>              f.write('busybox\n')
>          result = runCmd('oe-pkgdata-util glob %s "*-dev"' % pkglistfile)
> -        desiredresult = ['libc6-dev', 'libz-dev', 'busybox-dev']
> +        desiredresult = ['libz-dev', 'busybox-dev']
>          self.assertEqual(sorted(result.output.split()), sorted(desiredresult))
>          # The following should not error (because when we use this during rootfs construction, sometimes the complementary package won't exist)
>          result = runCmd('oe-pkgdata-util glob %s "*-nonexistent"' % pkglistfile)
> @@ -225,5 +223,5 @@ class OePkgdataUtilTests(oeSelfTest):
>  
>      @testcase(1206)
>      def test_specify_pkgdatadir(self):
> -        result = runCmd('oe-pkgdata-util -p %s lookup-pkg glibc' % get_bb_var('PKGDATA_DIR'))
> -        self.assertEqual(result.output, 'libc6')
> +        result = runCmd('oe-pkgdata-util -p %s lookup-pkg zlib' % get_bb_var('PKGDATA_DIR'))
> +        self.assertEqual(result.output, 'libz1')




^ permalink raw reply	[flat|nested] 3+ messages in thread

* ✗ patchtest: failure for selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros (rev2)
  2017-04-04  4:17 [PATCH] selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros leonardo.sandoval.gonzalez
  2017-04-03 21:28 ` Leonardo Sandoval
@ 2017-04-03 22:32 ` Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2017-04-03 22:32 UTC (permalink / raw)
  To: Leonardo Sandoval; +Cc: openembedded-core

== Series Details ==

Series: selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros (rev2)
Revision: 2
URL   : https://patchwork.openembedded.org/series/6093/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue             Series does not apply on top of target branch [test_series_merge_on_head] 
  Suggested fix    Rebase your series on top of targeted branch
  Targeted branch  master (currently at 3b7111b30d)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros
@ 2017-04-04  4:17 leonardo.sandoval.gonzalez
  2017-04-03 21:28 ` Leonardo Sandoval
  2017-04-03 22:32 ` ✗ patchtest: failure for selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros (rev2) Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: leonardo.sandoval.gonzalez @ 2017-04-04  4:17 UTC (permalink / raw)
  To: openembedded-core

From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>

Replace the glibc recipe for zlib on unit tests, otherwise tests are restricted
to glibc distros (poky).

[YOCTO #10890]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
---
 meta/lib/oeqa/selftest/pkgdata.py | 28 +++++++++++++---------------
 1 file changed, 13 insertions(+), 15 deletions(-)

diff --git a/meta/lib/oeqa/selftest/pkgdata.py b/meta/lib/oeqa/selftest/pkgdata.py
index 36d8b34..d69c3c8 100644
--- a/meta/lib/oeqa/selftest/pkgdata.py
+++ b/meta/lib/oeqa/selftest/pkgdata.py
@@ -16,21 +16,21 @@ class OePkgdataUtilTests(oeSelfTest):
         # Ensure we have the right data in pkgdata
         logger = logging.getLogger("selftest")
         logger.info('Running bitbake to generate pkgdata')
-        bitbake('glibc busybox zlib m4')
+        bitbake('busybox zlib m4')
 
     @testcase(1203)
     def test_lookup_pkg(self):
         # Forward tests
-        result = runCmd('oe-pkgdata-util lookup-pkg "glibc busybox"')
-        self.assertEqual(result.output, 'libc6\nbusybox')
+        result = runCmd('oe-pkgdata-util lookup-pkg "zlib busybox"')
+        self.assertEqual(result.output, 'libz1\nbusybox')
         result = runCmd('oe-pkgdata-util lookup-pkg zlib-dev')
         self.assertEqual(result.output, 'libz-dev')
         result = runCmd('oe-pkgdata-util lookup-pkg nonexistentpkg', ignore_status=True)
         self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output)
         self.assertEqual(result.output, 'ERROR: The following packages could not be found: nonexistentpkg')
         # Reverse tests
-        result = runCmd('oe-pkgdata-util lookup-pkg -r "libc6 busybox"')
-        self.assertEqual(result.output, 'glibc\nbusybox')
+        result = runCmd('oe-pkgdata-util lookup-pkg -r "libz1 busybox"')
+        self.assertEqual(result.output, 'zlib\nbusybox')
         result = runCmd('oe-pkgdata-util lookup-pkg -r libz-dev')
         self.assertEqual(result.output, 'zlib-dev')
         result = runCmd('oe-pkgdata-util lookup-pkg -r nonexistentpkg', ignore_status=True)
@@ -49,8 +49,8 @@ class OePkgdataUtilTests(oeSelfTest):
 
     @testcase(1198)
     def test_find_path(self):
-        result = runCmd('oe-pkgdata-util find-path /lib/libc.so.6')
-        self.assertEqual(result.output, 'glibc: /lib/libc.so.6')
+        result = runCmd('oe-pkgdata-util find-path /lib/libz.so.1')
+        self.assertEqual(result.output, 'zlib: /lib/libz.so.1')
         result = runCmd('oe-pkgdata-util find-path /usr/bin/m4')
         self.assertEqual(result.output, 'm4: /usr/bin/m4')
         result = runCmd('oe-pkgdata-util find-path /not/exist', ignore_status=True)
@@ -59,8 +59,8 @@ class OePkgdataUtilTests(oeSelfTest):
 
     @testcase(1204)
     def test_lookup_recipe(self):
-        result = runCmd('oe-pkgdata-util lookup-recipe "libc6-staticdev busybox"')
-        self.assertEqual(result.output, 'glibc\nbusybox')
+        result = runCmd('oe-pkgdata-util lookup-recipe "libz-staticdev busybox"')
+        self.assertEqual(result.output, 'zlib\nbusybox')
         result = runCmd('oe-pkgdata-util lookup-recipe libz-dbg')
         self.assertEqual(result.output, 'zlib')
         result = runCmd('oe-pkgdata-util lookup-recipe nonexistentpkg', ignore_status=True)
@@ -72,12 +72,11 @@ class OePkgdataUtilTests(oeSelfTest):
         # No arguments
         result = runCmd('oe-pkgdata-util list-pkgs')
         pkglist = result.output.split()
-        self.assertIn('glibc-utils', pkglist, "Listed packages: %s" % result.output)
+        self.assertIn('zlib', pkglist, "Listed packages: %s" % result.output)
         self.assertIn('zlib-dev', pkglist, "Listed packages: %s" % result.output)
         # No pkgspec, runtime
         result = runCmd('oe-pkgdata-util list-pkgs -r')
         pkglist = result.output.split()
-        self.assertIn('libc6-utils', pkglist, "Listed packages: %s" % result.output)
         self.assertIn('libz-dev', pkglist, "Listed packages: %s" % result.output)
         # With recipe specified
         result = runCmd('oe-pkgdata-util list-pkgs -p zlib')
@@ -208,11 +207,10 @@ class OePkgdataUtilTests(oeSelfTest):
         self.track_for_cleanup(tempdir)
         pkglistfile = os.path.join(tempdir, 'pkglist')
         with open(pkglistfile, 'w') as f:
-            f.write('libc6\n')
             f.write('libz1\n')
             f.write('busybox\n')
         result = runCmd('oe-pkgdata-util glob %s "*-dev"' % pkglistfile)
-        desiredresult = ['libc6-dev', 'libz-dev', 'busybox-dev']
+        desiredresult = ['libz-dev', 'busybox-dev']
         self.assertEqual(sorted(result.output.split()), sorted(desiredresult))
         # The following should not error (because when we use this during rootfs construction, sometimes the complementary package won't exist)
         result = runCmd('oe-pkgdata-util glob %s "*-nonexistent"' % pkglistfile)
@@ -225,5 +223,5 @@ class OePkgdataUtilTests(oeSelfTest):
 
     @testcase(1206)
     def test_specify_pkgdatadir(self):
-        result = runCmd('oe-pkgdata-util -p %s lookup-pkg glibc' % get_bb_var('PKGDATA_DIR'))
-        self.assertEqual(result.output, 'libc6')
+        result = runCmd('oe-pkgdata-util -p %s lookup-pkg zlib' % get_bb_var('PKGDATA_DIR'))
+        self.assertEqual(result.output, 'libz1')
-- 
2.10.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-03 22:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-04  4:17 [PATCH] selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros leonardo.sandoval.gonzalez
2017-04-03 21:28 ` Leonardo Sandoval
2017-04-03 22:32 ` ✗ patchtest: failure for selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros (rev2) Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.