Re: [OE-core] [meta][lib/oeqa][PATCH v3] Meta runtime cases: add testcases for kernel sample

2018-06-03 Thread Hongzhi, Song
Please ignore this. I will send V4 // Hongzhi On 2018年06月03日 10:13, Hongzhi.Song wrote: We are going to let runtime test support kernel tests. Now we just add kernel self-contained sample tests. And we plan to add overall kernel tests in the future. This patch is just add kernel samples test

Re: [OE-core] [PATCH] linux-libc-headers: To fix build error when enable mutilib on aarch64 Big endian.

2018-06-03 Thread Lei, Maohui
ping > -Original Message- > From: Lei, Maohui > Sent: Saturday, May 19, 2018 2:38 AM > To: openembedded-core@lists.openembedded.org > Cc: Lei, Maohui > Subject: [OE-core][PATCH] linux-libc-headers: To fix build error when enable > mutilib on aarch64 Big endian. > > Signed-off-by: Lei Maoh

[OE-core] [PATCH v3] ltp: bump to release 20180515

2018-06-03 Thread Daniel Díaz
The following patches have made it to upstream: * 0001-configure-Fix-default-value-of-without-numa-switch-i.patch * 0001-configure-add-knob-to-control-numa-support.patch * 0003-Add-knob-to-control-tirpc-support.patch * 0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch * 0040-safe_macros-make-is_fuse

Re: [OE-core] [PATCH 06/16] gcc-sanitizers: Fix libtool .la files

2018-06-03 Thread Robert Yang
On 06/04/2018 12:01 AM, Richard Purdie wrote: On Wed, 2018-05-30 at 17:03 +0800, Robert Yang wrote: From: Yuanjie Huang Since libtool sysroot is not set when compiling sanitizers, the libtool does no prefix the dependency path correctly. Fix it, so that programs can link to sanitizer librar

[OE-core] [PATCH 12/14] bitbake.conf: fix HOSTTOOLS setting related to image testing

2018-06-03 Thread Chen Qi
A list of tools are added to HOSTTOOLS depending on if we inherit testimage or not. Unfortunately, if we use TEST_IMAGE variable to automate the test, these tools are not added to HOSTTOOLS. Modify the condition to also check TEST_IMAGE to fix the above problem. Also, change to use if...else... i

[OE-core] [PATCH 14/14] oeqa/core/target/ssh.py: increase maximum read bytes from 1024 to 4096

2018-06-03 Thread Chen Qi
When running testimage task for core-image-sato-sdk, the following error appeared. UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 at position 0: invalid start byte Checking the codes, I found it's caused by setting a 1024 limit for the read method of the StreamReader object. Comment

[OE-core] [PATCH 13/14] testimage.bbclass: move codes into testimage_main

2018-06-03 Thread Chen Qi
testimage-auto is expected to run testimage task's codes automatically. But in fact, it's currently missing some codes, including testimage_sanity and create_rpm_index. This leads to the problem of unexpected runtime failure of test_dnf_makecache. The error message is as below. RESULTS - dnf.Dn

[OE-core] [PATCH 09/14] oeqa/runtime/cases/rpm.py: skip if rpm not available

2018-06-03 Thread Chen Qi
This test case should only run when rpm package is installed. So skip it if rpm package is not installed. This fixes: RESULTS - rpm.RpmBasicTest.test_rpm_help - Testcase 1059: FAILED Signed-off-by: Chen Qi --- meta/lib/oeqa/runtime/cases/rpm.py | 1 + 1 file changed, 1 insertion(+) diff --gi

[OE-core] [PATCH 11/14] oeqa/runtime/cases/multilib.py: fix test_file_connman skipping logic

2018-06-03 Thread Chen Qi
The test_file_connman should be executed only when 'lib32-connman' is installed and 'connman' is not installed. When lib32-connman and connman are both installed, the /usr/sbin/connmand could be from connman or lib32-connman, depending on the installation order. What we want to check is the connma

[OE-core] [PATCH 10/14] oeqa/runtime/cases/multilib.py: skip if needed packages are not available

2018-06-03 Thread Chen Qi
1) The test cases use 'readelf' command to do the check. This command is from binutils. So skip the test if the needed binutils package is not installed. The related error message in log.do_testimage is like below. Output: sh: readelf: not found 2) The test case tests /lib/libc.so

[OE-core] [PATCH 06/14] oeqa/runtime/cases/selftest.py: rename to _selftest.py

2018-06-03 Thread Chen Qi
This test modules is designed to be invoked only by selftest. It's not meant to be tested by normal runtime test. So it should be renamed with '_' prefix, so that it will not be automatically loaded by normal runtime tests when 'auto' is in TEST_SUITES. The failure message is as below. RESULTS

[OE-core] [PATCH 08/14] oeqa/core/decorator/data.py: fix skipIfNotInDataVar

2018-06-03 Thread Chen Qi
The var might not be set, resulting in unexpected error. RESULTS - multilib.MultilibTest.test_check_multilib_libc - Testcase 1593: ERROR The above error is due to MULTILIBS being not set, which is the default for OE. This patch fixes this problem. Also, the debugging message in skipIfNotInDat

[OE-core] [PATCH 07/14] testimage.bbclass: also check 'auto' to create rpm index

2018-06-03 Thread Chen Qi
Having 'auto' in TEST_SUITES will also run the 'dnf' test cases, so also check it to determine whether to create rpm index or not. This is to fix the following error when TEST_SUITES = "auto". RESULTS - dnf.DnfRepoTest.test_dnf_makecache - Testcase 1744: ERROR Signed-off-by: Chen Qi --- meta

[OE-core] [PATCH 01/14] oeqa/core/loader.py: support the 'auto' keyword

2018-06-03 Thread Chen Qi
In previous OEQA, having 'auto' in TEST_SUITES results in executing as many test cases as possible. This behaviour is broken for now. From the codes in core/loader.py, I can see that it tries to use another keyword 'all'. But in fact, it does not work. I've checked the current manual. The manual

[OE-core] [PATCH 03/14] oeqa/core/decorator/__init__.py: set metaclass to ABCMeta

2018-06-03 Thread Chen Qi
OETestFilter is a subclass of OETestDecorator. It wants to make use of @abstractmethod decorator. But such decorator requires metaclass to be ABCMeta to have effect. So add it now to achieve the designed behaviour. Comments from python's manual: """ Using this decorator requires that the class's m

[OE-core] [PATCH 05/14] oeqa/runtime/cases/dnf_runtime.py: skip test if PACKAGE_FEED_URIS is not set

2018-06-03 Thread Chen Qi
This test is to test the behaviour of PACKAGE_FEED_URIS is correct or not. If it's not even set, it makes no sense to do such test. So skip this test if PACKAGE_FEED_URIS is not set. Signed-off-by: Chen Qi --- meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py | 3 +++ 1 file changed, 3 inserti

[OE-core] [PATCH 04/14] oeqa/core/decorator/__init__.py: use 'cls' instead of 'obj'

2018-06-03 Thread Chen Qi
Use 'cls' instead of 'obj' to better reflect that registerDecorator actually serves as a class decorator. Signed-off-by: Chen Qi --- meta/lib/oeqa/core/decorator/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/core/decorator/__init__.py b/meta

[OE-core] [PATCH 02/14] testimage.bbclass: fix behavior of empty TEST_SUITES

2018-06-03 Thread Chen Qi
The current behaviour of TEST_SUITES is very confusing. setting: TEST_SUITES = "" result: Execute all test cases. setting: TEST_SUITES = "some_case_not_exist" result: Error out with 'Empty test suite' message. The expected behaviour of TEST_SUITES should be: 1. when 'auto' is in it, execute as

[OE-core] [PATCH V3 00/14] testimage: restore 'auto' behaviour and a few other fixes

2018-06-03 Thread Chen Qi
Changes in V3: * update patch to fix oe-selftest problem: oeqa/runtime/cases/selftest.py: rename to _selftest.py Changes in V2: * move codes into testimage_main instead of modifying testimage-auto.bbclass * use if...else... instead list index for setting of HOSTTOOLS The following changes since

Re: [OE-core] [PATCH 06/14] oeqa/runtime/cases/selftest.py: rename to _selftest.py

2018-06-03 Thread ChenQi
On 06/04/2018 06:42 AM, Richard Purdie wrote: On Fri, 2018-06-01 at 13:03 +0800, Chen Qi wrote: This test modules is designed to be invoked only by selftest. It's not meant to be tested by normal runtime test. So it should be renamed with '_' prefix, so that it will not be automatically loaded b

Re: [OE-core] [PATCH 05/16] xinetd: add Init Script Actions to xinetd script

2018-06-03 Thread Robert Yang
On 06/03/2018 11:59 PM, Richard Purdie wrote: On Wed, 2018-05-30 at 17:03 +0800, Robert Yang wrote: From: Shan Hai The chkconfig fails to list the xinetd service because the xinetd lacks Init Script Actions in it, add the actions to fix it. Signed-off-by: Shan Hai Signed-off-by: Mingli Yu

Re: [OE-core] [PATCH] eudev: create static nodes from modules

2018-06-03 Thread Zhou, Li
Ping On 04/19/2018 02:35 PM, Li Zhou wrote: Revert commit because /dev/net/tun is usually needed to already been there when system boots up. With this commit, /dev/net/tun is missing when sysvinit is used. Signed-off-by: Li Zhou --- ...01-eudev-create-static-nodes-from-modules.patch | 106

Re: [OE-core] [PATCH 03/16] lsof: fix LSOF_CCV in version.h

2018-06-03 Thread Robert Yang
On 06/03/2018 11:52 PM, Richard Purdie wrote: On Wed, 2018-05-30 at 17:03 +0800, Robert Yang wrote: From: Jian Liu When using cross compiler to build the package "lsof" on a host, the value of LSOF_CCV in version.h genegrated by the Makefile is the version of the compiler on the host while

[OE-core] Microsoft has agreed to acquire GitHub

2018-06-03 Thread Denys Dmytriyenko
Microsoft Is Said to Have Agreed to Acquire Coding Site GitHub https://www.bloomberg.com/news/articles/2018-06-03/microsoft-is-said-to-have-agreed-to-acquire-coding-site-github -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.or

Re: [OE-core] [PATCH 06/14] oeqa/runtime/cases/selftest.py: rename to _selftest.py

2018-06-03 Thread Richard Purdie
On Fri, 2018-06-01 at 13:03 +0800, Chen Qi wrote: > This test modules is designed to be invoked only by selftest. It's > not meant to be tested by normal runtime test. So it should be > renamed > with '_' prefix, so that it will not be automatically loaded by > normal > runtime tests when 'auto' is

Re: [OE-core] [PATCH 10/16] dropbear: add default config file to disable root login

2018-06-03 Thread Richard Purdie
On Wed, 2018-05-30 at 17:03 +0800, Robert Yang wrote: > From: Jackie Huang > > root login is disabled by default for openssh and we can > enable it through IMAGE_FEATURES 'debug-tweaks' or > 'allow-empty-password', so change to the same default > behavior for dropbear. > > Signed-off-by: Jackie

[OE-core] [PATCH 2/2] cmake: fix build issue with boost 1.67.0

2018-06-03 Thread Armin Kuster
this fixes a build issue with boost 1.67.0 [Yocto 12762] Signed-off-by: Armin Kuster --- meta/recipes-devtools/cmake/cmake.inc | 3 + ...enerate-imported-targets-for-future-Boost.patch | 35 +++ ...005-FindBoost-support-OPTIONAL_COMPONENTS.patch | 42 +++ ...dd-support-for-Boos

[OE-core] [sumo][PATCH] cmake: fix build issue with boost 1.66.0

2018-06-03 Thread Armin Kuster
this fixes a build issue with boost 1.66.0 [Yocto 12762] Signed-off-by: Armin Kuster --- meta/recipes-devtools/cmake/cmake.inc | 4 + ...oost-1.66.0-dependency-and-release-update.patch | 52 ...ix-incorrect-alphabetisation-of-headers-l.patch | 29 + ...mplement-Arc

[OE-core] [PATCH 1/2] cmake: fix build issue with boost 1.66.0

2018-06-03 Thread Armin Kuster
this fixes a build issue with boost 1.66.0 [Yocto 12762] Signed-off-by: Armin Kuster --- meta/recipes-devtools/cmake/cmake.inc | 4 + ...oost-1.66.0-dependency-and-release-update.patch | 52 ...ix-incorrect-alphabetisation-of-headers-l.patch | 29 + ...mplement-Arc

Re: [OE-core] [PATCH] Meta runtime cases: add testcases for kernel sample

2018-06-03 Thread Richard Purdie
On Sat, 2018-06-02 at 07:48 +0800, Hongzhi, Song wrote: > Hi Richard, > > I have made patch-v2 with shared functions. > And these kernel-samples are just for testing, so maybe it's > unnecessary > to enable them by default. Wouldn't we want to extend the automated testing within the project so t

Re: [OE-core] [PATCHv2 1/2] oe-pkgdata-util: Make parse_pkgdatafile() support package suffixed vars

2018-06-03 Thread Richard Purdie
On Sat, 2018-06-02 at 21:30 +0200, Peter Kjellerstedt wrote: > Support for variables suffixed with package names, e.g., PKGV_foo, > was > removed in commit 3d2c87c4, which broke support for recipes that set > other versions on their packages than what is in ${PV}. Would it be possible to write som

Re: [OE-core] [PATCH 1/1] linux-yocto: add ptest support

2018-06-03 Thread Richard Purdie
On Fri, 2018-06-01 at 15:52 +0800, Dengke Du wrote: > > > On 2018年05月31日 12:19, Bruce Ashfield wrote: > > > > On Wed, May 30, 2018 at 11:08 PM, Dengke Du > m> wrote: > > > Signed-off-by: Dengke Du > > > --- > > > meta/recipes-kernel/linux/files/run-ptest | 138 > > > ++

Re: [OE-core] [meta][lib/oeqa][PATCH v2] Meta runtime cases: add testcases for kernel sample

2018-06-03 Thread Richard Purdie
On Fri, 2018-06-01 at 12:01 -0400, Hongzhi.Song wrote: > We are going to let runtime test support kernel tests. Now we just > add > kernel self-contained sample tests. And we plan to add overall kernel > tests in the future. > > This patch is just add kernel samples test which contains about 13 >

Re: [OE-core] [PATCH 06/16] gcc-sanitizers: Fix libtool .la files

2018-06-03 Thread Richard Purdie
On Wed, 2018-05-30 at 17:03 +0800, Robert Yang wrote: > From: Yuanjie Huang > > Since libtool sysroot is not set when compiling sanitizers, the > libtool > does no prefix the dependency path correctly. Fix it, so that > programs > can link to sanitizer libraries without error. > > Signed-off-by:

Re: [OE-core] [PATCH 05/16] xinetd: add Init Script Actions to xinetd script

2018-06-03 Thread Richard Purdie
On Wed, 2018-05-30 at 17:03 +0800, Robert Yang wrote: > From: Shan Hai > > The chkconfig fails to list the xinetd service because the xinetd > lacks Init Script Actions in it, add the actions to fix it. > > Signed-off-by: Shan Hai > Signed-off-by: Mingli Yu > --- > meta/recipes-extended/xinet

Re: [OE-core] [PATCH 03/16] lsof: fix LSOF_CCV in version.h

2018-06-03 Thread Richard Purdie
On Wed, 2018-05-30 at 17:03 +0800, Robert Yang wrote: > From: Jian Liu > > When using cross compiler to build the package "lsof" on a host, > the value of LSOF_CCV in version.h genegrated by the Makefile > is the version of the compiler on the host while it should be > the version of cross compil

Re: [OE-core] [PATCH 01/14] oeqa/core/loader.py: support the 'auto' keyword

2018-06-03 Thread Richard Purdie
On Fri, 2018-06-01 at 13:58 +0800, ChenQi wrote: > On 06/01/2018 01:41 PM, Alexander Kanavin wrote: > > 2018-06-01 7:42 GMT+03:00 ChenQi : > > > I agree with you that we need to re-evaluate the settings of > > > DEFAULT_TEST_SUITES. > > > > > > I plan to do this work from next week. And I plan to

Re: [OE-core] Cherry-pick to Sumo (was: [PATCHv2 1/2] oe-pkgdata-util: Make parse_pkgdatafile() support package suffixed vars)

2018-06-03 Thread akuster808
On 06/02/2018 12:48 PM, Peter Kjellerstedt wrote: > These two patches, in addition to "oe-pkgdata-util: lookup-recipe, > package-info: Don't finish prematurely" (commit 32c2a2dd) that is already > on master, need to be cherry-picked to the sumo branch as well. Without > them, `oe-pkgdata-util

Re: [OE-core] [meta-oe][PATCH v3] iso-codes: fix SRC_URI

2018-06-03 Thread Alexander Kanavin
2018-06-03 5:03 GMT+03:00 Oleksandr Kravchuk : > -SRC_URI = > "https://pkg-isocodes.alioth.debian.org/downloads/iso-codes-${PV}.tar.xz"; > -SRC_URI[md5sum] = "9d0d06cfb4634428b300845edcd7140a" > -SRC_URI[sha256sum] = > "21cd73a4c6f95d9474ebfcffd4e065223857720f24858e564f4409b19f7f0d90" > +SRC_URI

Re: [OE-core] [meta-oe][PATCH v2 1/2] chrpath: fix SRC_URI

2018-06-03 Thread Alexander Kanavin
2018-06-03 1:59 GMT+03:00 Oleksandr Kravchuk : > -SRC_URI = > "https://alioth.debian.org/frs/download.php/file/3979/chrpath-0.16.tar.gz \ > +SRC_URI = > "http://http.debian.net/debian/pool/main/c/chrpath/chrpath_${PV}.orig.tar.gz \ Use ${DEBIAN_MIRROR} here please, append /main/... to it. There