All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Re-add piglit to sdk images
@ 2016-10-14 18:31 Jussi Kukkonen
  2016-10-14 18:32 ` [PATCH 1/2] piglit: Package tests in compressed form as well Jussi Kukkonen
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jussi Kukkonen @ 2016-10-14 18:31 UTC (permalink / raw)
  To: openembedded-core

Piglit was removed because the current version was making sdk
images too large. This patchset reduces the installed size by 1.5GB
and adds piglit back to core-tools-testapps.

Running piglit still requires the same amount of space so in practice
this is useful for installed images only.

Q: Do I need to declare a runtime dependency that typically comes
from busybox (tar)?

Thanks,
 Jussi
 

The following changes since commit 371ab635086e2878ada1f00a59c7ec826481ba0a:

  build-appliance-image: Update to master head revision (2016-10-11 23:43:28 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib jku/piglit-compress-tests
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/piglit-compress-tests

Jussi Kukkonen (2):
  piglit: Package tests in compressed form as well
  core-tools-testapps: Re-add piglit

 .../packagegroup-core-tools-testapps.bb              |  2 ++
 meta/recipes-graphics/piglit/piglit/piglit.sh        | 20 ++++++++++++++++++++
 meta/recipes-graphics/piglit/piglit_git.bb           | 20 +++++++++++++++++++-
 3 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-graphics/piglit/piglit/piglit.sh

-- 
2.9.3



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

* [PATCH 1/2] piglit: Package tests in compressed form as well
  2016-10-14 18:31 [PATCH 0/2] Re-add piglit to sdk images Jussi Kukkonen
@ 2016-10-14 18:32 ` Jussi Kukkonen
  2016-10-14 18:32 ` [PATCH 2/2] core-tools-testapps: Re-add piglit Jussi Kukkonen
  2016-10-18 15:13 ` [PATCH 0/2] Re-add piglit to sdk images Randy MacLeod
  2 siblings, 0 replies; 9+ messages in thread
From: Jussi Kukkonen @ 2016-10-14 18:32 UTC (permalink / raw)
  To: openembedded-core

Modify packaging so that generated tests are available in two forms:
* piglit-generated-tests contains the tests as they are now (1.5GB
  when installed)
* piglit-generated-tests-compressed contains a tar.gz with the same
  files (45 MB when installed)

Add wrapper script that decompresses the tests at runtime: this
requires 1.5GB free space.
---
 meta/recipes-graphics/piglit/piglit/piglit.sh | 20 ++++++++++++++++++++
 meta/recipes-graphics/piglit/piglit_git.bb    | 20 +++++++++++++++++++-
 2 files changed, 39 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-graphics/piglit/piglit/piglit.sh

diff --git a/meta/recipes-graphics/piglit/piglit/piglit.sh b/meta/recipes-graphics/piglit/piglit/piglit.sh
new file mode 100644
index 0000000..3308b70
--- /dev/null
+++ b/meta/recipes-graphics/piglit/piglit/piglit.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# If we're using compressed generated tests we may need to
+# decompress first. This is going to require at least 1.5 GB of space
+if [[ /usr/lib/piglit/generated_tests.tar.gz -nt /usr/lib/piglit/generated_tests/ ]]; then
+    echo "Decompressing generated tests..."
+    tar -C /usr/lib/piglit/ -zxf /usr/lib/piglit/generated_tests.tar.gz || {
+        echo "Failed to decompress tests, exiting."
+        exit 1
+    }
+    touch /usr/lib/piglit/generated_tests
+fi
+
+if ! [[ -d /usr/lib/piglit/generated_tests ]]; then
+    echo "NOTE: No generated tests found, install piglit-generated-tests-compressed"
+    echo "      or piglit-generated-tests to include them in the tests."
+fi
+
+echo "Now running piglit..."
+PIGLIT_NO_WINDOW=1 piglit.real "$@"
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb
index 82adcde..916154a 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -7,6 +7,7 @@ SRC_URI = "git://anongit.freedesktop.org/piglit \
            file://0001-tests-Use-FE_UPWARD-only-if-its-defined-in-fenv.h.patch \
            file://0001-cmake-Link-utils-with-xcb-explicitly.patch \
            file://0001-cmake-Link-test-utils-with-ldl.patch \
+           file://piglit.sh \
            "
 
 # From 2016-07-07
@@ -39,9 +40,14 @@ do_configure_prepend() {
 }
 
 do_install() {
-	oe_runmake -C ${B} 'DESTDIR=${D}' install/strip
+    oe_runmake -C ${B} 'DESTDIR=${D}' install/strip
+    mv ${D}${bindir}/piglit ${D}${bindir}/piglit.real
+    install -m 755 ${WORKDIR}/piglit.sh ${D}${bindir}/piglit
+    tar -C ${D}${libdir}/piglit/ -czf ${D}${libdir}/piglit/generated_tests.tar.gz generated_tests/
 }
 
+PACKAGES =+ "${PN}-generated-tests ${PN}-generated-tests-compressed"
+
 RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \
 	python3-subprocess python3-misc python3-importlib \
 	python3-unixadmin python3-xml python3-multiprocessing \
@@ -50,3 +56,15 @@ RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \
 	"
 
 INSANE_SKIP_${PN} += "dev-so already-stripped"
+
+SUMMARY_${PN}-generated-tests = "Generated piglit tests (multiple GB)"
+FILES_${PN}-generated-tests = "${libdir}/piglit/generated_tests/*"
+CONFLICTS_${PN}-generated-tests = "${PN}-generated-tests-compressed"
+
+SUMMARY_${PN}-generated-tests-compressed = "Generated piglit tests in compressed archive"
+FILES_${PN}-generated-tests-compressed = "${libdir}/piglit/generated_tests.tar.gz"
+CONFLICTS_${PN}-generated-tests-compressed = "${PN}-generated-tests"
+pkg_postrm_${PN}-generated-tests-compressed () {
+    rm -rf $D${libdir}/piglit/generated_tests/
+}
+
-- 
2.9.3



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

* [PATCH 2/2] core-tools-testapps: Re-add piglit
  2016-10-14 18:31 [PATCH 0/2] Re-add piglit to sdk images Jussi Kukkonen
  2016-10-14 18:32 ` [PATCH 1/2] piglit: Package tests in compressed form as well Jussi Kukkonen
@ 2016-10-14 18:32 ` Jussi Kukkonen
  2016-10-18 15:13 ` [PATCH 0/2] Re-add piglit to sdk images Randy MacLeod
  2 siblings, 0 replies; 9+ messages in thread
From: Jussi Kukkonen @ 2016-10-14 18:32 UTC (permalink / raw)
  To: openembedded-core

Piglit was removed from testapps in 9e227ecb3a because it made
sdk images massive. Add piglit back now that the installed size is
no longer humongous: it still needs 1.5 GB free space at runtime but
the image sizes stay reasonable.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
index 3170978..69cfd57 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
@@ -17,6 +17,8 @@ KEXECTOOLS_nios2 ?= ""
 
 X11GLTOOLS = "\
     mesa-demos \
+    piglit \
+    piglit-generated-tests-compressed \
     "
 
 3GTOOLS = "\
-- 
2.9.3



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

* Re: [PATCH 0/2] Re-add piglit to sdk images
  2016-10-14 18:31 [PATCH 0/2] Re-add piglit to sdk images Jussi Kukkonen
  2016-10-14 18:32 ` [PATCH 1/2] piglit: Package tests in compressed form as well Jussi Kukkonen
  2016-10-14 18:32 ` [PATCH 2/2] core-tools-testapps: Re-add piglit Jussi Kukkonen
@ 2016-10-18 15:13 ` Randy MacLeod
  2016-10-18 21:21   ` Paul Eggleton
  2 siblings, 1 reply; 9+ messages in thread
From: Randy MacLeod @ 2016-10-18 15:13 UTC (permalink / raw)
  To: Jussi Kukkonen, openembedded-core

On 2016-10-14 02:31 PM, Jussi Kukkonen wrote:
> Piglit was removed because the current version was making sdk
> images too large. This patchset reduces the installed size by 1.5GB
> and adds piglit back to core-tools-testapps.
>
> Running piglit still requires the same amount of space so in practice
> this is useful for installed images only.
>
> Q: Do I need to declare a runtime dependency that typically comes
> from busybox (tar)?

Yes, because some people try to eliminate busybox from their image.
-- 
# Randy MacLeod. SMTS, Linux, Wind River
Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON, 
Canada, K2K 2W5


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

* Re: [PATCH 0/2] Re-add piglit to sdk images
  2016-10-18 15:13 ` [PATCH 0/2] Re-add piglit to sdk images Randy MacLeod
@ 2016-10-18 21:21   ` Paul Eggleton
  2016-10-19 12:53     ` Burton, Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2016-10-18 21:21 UTC (permalink / raw)
  To: Randy MacLeod; +Cc: openembedded-core

On Tue, 18 Oct 2016 11:13:11 Randy MacLeod wrote:
> On 2016-10-14 02:31 PM, Jussi Kukkonen wrote:
> > Piglit was removed because the current version was making sdk
> > images too large. This patchset reduces the installed size by 1.5GB
> > and adds piglit back to core-tools-testapps.
> > 
> > Running piglit still requires the same amount of space so in practice
> > this is useful for installed images only.
> > 
> > Q: Do I need to declare a runtime dependency that typically comes
> > from busybox (tar)?
> 
> Yes, because some people try to eliminate busybox from their image.

How would one express such a dependency though, given that it could come from 
tar or busybox? "Virtual" runtime dependencies aren't allowed except through 
our somewhat awkward VIRTUAL-RUNTIME convention, but that probably isn't 
warranted here.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: [PATCH 0/2] Re-add piglit to sdk images
  2016-10-18 21:21   ` Paul Eggleton
@ 2016-10-19 12:53     ` Burton, Ross
  2016-10-19 14:02       ` Mike Looijmans
  0 siblings, 1 reply; 9+ messages in thread
From: Burton, Ross @ 2016-10-19 12:53 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

On 18 October 2016 at 22:21, Paul Eggleton <paul.eggleton@linux.intel.com>
wrote:

> > > Q: Do I need to declare a runtime dependency that typically comes
> > > from busybox (tar)?
> >
> > Yes, because some people try to eliminate busybox from their image.
>
> How would one express such a dependency though, given that it could come
> from
> tar or busybox? "Virtual" runtime dependencies aren't allowed except
> through
> our somewhat awkward VIRTUAL-RUNTIME convention, but that probably isn't
> warranted here.
>

busybox could RRPOVIDE tar?

Ross

[-- Attachment #2: Type: text/html, Size: 998 bytes --]

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

* Re: [PATCH 0/2] Re-add piglit to sdk images
  2016-10-19 12:53     ` Burton, Ross
@ 2016-10-19 14:02       ` Mike Looijmans
  2016-10-19 15:08         ` Burton, Ross
  2016-10-19 15:14         ` Richard Purdie
  0 siblings, 2 replies; 9+ messages in thread
From: Mike Looijmans @ 2016-10-19 14:02 UTC (permalink / raw)
  To: Burton, Ross, Paul Eggleton; +Cc: OE-core

On 19-10-16 14:53, Burton, Ross wrote:
>
> On 18 October 2016 at 22:21, Paul Eggleton <paul.eggleton@linux.intel.com
> <mailto:paul.eggleton@linux.intel.com>> wrote:
>
>     > > Q: Do I need to declare a runtime dependency that typically comes
>     > > from busybox (tar)?
>     >
>     > Yes, because some people try to eliminate busybox from their image.
>
>     How would one express such a dependency though, given that it could come from
>     tar or busybox? "Virtual" runtime dependencies aren't allowed except through
>     our somewhat awkward VIRTUAL-RUNTIME convention, but that probably isn't
>     warranted here.
>
> busybox could RRPOVIDE tar?

If we go down that road, we'd end up with a busybox that RPROVIDES a hundred 
and one utilities. I doubt anyone will be happy with that...


Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail







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

* Re: [PATCH 0/2] Re-add piglit to sdk images
  2016-10-19 14:02       ` Mike Looijmans
@ 2016-10-19 15:08         ` Burton, Ross
  2016-10-19 15:14         ` Richard Purdie
  1 sibling, 0 replies; 9+ messages in thread
From: Burton, Ross @ 2016-10-19 15:08 UTC (permalink / raw)
  To: Mike Looijmans; +Cc: Paul Eggleton, OE-core

[-- Attachment #1: Type: text/plain, Size: 404 bytes --]

On 19 October 2016 at 15:02, Mike Looijmans <mike.looijmans@topic.nl> wrote:

> busybox could RRPOVIDE tar?
>>
>
> If we go down that road, we'd end up with a busybox that RPROVIDES a
> hundred and one utilities. I doubt anyone will be happy with that...
>

Well, only for the utilities which are separately packaged and generally
swapped around. ie it wouldn't need to RPROVIDE "ls".

Ross

[-- Attachment #2: Type: text/html, Size: 911 bytes --]

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

* Re: [PATCH 0/2] Re-add piglit to sdk images
  2016-10-19 14:02       ` Mike Looijmans
  2016-10-19 15:08         ` Burton, Ross
@ 2016-10-19 15:14         ` Richard Purdie
  1 sibling, 0 replies; 9+ messages in thread
From: Richard Purdie @ 2016-10-19 15:14 UTC (permalink / raw)
  To: Mike Looijmans, Burton, Ross, Paul Eggleton; +Cc: OE-core

On Wed, 2016-10-19 at 16:02 +0200, Mike Looijmans wrote:
> On 19-10-16 14:53, Burton, Ross wrote:
> > 
> > 
> > On 18 October 2016 at 22:21, Paul Eggleton <paul.eggleton@linux.int
> > el.com
> > <mailto:paul.eggleton@linux.intel.com>> wrote:
> > 
> >     > > Q: Do I need to declare a runtime dependency that typically
> > comes
> >     > > from busybox (tar)?
> >     >
> >     > Yes, because some people try to eliminate busybox from their
> > image.
> > 
> >     How would one express such a dependency though, given that it
> > could come from
> >     tar or busybox? "Virtual" runtime dependencies aren't allowed
> > except through
> >     our somewhat awkward VIRTUAL-RUNTIME convention, but that
> > probably isn't
> >     warranted here.
> > 
> > busybox could RRPOVIDE tar?
> If we go down that road, we'd end up with a busybox that RPROVIDES a
> hundred 
> and one utilities. I doubt anyone will be happy with that...

We've come across this problem before. It is something which is
probably worth looking at to see what options we have but it is
probably a tangential issue to the patch at hand.

Cheers,

Richard


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

end of thread, other threads:[~2016-10-19 15:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-14 18:31 [PATCH 0/2] Re-add piglit to sdk images Jussi Kukkonen
2016-10-14 18:32 ` [PATCH 1/2] piglit: Package tests in compressed form as well Jussi Kukkonen
2016-10-14 18:32 ` [PATCH 2/2] core-tools-testapps: Re-add piglit Jussi Kukkonen
2016-10-18 15:13 ` [PATCH 0/2] Re-add piglit to sdk images Randy MacLeod
2016-10-18 21:21   ` Paul Eggleton
2016-10-19 12:53     ` Burton, Ross
2016-10-19 14:02       ` Mike Looijmans
2016-10-19 15:08         ` Burton, Ross
2016-10-19 15:14         ` Richard Purdie

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.