Re: [OE-core] [yocto] [PATCH] runtime: Add support to manual BSP test cases

2018-07-15 Thread Hussin, Mohamad Noor Alim
TestID was determined from testopia, https://bugzilla.yoctoproject.org/tr_show_run.cgi?run_id=9635. Regards, Alim Hussin -Original Message- From: akuster808 [mailto:akuster...@gmail.com] Sent: Friday, July 13, 2018 10:52 PM To: Hussin, Mohamad Noor Alim ; yo...@yoctoproject.org;

[OE-core] [PATCH 08/12] oeqa/selftest/wic: Ensure initramfs exists for test_iso_image

2018-07-15 Thread Richard Purdie
AssertionError: Command 'wic create mkhybridiso --image-name core-image-minimal -o /var/tmp/wic.oe-selftest/' returned non-zero exit status 1: ERROR: _exec_cmd: gzip -f -9 -c /var/tmp/wic.oe-selftest/tmp.wic.drhn6edm/initrd.cpio > /var/tmp/wic.oe-selftest/tmp.wic.drhn6edm/initrd.cpio.gz

[OE-core] [PATCH 10/12] devtool: Split tests into multiple classes

2018-07-15 Thread Richard Purdie
This allows better parallelism between the different tests as currently this block takes the longest time to execute. devtool tests are still all grouped into the "devtool" module for ease of exection. This also makes it easier to execute some subset of devtool tests for testing devtool changes.

[OE-core] [PATCH 01/12] oeqa/core/runner: Improve test case comparision

2018-07-15 Thread Richard Purdie
We can directly compare the test case IDs rather than representations, then if we're using subunit to split the tests, the comparisions still work as intended. Signed-off-by: Richard Purdie --- meta/lib/oeqa/core/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[OE-core] [PATCH 02/12] oeqa/selftest/image_tyypedep: Avoid undefined variable failure

2018-07-15 Thread Richard Purdie
If something goes wrong with the test, dep can be undefined. Avoid a traceback for this and handle it more gracefully. Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/image_typedep.py | 3 +++ 1 file changed, 3 insertions(+) diff --git

[OE-core] [PATCH 03/12] oqqa/selftest/lic_checksum: Avoid cache reparse

2018-07-15 Thread Richard Purdie
By having a consistent config for the test, a second reparse is avoided and the test runs slightly faster. Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/lic_checksum.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[OE-core] [PATCH 04/12] oeqa/runner: Ensure we don't print misleading results output

2018-07-15 Thread Richard Purdie
The current code assumes if something isn't a failure of some kind, it was a pass. When test case IDs weren't matching, this lead to very confusing output where things would fail, then be listed as passing. This adds code to track successes, ensuring we don't end up in this position again with

[OE-core] [PATCH 09/12] oeqa: Default to buffer mode for tests

2018-07-15 Thread Richard Purdie
Currently some tests run in buffer mode and some don't. Those that don't can corrupt stdout/stderr. Switch to using buffer mode everywhere so we're consistent. If there is useful output on stdout/stderr, it will be displayed if the test fails. Signed-off-by: Richard Purdie ---

[OE-core] [PATCH 06/12] oeqa/selftest/devtool: Ensure dbus is built befoe running test

2018-07-15 Thread Richard Purdie
If dbus isn't build first the dbus dependency of dbus-wait can't be detected through pkgconfig and the test fails: AssertionError: {'DEPENDS': {'dbus'}} != {} - {'DEPENDS': {'dbus'}} + {} : Some expected variables not found in recipe: {'DEPENDS': {'dbus'}} Ensure dbus is built and present in the

[OE-core] [PATCH 05/12] oeqa/selftest/package: Use setUpLocal, not setUp

2018-07-15 Thread Richard Purdie
The main setUp function needs to be called and tests are meant to define setUpLocal. For some reason this one didn't leading to errors with recent code changes. Fix it. Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/package.py | 2 +- 1 file changed, 1 insertion(+), 1

[OE-core] [PATCH 12/12] oeqa/selftest/wic: Split tests into two class groups

2018-07-15 Thread Richard Purdie
This improves test parallelism. Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/wic.py | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index 2771af63674..ba4d3be7a86

[OE-core] [PATCH 07/12] oeqa/selftest/wic: Use a subdir of builddir, not /var/

2018-07-15 Thread Richard Purdie
Using /var/ leave wic open to races with other processes on the system, use a subdir of builddir instead to avoid this. Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/wic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/wic.py

[OE-core] [PATCH 11/12] oeqa/sdkbuildproject: Capture output to quieten selftest logs

2018-07-15 Thread Richard Purdie
Only show the output in the failure case. Signed-off-by: Richard Purdie --- meta/lib/oeqa/sdk/utils/sdkbuildproject.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py index

[OE-core] [PATCH 1/3] mesa: Fix build with wayland and egl

2018-07-15 Thread Khem Raj
When wayland and egl both are on then it enables the wayland plugin which actually fails to build because its not finding wayland-protocol xml templates in proper location which is recipe sysroot since we are cross compiling Fixes build errors e.g. make[4]: *** No rule to make target

[OE-core] [PATCH 3/3] meson: Add risc-v to known architectures

2018-07-15 Thread Khem Raj
Signed-off-by: Khem Raj --- meta/recipes-devtools/meson/meson.inc | 1 + ...nbuild-Recognise-risc-v-architecture.patch | 27 +++ 2 files changed, 28 insertions(+) create mode 100644 meta/recipes-devtools/meson/meson/0001-mesonbuild-Recognise-risc-v-architecture.patch

[OE-core] [PATCH 2/3] packagegroups: Disable unbuildable dependencies for riscv64

2018-07-15 Thread Khem Raj
This helps with cleaner world build parsing logs Signed-off-by: Khem Raj --- .../packagegroups/packagegroup-core-tools-profile.bb | 3 +++ .../packagegroups/packagegroup-core-tools-testapps.bb | 1 + meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb | 2 ++ 3

[OE-core] [PATCH V5 0/3] upgrade systemd and systemd-boot to 239

2018-07-15 Thread Chen Qi
Changes in V5: * Add to ${PN}-container ${datadir}/dbus-1/system.d/org.freedesktop.import1.conf to avoid QA issue Changes in V4: * Squash fixes into the upgrade patch Changes in V3: * Change SRC_URI back to include musl patches unconditionally Changes in V2: * Update commit message to detail

[OE-core] [PATCH 2/3] systemd-boot: upgrade to 239

2018-07-15 Thread Chen Qi
Upgrade systemd-boot to 239. The following patch is removed due to recent fix about meson's cpu family mapping and validation. 0001-Also-check-i386-i586-and-i686-for-ia32.patch Signed-off-by: Chen Qi --- .../{systemd-boot_237.bb => systemd-boot_239.bb} | 5 ++--

[OE-core] [PATCH 3/3] oeqa/runtime/cases/rpm.py: workaround race condition

2018-07-15 Thread Chen Qi
With the recent change in new systemd version, it's possible that a user is deleted before stopping user-runtime-dir@xxx.service. See link below. https://github.com/systemd/systemd/issues/9541 Workaround this issue by delay for 1 second before deleting user. Signed-off-by: Chen Qi ---

[OE-core] [PATCH] bash: fix wrong exit status offset

2018-07-15 Thread Rui Wang
In Linux,8 bits of the return code and 8 bits of the number of the killing signal are mixed into a single value on the exit code, so the exit status offset should be 8. But the autoconf checker can not determine it while cross compiling, and then it is set to the default value 0, which will cause