[OE-core] [PATCH] glib-2.0: native package should not depend on DISTRO_FEATURES

2017-01-20 Thread Gary Thomas
xxx-native packages should not depend on ${DISTRO} settings. Doing so feels inherently wrong and limits the usefulness of sstate-cache. This patch changes how this package is installed, in particular removing the dependency on the ${DISTRO_FEATURES} variable in glib-2.0-native. This will

Re: [OE-core] [PATCH V2] alsa-lib: update 1.1.2 -> 1.1.3

2017-01-20 Thread Tanu Kaskinen
On Sat, 2017-01-21 at 00:16 +, Burton, Ross wrote: > On 21 January 2017 at 00:12, Burton, Ross wrote: > > > Computing transaction...warning: Can't install > > alsa-lib-dev-1.1.3-r0.0@core2_32: Can't install > > alsa-lib-dev-1.1.3-r0.0@core2_32: no package provides

Re: [OE-core] [PATCH V2] alsa-lib: update 1.1.2 -> 1.1.3

2017-01-20 Thread Burton, Ross
On 21 January 2017 at 00:12, Burton, Ross wrote: > Computing transaction...warning: Can't install > alsa-lib-dev-1.1.3-r0.0@core2_32: Can't install > alsa-lib-dev-1.1.3-r0.0@core2_32: no package provides alsa-lib = > 1.1.3-r0.0 > Had a ten second look at 1.1.2, there's an

Re: [OE-core] [PATCH V2] alsa-lib: update 1.1.2 -> 1.1.3

2017-01-20 Thread Burton, Ross
For some reason the autobuilder is having a meltdown with this error message: Computing transaction...warning: Can't install alsa-lib-dev-1.1.3-r0.0@core2_32: Can't install alsa-lib-dev-1.1.3-r0.0@core2_32: no package provides alsa-lib = 1.1.3-r0.0 I'm guessing a new file sneaked into the build

[OE-core] [PATCHv3] qemu: Upgrade to 2.7.1

2017-01-20 Thread Aníbal Limón
Minor upgrade contains fixes from 2.7.0. Removed patches (already in upstream): - 0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch - 0001-virtio-zero-vq-inuse-in-virtio_reset.patch - 0002-fix-CVE-2016-7423.patch Signed-off-by: Aníbal Limón ---

[OE-core] [PATCH 2/2 v2] xserver-xorg: Enable glamor by default

2017-01-20 Thread Saul Wold
To enable glamor, we need to also enable both dri3 and xshmfence as dependencies. Signed-off-by: Saul Wold --- meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[OE-core] [PATCH 1/2 v2] xserver-xf86-config: add glamoregl

2017-01-20 Thread Saul Wold
When using the modesetting with glamor and MUSL, the glamoregl library needs to be pre-loaded, so add it to the list here. Signed-off-by: Saul Wold --- .../xorg-xserver/xserver-xf86-config/10-preload-modules.conf | 1 + 1 file changed, 1 insertion(+) diff

Re: [OE-core] ✗ patchtest: failure for "Switch to Recipe Specific Sysr..." and 2 more

2017-01-20 Thread Andreas Müller
On Fri, Jan 20, 2017 at 7:24 PM, Patchwork wrote: > == Series Details == > > Series: "Switch to Recipe Specific Sysr..." and 2 more > Revision: 1 > URL : https://patchwork.openembedded.org/series/4877/ > State : failure > > == Summary == > > > Thank you for

Re: [OE-core] [PATCHv2] qemu: Upgrade to 2.7.1

2017-01-20 Thread Patrick Ohly
On Fri, 2017-01-20 at 12:12 -0600, Aníbal Limón wrote: > --- a/meta/recipes-devtools/qemu/qemu.inc > +++ b/meta/recipes-devtools/qemu/qemu.inc > @@ -9,12 +9,11 @@ require qemu-targets.inc > inherit autotools ptest > BBCLASSEXTEND = "native nativesdk" > > -PR = "r1" > - > # QEMU_TARGETS is

[OE-core] [PATCH v3 3/3] selftest/containerimage.py: Add container IMAGE_FSTYPES test

2017-01-20 Thread Randy Witt
This test checks to make sure only the files expected exist in a container image. Currently only ROOTFS_BOOTSTRAP_INSTALL, gets added to all images without the user specifying it. But this test should help if a developer in the future ever silently adds more than just ROOTFS_BOOTSTRAP_INSTALL,

[OE-core] ✗ patchtest: failure for "Switch to Recipe Specific Sysr..." and 2 more

2017-01-20 Thread Patchwork
== Series Details == Series: "Switch to Recipe Specific Sysr..." and 2 more Revision: 1 URL : https://patchwork.openembedded.org/series/4877/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been

[OE-core] [PATCHv2] qemu: Upgrade to 2.7.1

2017-01-20 Thread Aníbal Limón
Minor upgrade contains fixes from 2.7.0. Removed patches (already in upstream): - 0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch - 0001-virtio-zero-vq-inuse-in-virtio_reset.patch - 0002-fix-CVE-2016-7423.patch Signed-off-by: Aníbal Limón ---

[OE-core] [PATCH 09/14] wic: fixed test_iso_image test case

2017-01-20 Thread Richard Purdie
From: Ed Bartosh Fixed isoimage-isohybrid plulgin and correspondent wic tet case: - used wic-tools target when getting varlue of STAGING_LIBDIR variable - ensured that image is built with efi and hddimg enabled Signed-off-by: Ed Bartosh

[OE-core] [PATCH 01/14] wic: add wic-tools recipe

2017-01-20 Thread Richard Purdie
From: Ed Bartosh This meta recipe is for building tools used by wic. It allows wic to find tools in recipe specific sysroot as all tools will be present in wic-tools sysroot. NOTE: task do_build_sysroot is created to ensure that sysroot is re-populated when package

[OE-core] [PATCH 02/14] image_types.bbclass: build wic-tools

2017-01-20 Thread Richard Purdie
From: Ed Bartosh Added dependency do_image_wic -> wic-tools:do_build to ensure that all required tools are ready to use by wic. Signed-off-by: Ed Bartosh --- meta/classes/image_types.bbclass | 1 + 1 file changed, 1 insertion(+) diff

[OE-core] [PATCH 10/14] selftest: wic: don't set WKS_FILE

2017-01-20 Thread Richard Purdie
From: Ed Bartosh Setting WKS_FILE variable should be done only when wic image is expected to be built by bitbake. If it's set for all images it breaks image building in some cases. Signed-off-by: Ed Bartosh ---

[OE-core] [PATCH 07/14] partition.py: use FAKEROOTCMD variable to get path to pseudo

2017-01-20 Thread Richard Purdie
From: Ed Bartosh wic used native sysroot to get path to pseudo utility. This approach doesn't work with recipe specific sysroots. Using FAKEROOTCMD should fix the issue. Signed-off-by: Ed Bartosh --- scripts/lib/wic/partition.py | 2 +-

[OE-core] [PATCH 06/14] image.bbclass: put .env files to ${STAGING_DIR}/imgdata/

2017-01-20 Thread Richard Purdie
From: Ed Bartosh As STAGING_DIR_TARGET started to point to a recipe specific sysroot wic is not able to add .env files when .wks file refers to multiple rootfs recipes. Used STAGING_DIR instead of STAGING_DIR_TARGET to make the directory with .env files the same for

[OE-core] [PATCH 03/14] selftest: build wic-tools in the Wic.setUp

2017-01-20 Thread Richard Purdie
From: Ed Bartosh Built wic-tools recipe instead of set of tools recipes to ensure that all tools are available from one recipe sysroot. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/wic.py | 3 +-- 1 file changed, 1 insertion(+),

[OE-core] [PATCH 14/14] wic: bootimg-pcbios: use wic-tools target

2017-01-20 Thread Richard Purdie
From: Ed Bartosh Used wic-tools target to get location of syslinux. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/source/bootimg-pcbios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OE-core] [PATCH 12/14] wic: misc.py: add parameter 'cache' to get_bitbake_vars

2017-01-20 Thread Richard Purdie
From: Ed Bartosh This parameter will be used to allow or prevent variable caching. For example, we don't want to cache value of RECIPE_SYSROOT_NATIVE wic-tools variable as we may decide to rebuild wic-tools. Signed-off-by: Ed Bartosh ---

[OE-core] [PATCH 05/14] image_types: add RECIPE_SYSROOT_NATIVE to WICVARS

2017-01-20 Thread Richard Purdie
From: Ed Bartosh Added RECIPE_SYSROOT_NATIVE to the WICVARS for wic to be able to access it when run from bitbake. Signed-off-by: Ed Bartosh --- meta/classes/image_types.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[OE-core] [PATCH 08/14] wic: fixed recipe name

2017-01-20 Thread Richard Purdie
From: Ed Bartosh Renamed grub-efi-native -> grub-efi in NATIVE_RECIPES dictionary as '-native' suffix is added to the recipe name in the code. Signed-off-by: Ed Bartosh --- scripts/lib/wic/utils/oe/misc.py | 2 +- 1 file changed, 1

[OE-core] [PATCH 13/14] wic: rebuild wic-tools if its sysroot doesn't exist

2017-01-20 Thread Richard Purdie
From: Ed Bartosh Rebuild wic-tools if its native sysroot doesn't exist to ensure that all required tools are available. Signed-off-by: Ed Bartosh --- scripts/wic | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff

[OE-core] [PATCH 04/14] wic: fix getting path of native sysroot

2017-01-20 Thread Richard Purdie
From: Ed Bartosh wic used STAGING_DIR_NATIVE variable as a path to native sysroot. This doesn't work with recipe specific sysroots as STAGING_DIR_NATIVE points to the native sysroot of the current recipe. Used RECIPE_SYSROOT_NATIVE variable of wic-tools recipe to fix

[OE-core] [PATCH 11/14] selftest: fixed 3 wic test cases

2017-01-20 Thread Richard Purdie
From: Ed Bartosh Fixed test_systemd_bootdisk, test_wic_image_type and test_qemu test cases by building core-image-minimal with correct configuration. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/wic.py | 12 1 file

[OE-core] [PATCH 2/3] selftest/devtool: Update to account for recipe specific sysroot

2017-01-20 Thread Richard Purdie
There is no common sysroot any more so add the libusb dependency using DEPENDS and check for the output in the sysroot output directory so the tests work with recipe specific sysroots. Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/devtool.py | 9

[OE-core] [PATCH 3/3] bitbake.conf: Exclude extend_recipe_sysroot function from sstate checksums

2017-01-20 Thread Richard Purdie
The extend_recipe_sysroot itself is excluded from the task hashes. This is because it only ever acts upon the contents of the task dependencies and hence those checksums accurately relfect what its doing. It does mean sysroots don't repopulate if this function changes but there are other easy ways

[OE-core] [PATCH 1/3] Switch to Recipe Specific Sysroots

2017-01-20 Thread Richard Purdie
This patch is comparatively large and invasive. It does only do one thing, switching the system to build using recipe specific sysroots and where changes could be isolated from it, that has been done. With the current single sysroot approach, its possible for software to find things which

[OE-core] ✗ patchtest: failure for OEQA Framework Refactor & Improvements (rev4)

2017-01-20 Thread Patchwork
== Series Details == Series: OEQA Framework Refactor & Improvements (rev4) Revision: 4 URL : https://patchwork.openembedded.org/series/4272/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been

[OE-core] [PATCH 41/55] oeqa/runtime/context: Add runtime option group and options for target type and server ip.

2017-01-20 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- meta/lib/oeqa/runtime/context.py | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py index 10a8872..e692bc0 100644 ---

[OE-core] [PATCH 55/55] selftest/runtime-test.py: Adapt test to use new runtime framework

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This adapt the current runtime selftest to use the new runtime framework. Signed-off-by: Mariano Lopez --- .../lib/oeqa/runtime/{ => cases}/selftest.json | 0 .../lib/oeqa/runtime/{ => cases}/selftest.py

[OE-core] [PATCH 53/55] oeqa/runtime/context.py: Add defaults for runtime context

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This adds default values to OERuntimeTestContextExecutor class in order to make easier the execution of exported test that were generated with testexport class. [YOCTO #10686] Signed-off-by: Mariano Lopez ---

[OE-core] [PATCH 51/55] testimage.bbclass: Add support for package extraction

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez testimage support the installation of packages without a package manager in the target. This adds support for package extraction required to support the installation feature. [YOCTO #10234] Signed-off-by: Mariano Lopez

[OE-core] [PATCH 54/55] testexport.bbclass: Migrate testexport to use new framework

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This migrates current testexport implmentation to use the new OEQA framework. [YOCTO #10686] Signed-off-by: Mariano Lopez --- meta/classes/testexport.bbclass | 215 +---

[OE-core] [PATCH 52/55] testimage.bbclass: Add package install feature

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This allows to use the package install feature with the new OEQA framework. [YOCTO #10234] Signed-off-by: Mariano Lopez --- meta/classes/testimage.bbclass | 27

[OE-core] [PATCH 50/55] oeqa/core/utils/test.py: Add functions to get module path

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This will add functions to get module file path from a test case or a complete suite. [YOCTO #10234] Signed-off-by: Mariano Lopez --- meta/lib/oeqa/core/utils/test.py | 13 + 1 file changed, 13

[OE-core] [PATCH 47/55] testimage.bbclass: Migrate class to use new runtime framework

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This migrates testimage class to use the new framework. Most of the code added here is to get rid off the data store dependency. [YOCTO #10234] Signed-off-by: Mariano Lopez --- meta/classes/testimage.bbclass |

[OE-core] [PATCH 48/55] oeqa/runtime/cases: Migrate runtime tests.

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This migrates current runtime test suite to be used with the new framework. [YOCTO #10234] Signed-off-by: Mariano Lopez --- .../{runtime_cases => runtime/cases}/_ptest.py | 0 .../{runtime_cases =>

[OE-core] [PATCH 49/55] runtime/cases/smart.py: Migrate smart tests

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This migrates the smart test from the old framework to the new one. This has its own commit because smart test was using bb and oe libraries that are available when exporting the test cases to run in a different host. Because of the removal of

[OE-core] [PATCH 46/55] core/target/qemu.py Adds qemu target

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This adds qemu target to be used in testimage. It uses the current QemuRunner class in order to boot and control qemu. [YOCTO #10231] Signed-off-by: Mariano Lopez --- meta/lib/oeqa/core/target/qemu.py | 45

[OE-core] [PATCH 45/55] oeqa/runtime/context.py: Add logger to getTarget

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez Current targets (ssh and qemu) require a logger in their constructors, so in order to get a new target we need to provide the logger. [YOCTO #10686] Signed-off-by: Mariano Lopez ---

[OE-core] [PATCH 44/55] oeqa/runtime/context.py: Prepare for qemu

2017-01-20 Thread Aníbal Limón
This commit will prepare context to use qemu and not just simpleremote. Signed-off-by: Aníbal Limón --- meta/lib/oeqa/runtime/context.py | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/meta/lib/oeqa/runtime/context.py

[OE-core] [PATCH 42/55] oeqa/runtime/context: Move helper functions for process args to executor

2017-01-20 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- meta/lib/oeqa/runtime/context.py | 56 ++-- 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py index e692bc0..ec378bb

[OE-core] [PATCH 43/55] oeqa/utils/dump: Move get_host_dumper to OERuntimeTestContextExecutor class

2017-01-20 Thread Aníbal Limón
To avoid getVar calls inside a utils module, also moves get_host_dumper import inside testexport isn't needed. [YOCTO #10231] Signed-off-by: Aníbal Limón --- meta/classes/testexport.bbclass | 1 - meta/classes/testimage.bbclass | 5 +++--

[OE-core] [PATCH 37/55] oeqa/runtime/files: Move runtime files from old directory

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez As part of the refactor we require to move the files used in runtime testing to the new directory. This also adds the path to the runtime test context. [YOCTO #10234] Signed-off-by: Mariano Lopez ---

[OE-core] [PATCH 39/55] oeqa/core/decorator: Add skipIfNotDataVar and skipIfNotInDataVar

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez skipIfNotDataVar will skip a test if a variable doesn't have certain value. skipIfNotInDataVar will skip a test if a value is not in a certain variable. Signed-off-by: Mariano Lopez ---

[OE-core] [PATCH 38/55] oeqa/runtime/utils/targetbuildproject.py: Don't use more than 80 characters per line

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez Signed-off-by: Mariano Lopez --- meta/lib/oeqa/runtime/utils/targetbuildproject.py | 29 +-- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git

[OE-core] [PATCH 40/55] oeqa/core/context: Add option to select tests to run

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This add the option to select what tests to run in the [.[.]] format. Currently it just support modules Signed-off-by: Mariano Lopez --- meta/lib/oeqa/core/context.py | 6 ++ 1 file changed, 6 insertions(+)

[OE-core] [PATCH 35/55] oeqa/runtime: Add OEHasPackage decorator

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This new decorator will be used to skip the test if the image under test doesn't have the required packages installed. [YOCTO #10234] Signed-off-by: Mariano Lopez --- meta/lib/oeqa/runtime/decorator/package.py

[OE-core] [PATCH 36/55] oeqa/core/decorator/data.py: Add skipIfNotFeature decorator

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This adds a new decorator to check if image under tests has certain DISTRO_FEATURE or IMAGE_FEATURE. [YOCTO #10234] Signed-off-by: Mariano Lopez --- meta/lib/oeqa/core/decorator/data.py | 28

[OE-core] [PATCH 33/55] oeqa/core/target Add OESSHTarget to sent commands to targets using SSH

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez With this commit now it is possible to add targets with SSH for testing. Most of it was imported for existing code, with improvements in log handling. [YOCTO #10234] Signed-off-by: Mariano Lopez ---

[OE-core] [PATCH 34/55] oeqa/runtime: Add case, context and loader classes for runtime testing

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This adds OERuntimeTestCase, OERuntimeTestContext, and OERuntimeTestLoader to be used for runtime testing. As expected there are some changes in runtime context: - Adds the target to be used for runtime testing, the default is a SSH connection

[OE-core] [PATCH 30/55] oeqa/runtime: Fix TargetBuildProject instances

2017-01-20 Thread Aníbal Limón
TargetBuildProject was refactored to avoid bitbake dependency so the instance don't allow to pass data store anymore. classes/testimage: Export proxies before run tests The TargetBuildProject based tests download archives from network. Signed-off-by: Aníbal Limón

[OE-core] [PATCH 31/55] oeqa: Fix files handling on runtime tests.

2017-01-20 Thread Aníbal Limón
Common files was move to oeqa/files from oeqa/runtime/files because the same files are used across Runtime,SDK,eSDK tests. Signed-off-by: Aníbal Limón --- meta/classes/testexport.bbclass | 5 + meta/lib/oeqa/oetest.py | 1 + meta/lib/oeqa/runtime/gcc.py

[OE-core] [PATCH 32/55] oeqa/runtime: Move to runtime_cases

2017-01-20 Thread Aníbal Limón
The new oeqa core framework will modify the structure of the runtime folder the new runtime folder will have python code inside to support runtime test cases. Signed-off-by: Aníbal Limón --- meta/lib/oeqa/{runtime => runtime_cases}/_ptest.py | 0

[OE-core] [PATCH 29/55] oeqa/sdkext/cases: Migrate test case to new OEQA framework

2017-01-20 Thread Aníbal Limón
Summary, - Changes base case class to OESDKExtTest. - Changes decorator classes to new ones. - Chnages variable names sdktestdir -> sdk_dir. - Added missing license to MIT. Signed-off-by: Aníbal Limón --- meta/lib/oeqa/sdk/cases/buildgalculator.py | 2 +-

[OE-core] [PATCH 28/55] classes/testsdk: Migrate to use the new OESDKExtTestContext

2017-01-20 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- meta/classes/testsdk.bbclass | 98 1 file changed, 45 insertions(+), 53 deletions(-) diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass index 176dafd..69689a1 100644

[OE-core] [PATCH 26/55] oeqa/sdkext: Move test cases inside cases directory

2017-01-20 Thread Aníbal Limón
For match with the new structure of the OEQA framework. In the new framework Test component base directory in this case sdk module will contain case and context implementations. [YOCTO #10599] Signed-off-by: Aníbal Limón --- meta/lib/oeqa/sdkext/__init__.py

[OE-core] [PATCH 27/55] oeqa/sdkext: Adds case and context modules.

2017-01-20 Thread Aníbal Limón
The extensible sdk context and case modules extends the sdk ones, this means that the tests from sdk are run also the sdkext tests. Enables support in context for use oe-test esdk command for run the test suites, the same options of sdk are required for run esdk tests. Removes old related to

[OE-core] [PATCH 22/55] oeqa/utils: Move targetbuild to buildproject module

2017-01-20 Thread Aníbal Limón
The new buildproject module will contain only BuildProject class a helper class for build source code. The remaining classes TargetBuildProject and SDKBuildProject was move to runtime and sdk respectively. [YOCTO #10599] Signed-off-by: Aníbal Limón Signed-off-by:

[OE-core] [PATCH 25/55] classes/testsdk: Remove the need of TEST_LOG_DIR variable

2017-01-20 Thread Aníbal Limón
The TEST_LOG_DIR was used for store sdk_target_log this log contains the output of the run of build commands now that information could be found also on log.do_testsdk under WORKDIR. The log will continue to store into SDK_DIR instead of TEST_LOG_DIR. Signed-off-by: Aníbal Limón

[OE-core] [PATCH 18/55] oeqa/sdk: Move test cases inside cases directory

2017-01-20 Thread Aníbal Limón
For match with the new structure of the OEQA framework. In the new framework Test component base directory in this case sdk module will contain case and context implementations. [YOCTO #10599] Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez

[OE-core] [PATCH 21/55] classes/testsdk: Migrates testsdk.bbclass to use new OESDKTestContext

2017-01-20 Thread Aníbal Limón
The functionality provided is the same with imporvements on code reuse and better interfaces. Signed-off-by: Aníbal Limón --- meta/classes/testsdk.bbclass | 75 +++- 1 file changed, 60 insertions(+), 15 deletions(-) diff

[OE-core] [PATCH 19/55] oeqa/{runtime, sdk}/files: Move testsdkmakefile from runtime to sdk module

2017-01-20 Thread Aníbal Limón
It doesn't make sense to have files related to sdk module into runtime module. [YOCTO #10599] Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez --- meta/lib/oeqa/{runtime => sdk}/files/testsdkmakefile | 0 1 file changed, 0

[OE-core] [PATCH 24/55] oeqa/sdk/cases: Migrate tests to the new OEQA framework

2017-01-20 Thread Aníbal Limón
Summary of the changes: - Remove auto extend_path using pkgutil at __init__, is not needed. - Change base class to OESDKTestCase. - Add td_vars attr to set dependencies of certain variables in test data. - Change skips from module level to class level because Test context (tc) now isn't at

[OE-core] [PATCH 23/55] oeqa/utils: {Target, SDK, }BuildProject remove dependency of bb

2017-01-20 Thread Aníbal Limón
Don't use bitbake references inside utils modules, in order todo that changes getVar calls for arguments in the __init__ method like dl_dir for all the classes and testlogdir, builddatetime in SDKBUildProject. Also don't export proxies inside _download_archive method, a good practice is to setup

[OE-core] [PATCH 20/55] oeqa/sdk: Add case and context modules for the SDK component

2017-01-20 Thread Aníbal Limón
Adds case and context modules for SDK based on oetest.py old code. Enables SDK Test component usage with oe-test, the SDK Test component adds command line options for specify sdk installed dir, sdk environment and target/hosts maniftest. [YOCTO #10599] Signed-off-by: Aníbal Limón

[OE-core] [PATCH 16/55] oeqa/utils/__init__.py: Adds compatibility with bitbake logger

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez The bitbake logger changes the way debug is logged and adds different levels within debug, this is passed as argument to the function and breaks compatibility with vanilla loggers. This implements a way to handle this adding a new function for

[OE-core] [PATCH 17/55] oeqa: Move common files to oeqa/files instead of runtime only

2017-01-20 Thread Aníbal Limón
Those files are used by runtime and sdk test cases, so move to base directory of oeqa module. [YOCTO #10599] Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez --- meta/lib/oeqa/{runtime => }/files/test.c | 0

[OE-core] [PATCH 15/55] classes/populate_sdk_base: Add write_sdk_test_data to postprocess

2017-01-20 Thread Aníbal Limón
This function will generates testdata.json per SDK type. [YOCTO #10231] Signed-off-by: Aníbal Limón --- meta/classes/populate_sdk_base.bbclass | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meta/classes/populate_sdk_base.bbclass

[OE-core] [PATCH 12/55] oeqa/core: Add README

2017-01-20 Thread Aníbal Limón
The README has an introduction and explains how to run the test suite and creates a new Test component. Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez --- meta/lib/oeqa/core/README | 38

[OE-core] [PATCH 14/55] classes/rootfs-postcommands: Add write_image_test_data

2017-01-20 Thread Aníbal Limón
This function will generates testdata.json by image type. [YOCTO #10231] Signed-off-by: Aníbal Limón --- meta/classes/rootfs-postcommands.bbclass | 18 ++ 1 file changed, 18 insertions(+) diff --git a/meta/classes/rootfs-postcommands.bbclass

[OE-core] [PATCH 13/55] oe/data: Add export2json function

2017-01-20 Thread Aníbal Limón
The export2json function export the variables contained in the data store to JSON format, the main usage for now will be to provide test data to QA framework. Signed-off-by: Aníbal Limón --- meta/lib/oe/data.py | 28 1 file changed, 28

[OE-core] [PATCH 11/55] oeqa/core/cases: Add example test cases

2017-01-20 Thread Aníbal Limón
Serves as an first input of how to the OEQA framework works. Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez --- meta/lib/oeqa/core/cases/__init__.py | 0 meta/lib/oeqa/core/cases/example/data.json | 1 +

[OE-core] [PATCH 10/55] oeqa/core/context: Add support of OETestContextExecutor

2017-01-20 Thread Aníbal Limón
The OETestContextExecutor class supports to use oe-test for run core test component also is a base class for the other test components (runtime, sdk, selftest). Te principal functionality is to support cmdline parsing and execution of OETestContext, the test components could extend the common

[OE-core] [PATCH 07/55] oeqa/core/decorator: Add support for OETestDataDepends and skipIfDataVar

2017-01-20 Thread Aníbal Limón
The OETestDataDepends decorator skips a test case if a variable isn't into test data (d). The skipIfDataVar decorator skips a test case if a variable has certain value. Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez ---

[OE-core] [PATCH 06/55] oeqa/core/decorator: Add support for OETimeout decorator

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez The OETimeout provides support for specify certain timeout in seconds for a test case, if the timeout is reach the SIGALRM is sent and an exception is raised to notify the timeout. [YOCTO #10235] Signed-off-by: Mariano Lopez

[OE-core] [PATCH 09/55] scripts/oe-test: Add new oe-test script

2017-01-20 Thread Aníbal Limón
The new oe-test script will be use to run test components with one single script. The oe-test script search for test components inside meta/lib/oeqa, the test components needs to implement OETestContextExecutor inside context module in order to be supported by oe-test. [YOCTO #10230]

[OE-core] [PATCH 08/55] oeqa/core: Add tests for the OEQA framework

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez This test suite covers the current functionality for the OEQA framework. For run certain test suite, $ cd meta/lib/oeqa/core/tests $ ./test_data.py Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez

[OE-core] [PATCH 05/55] oeqa/core/decorator: Add support for OETestID and OETestTag

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez These two decorators stores certain TAG or ID for the test case also provides support for filtering in loading step. [YOCTO #10236] Signed-off-by: Mariano Lopez Signed-off-by: Aníbal Limón

[OE-core] [PATCH 03/55] oeqa/core: Add loader, context and decorator modules

2017-01-20 Thread Aníbal Limón
loader: Implements OETestLoader handling OETestDecorator and filtering support when load tests. The OETestLoader is responsible to set custom methods, attrs of the OEQA frameowork. [YOCTO #10231] [YOCTO #10317] [YOCTO #10353] decorator: Add base class OETestDecorator to provide a common way to

[OE-core] [PATCH 01/55] oeqa/core: Add base OEQA framework

2017-01-20 Thread Aníbal Limón
case: Defines OETestCase base class that provides custom methods/attrs defined by the framework. Every OETestCase instance contains a reference to the test data (d), the test context (tc) and the logger. Also implements _oe{SetUp,TearDown}Class for make special handling of OEQA

[OE-core] [PATCH 04/55] oeqa/core/decorator: Add support for OETestDepends

2017-01-20 Thread Aníbal Limón
The OETestDepends decorator could be used over test cases to define some dependency between them. At loading time sorting the tests to grauntee that a test case executes before also raise an exception if found a circular dependency between test cases. At before test case run reviews if the

[OE-core] [PATCH 02/55] oeqa/core: Add utils module for OEQA framework

2017-01-20 Thread Aníbal Limón
From: Mariano Lopez misc: Functions for transform object to other types. path: Functions for path handling. test: Functions for operations related to test cases and suites. [YOCTO #10232] Signed-off-by: Mariano Lopez Signed-off-by:

[OE-core] [PATCH 00/55] OEQA Framework Refactor & Improvements

2017-01-20 Thread Aníbal Limón
This patchset is related to OEQA Framework for details read the RFC send to the Openembedded architecture ML. http://lists.openembedded.org/pipermail/openembedded-architecture/2016-December/000351.html Also adds the migration of the runtime testing leaving only selftest remains to migrate. The

Re: [OE-core] [PATCH v2 1/3] ccache.bbclass: enable max size setup for ccache dir

2017-01-20 Thread Yannick GICQUEL
Hi, Some comments inline below (with oe-list this time), Regards, 2017-01-20 17:23 GMT+01:00 Yannick GICQUEL : > 2017-01-19 20:02 GMT+01:00 Andre McCurdy : >> On Thu, Jan 19, 2017 at 7:01 AM, Yannick Gicquel >> wrote: >>>

Re: [OE-core] [morty] backport request: nspr: set correct version in pkg-config file

2017-01-20 Thread akuster808
On 01/20/2017 04:34 AM, Max Krummenacher wrote: Hi Can we backport the following commit to morty? got it. Thanks, Armin http://cgit.openembedded.org/openembedded-core/commit/?id=cb4f5ecf32006192baaf41218a3d7b43ca1c2951 It fixes pkgconfig to no longer report an old version. Currently this

Re: [OE-core] [PATCH v4 02/12] acpica: work around flex 2.6.2 code generation issue

2017-01-20 Thread Patrick Ohly
On Fri, 2017-01-20 at 15:12 +0100, Patrick Ohly wrote: > Without this patch, linking fails with a missing implementation of > yy_scan_string. This looks like a regression in flex, because 2.6.0 generated > different code that called PrParser_scan_string > resp. DtParser_scan_string. > > Working

Re: [OE-core] $50 bounty for an OE recipe for libfilesys-smbclient-perl. seriously.

2017-01-20 Thread Tim Orling
On Fri, Jan 20, 2017 at 3:52 AM, Robert P. J. Day wrote: > > the earlier note from ross i had totally forgotten about ... > > On Tue, 20 Dec 2016, Burton, Ross wrote: > > > FWIW I had a quick look at this. I'm certainly no perl guru and can > > barely understand it, but

[OE-core] [PATCH 1/2] utils: Factor out common multilib datastore creation function

2017-01-20 Thread Richard Purdie
This code is already used in two places and we need it in others so turn it into its own function. Signed-off-by: Richard Purdie --- meta/classes/utils.bbclass | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[OE-core] [PATCH 2/2] meta-environment: Ensure all multilib dependencies are accounted for

2017-01-20 Thread Richard Purdie
Currently the recipe depends on the mulitlib libcs all being built but the dependencies don't account for this. Fix the DEPENDS so that the requires pieces are all built first rather than relying on luck. Signed-off-by: Richard Purdie ---

[OE-core] ✗ patchtest: failure for UEFI + Secure Boot + qemu (rev5)

2017-01-20 Thread Patchwork
== Series Details == Series: UEFI + Secure Boot + qemu (rev5) Revision: 5 URL : https://patchwork.openembedded.org/series/4506/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on

[OE-core] [PATCH v4 03/12] ovmf: move from meta-luv to OE-core

2017-01-20 Thread Patrick Ohly
From: meta-luv This is an unmodified copy of github.com/01org/luv-yocto/meta-luv/recipes-core/ovmf revision 4be4329. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf/0001-BaseTools-Force-tools-variables-to-host-toolchain.patch | 48

[OE-core] [PATCH v4 09/12] runqemu: also accept -image suffix for rootfs parameter

2017-01-20 Thread Patrick Ohly
The magic detection of the rootfs parameter only worked for image recipes which embedd the "image" string in the middle, as in "core-image-minimal". Sometimes it is more natural to call an image "something-image". To get such an image detected by runqemu, "-image" at the end of a parameter must

[OE-core] [PATCH v4 11/12] ovmf: build image which enrolls standard keys

2017-01-20 Thread Patrick Ohly
When booting a qemu virtual machine with ovmf.secboot, it comes up with no keys installed and thus Secure Boot disabled. To lock down the machine like a typical PC, one has to enroll the same keys that PC vendors normally install, i.e. the ones from Microsoft. This can be done manually (see

[OE-core] [PATCH v4 12/12] ovmf: remove BGRT patch

2017-01-20 Thread Patrick Ohly
This patch was added to meta-luv for kernel testing purposes and probably is not relevant for OE-core. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf/0001-OvmfPkg-Enable-BGRT-in-OVMF.patch | 110

[OE-core] [PATCH v4 10/12] runqemu: support UEFI with OVMF firmware

2017-01-20 Thread Patrick Ohly
In the simplest case, "runqemu qemux86 qcow2 ovmf" for an EFI-enabled image in the qcow2 format will locate the ovmf.qcow2 firmware file deployed by the ovmf recipe in the image deploy directory, override the graphics hardware with "-vga std" because that is all that OVMF supports, and boot with

[OE-core] [PATCH v4 01/12] acpica: move from meta-oe to OE-core

2017-01-20 Thread Patrick Ohly
From: Fathi Boudra qemu support for UEFI in OE-core depends on OVMF, which needs the iasl tools provided by this recipe. There's also an iasl recipe in meta-luv, but than can and will be replaced by this one, thus reducing overall maintenance work. Copied from

[OE-core] [PATCH v4 05/12] ovmf: deploy firmware in image directory

2017-01-20 Thread Patrick Ohly
When used with '-drive if=pflash', qemu will store UEFI variables inside the firmware image file. That is unexpected for a file located in the sysroot, which should be read-only, while it is normal for image files in the deploy/images directory. Therefore that directory is a better place for use

  1   2   >